1

I want to programmatically cut polygons already loaded in arcmap. For instance if originally I have 1 polygon feature and 1 row in attribute table. When I cut them, I should see 2 independent features and 2 rows in attribute table. I tried using the snippet from the reference with no luck

Any suggestions how i can get this using C# ArcObjects. Any suggestions as to how i can achieve this. It

  • Can you add some detail regarding how the polygon feature is to be cut? is it an arbitrary cut line? By some intersecting feature/s? – Adam May 24 '16 at 23:21
  • 1
    What error are you getting when you try to run the snippet? – Dowlers May 24 '16 at 23:38
  • 1
    That function returns a GeometryCollection object, you need to break it down into component geometries, update one feature and create a new one or create two features and delete the old one. Can you share what code you have (passing to the reference and returning from). – Michael Stimson May 25 '16 at 0:26
  • 1
    If you want to emulate the editor's cut polygons tool, take a look at IFeatureEdit.Split or IFeatureEdit2.SplitWithUpdate. – Sean Jones May 25 '16 at 17:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.