We are trying to get the vertices of the line element or line string element, the below example has part of line element, but the spoints list is always empty. We should get the start and end point for the line element and all vertices of the line string element. The line element is picked from the model.
LineElement selement = element as LineElement; IList<DPoint3d> spoints = new List<DPoint3d>(); CurvePathQuery query = CurvePathQuery.GetAsCurvePathQuery(selement); CurveVector scurveVector = query.GetCurveVector(); scurveVector.GetPrimitive(0).TryGetLineString(spoints);
Are we missing anything in this part of code.
Regards,
Tushar