Select to view content in your preferred language

How to get a Polyline from a Path?

1262
3
Jump to solution
08-22-2012 11:13 AM
SuiHuang
Frequent Contributor
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
Honored Contributor
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
Honored Contributor
For each path you create a new instance of the Polyline class then add the path to it's geometry collection.
0 Kudos
MartinLewis
Occasional Contributor

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

0 Kudos
SuiHuang
Frequent Contributor
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