AnsweredAssumed Answered

draw a polygon with a python add-in and clip it

Question asked by EstelleWuilliez on Aug 19, 2014
Latest reply on Aug 20, 2014 by EstelleWuilliez

Hello everybody, I really need some help for my project in ArcMap 10.2.

 

I want to create a tool with a python add-in, then click on it and draw a polygon on a map. Then I want to use this polygon to clip my map and to keep what I've selected with the polygon.

 

To do that, I've made this code in my Add-in :Untitled.jpg

Everything seems to work except one thing! The clip tool creates a empty output, I've got the error "Empty output generated", and I really don't understand why. My "Route_shapes.shp" and my "polygon.shp" have the same coordinate system.

 

Any suggestion?

Thank you!

Outcomes