Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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
add comment

1 Answer 1

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
1  
add comment

Your Answer

 
discard

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.