How to get a Polyline from a Path?

964
3
Jump to solution
08-22-2012 11:13 AM
SuiHuang
Occasional Contributor II
Hi Everybody:

    A PolylineClass object supports IGeometryCollection interface, from which I could get a list of PathClass objects. How can I get an individual PolylineClass object for each of these PathClass objects?
    For example, with a Polyline that contains multiple paths inside, I want to break it down into multiple Polylines, each of which supports IGeometryCollection and only have one path.
    Thank you!
0 Kudos
1 Solution

Accepted Solutions
NeilClemmons
Regular Contributor III
For each path you create a new instance of the Polyline class then add the path to it's geometry collection.

View solution in original post

0 Kudos
3 Replies
NeilClemmons
Regular Contributor III
For each path you create a new instance of the Polyline class then add the path to it's geometry collection.
0 Kudos
MartinLewis
New Contributor III

I'm stuck in the same place.  How do you get to a polyline's geometry collection?

0 Kudos
SuiHuang
Occasional Contributor II
For each path you create a new instance of the Polyline class then add the path to it's geometry collection.


Yes that works for me. Thank you.
0 Kudos