3

This post is related to Running Python Script when opening MXD?

I would like a python script to run every time a .mxd is opened. However, the link above uses VBA to do it, which ESRI suggests migrating away from....

http://events.esri.com/uc/QandA/index.cfm?fuseaction=answer&conferenceId=2F6DC1A1-1422-2418-883C3868A9004888&questionId=3182

I am looking for way to do it with python.

Thoughts?

asked May 22, 2012 at 19:31

1 Answer 1

4

Stick with VBA in 10.0 as it's the only way to (easily) do it, 10.1 has Python Add-Ins which will let you run Python when you open a document (newDocument, openDocument events).

answered May 22, 2012 at 19:37
1
  • 1
    Links in answer are broken but I found what I needed to do this here. Commented Jan 23, 2013 at 10:36

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.