Summary
This article contains an ArcObjects code sample that demonstrates how to split a polyline at the vertices, creating separate lines from each line segment.
Procedure
- Start ArcMap.
- Create a new UIButtonControl.
- Right-click the UIButtonControl and select View Source.
- Copy and paste the following code into the UIButtonControl's click event.
- The code above calls a routine called "AddFields". To support this, copy and paste this code so it follows the "End Sub" of the Click event handler above.
End Sub
- In ArcMap, select the polyline layer whose features you want to split. Click the newly created button to split all the lines in this layer.