Hello to all.
I would like to ask you this question: by selecting a polyline is it possible to identify the number of lines and the number of arcs and their positions?
I post an image to explain myself better.
Thanks a lot, bye.
Solved! Go to Solution.
Solved by _gile. Go to Solution.
Hi,
The Polyline class provides a property to get the number of vertices (NumberOfVertices) and methods to get a point at index (GetPoint2dAt and GetPoint3dAt) and to get the segment type at index (GetSegmentType).
Here's a snippet example:
for (int i = 0; i < pline.NumberOfVertices; i++)
{
ed.WriteMessage($"\n{pline.GetPoint2dAt(i):0.00} = {pline.GetSegmentType(i)}");
}
Hello.
I asked myself a question: how can I know the total number of segments of the polyline made up of lines and arcs?
Bye.
Can't find what you're looking for? Ask the community or share your knowledge.