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

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...