1

I have an ArcGIS .mxd file with an imbedded VBA script that is executed from a tool bar button. I would like to convert this VBA script tool to a python script tool for use in ArcGIS 10. Is that possible?

asked Jun 17, 2011 at 19:27
1
  • 1
    Do you mean automatically convert it? You should be able to manually translate the script without too much difficulty - assuming you know some python. Commented Jun 17, 2011 at 19:51

1 Answer 1

1

Yes, with the caveat that it will live in the application and not the MXD. If you create a Geoprocessing script tool in Python with zero parameters, you can add it to any toolbar from the Customize menu and it will execute when you click it. If it has 1 or more parameters, it will bring up the GP tool dialog.

answered Jun 17, 2011 at 21:26

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.