I’m trying to change the line type of a NurbsCurve, but I do not succeed.
So I make test:
ON_3dPoint pt1(0.0,5.0,0.0); ON_3dPoint pt2(10.0,15.0,0.0); ON_Line line(pt1,pt2); ON_3dmObjectAttributes *attributes = new ON_3dmObjectAttributes(); attributes ->SetLinetypeSource(ON::linetype_from_object); attributes ->m_linetype_index = 3; CRhinoObject *obj = p_doc->AddCurveObject(line, attributes );
But this failed too. The line is added to document, but the line type still remain continuos even if I change the m_linetype_index.
Does anyone have an idea how to make it works?
Thanks in advance,