Saturday, 21 October 2017

Arcmap: attach python script to a button?


In ArcMap 9.x how can I attach a python script to a button?



Answer



This works in VBA to run a Python script. Just call the subroutine with a button.


Private Sub python_Click()
Shell "C:\Python25\python.exe ""C:\rowcount.py"
End Sub


Hope this helps.


No comments:

Post a Comment