hi guys.I draw a line and create a LinearDimension. I want to mark the LinearDimension associated startPoint and endPoint of line . What should I do
LinearDimension dim = LinearDimension.Create(AnnotationType.Aligned, style, plane, Plane.WorldXY.XAxis, p1, p2, pl, 0.0);
LineCurve cur = new LineCurve(Point3d.Origin,new Point3d(10,0,0));
doc.Objects.AddCurve(cur);
LinearDimension dim2 = LinearDimension.Create(AnnotationType.Aligned, style, Plane.WorldXY, Plane.WorldXY.XAxis, cur.PointAtStart, cur.PointAtEnd, new Point3d(5, -10, 0), 0.0);
doc.Objects.Add(dim2);
doc.Views.Redraw();