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'm trying to edit some fields of the selected features in ArcMap. It's possible to do this with Python (ArcPy)?

share|improve this question
What type of edit do you want to do? It would be easy to create an update cursor, select your data, modify it, then put it back. – Hairy Sep 9 '11 at 11:32

Sure, you can edit selected features using ArcPy inside ArcMap. Create a toolbox with a "Feature Layer" data type parameter. When you run the tool, select the layer from within ArcMap. The selected set of that layer will be present when the script executes.

share|improve this answer
What if I just want to create a button that, after manually selecting features, when pressed, will change the value to a field of those selected features? I can do that too with Python? – Abraham G. Sep 9 '11 at 18:53

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.