Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Viewing all articles
Browse latest Browse all 7260

Microstation CE Update 16 C# : How to get the vertices of the line element?

$
0
0

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


Viewing all articles
Browse latest Browse all 7260

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>