I am trying to implement hidden lineType when I draw a line, but it is not working yet… am I missing anything?
The fraction of code is as below. Please have a look.
System.Drawing.Color ObjectColor1 = System.Drawing.Color.Blue;
Rhino.DocObjects.ObjectAttributes att=new Rhino.DocObjects.ObjectAttributes();
att.ColorSource = ColorSource1;
att.ObjectColor = ObjectColor1;
att.LinetypeSource = Rhino.DocObjects.ObjectLinetypeSource.LinetypeFromObject;
att.LinetypeIndex = 7;
arcn_A is a given curve in the code..................
Curve[] curves = arcn_A.Offset(p, Vector3d.ZAxis, 21.52,
doc.ModelAbsoluteTolerance, CurveOffsetCornerStyle.None);
foreach (var offset_curve in curves)
doc.Objects.AddCurve(offset_curve,att);
It is not giving hidden line… It is giving a normal line.