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?

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).

1
  • 1
    Links in answer are broken but I found what I needed to do this here.
    – PolyGeo
    Jan 23, 2013 at 10:36

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.