Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to copy selected polygon features to a polyline feature class. (Similar to how polygon features can be copied and pasted inside an edit session in ArcMap)

Until recently I've been using the pPolygon2:ExteriorRingCount, pPolygon2:InteriorRingCount method - iterating through the polygon rings and converting them into polylines and so on... As described in this post I have a suspicion that the pPolygon2:ExteriorRingCount method might not be working in ArcObjects 10.1 (VS 2010 Express, VB.NET)

Although this approach has been working flawlessly until version 10.0 perhaps I am over-complicating things. What is the best approach for copying polygon features to a polyline feature class with ArcObjects?

share|improve this question
Are you wanting to preserve all coordinates (including interior rings) when you convert your polygons to polylines? – Kirk Kuykendall Feb 11 '13 at 3:26
I wonder if you might just use geoprocessing for this:… – blah238 Feb 11 '13 at 3:44
Good Idea @blah238 but this seems to be only available in the Advanced license. I would like this to work under all license levels. SHould have mentioned that in the post. – Jakub Feb 11 '13 at 15:43
@KirkKuykendall - for each polygon feature I would like to obtain all rings and convert to simple polylines and merge to a a single polyline myltigeometry so that I can also copy over the attributes (if the fields exist in the target feature class). Not 100% sure what you mean by preserving coordinates of interior rings. – Jakub Feb 11 '13 at 16:00
Did you try ITopologicalOperator.Boundary? – Kirk Kuykendall Feb 11 '13 at 16:06

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.