In ArcMap 9.x how can I attach a python script to a button?
Tell me more
×
Geographic Information Systems Stack Exchange is a question and answer site for
cartographers, geographers and GIS professionals. It's 100% free, no registration required.
|
|
This works in VBA to run a Python script. Just call the subroutine with a button.
Hope this helps. |
|||||||
|
|
As @fmark says, the easiest way to integrate a Python script into ArcMap is through a toolbox, which I'd recommend. That said, if you really need to (eg, you need a nicer front end than the toolbox) you have two options:
Still, I'd go with @fmark and just add the script to the toolbox given the choice. |
|||
|
|
|
The way to do it in C# would be like this using the ArcGIS template for a button.
} |
|||
|