Extract vertices of polyline

667
1
11-14-2012 12:10 PM
InsuHong1
New Contributor
Hi all


I'm developing add-in for ArcMap using C#.

I find a way to extract vertices of polyline.

With polygon, after convert polygon featureclass to Ipolygon, I can extract vertices of polygon. But I don't know how to do it with polyline.

Currently, I'm using Feature Vertices to Point tool in ArcToolbox. But I have to repeat that operation for thousands of polylines, computation time is really matter.

Is there any faster way to extract vertices of polyline?


Thank you
0 Kudos
1 Reply
AndrewMay
New Contributor
Cast your polyline to an IPointCollection.  Then you should be able to enumerate over the vertices.
0 Kudos