Hello everyone,
I am using this line of code to open up an mxd file:
os.startfile("c:/chris/{0}/{0} - existing_proposed.mxd".format(string))
It works and opens the file, but it opens in a new instance of ArcMap. Is there a way to have it open in the instance that is already open?
Thanks,
Chris
Solved! Go to Solution.
Luke are you suggesting a different workflow might be in order?
Possibly... ArcObjects is the only way to do what the OP wants and using COM via comtypes is the most used (by python people) way of accessing AO (there's also the .NET route using pythonnet). But it's a lot a stuff to install and configure...
I thought so... a need or a nice decision
But it's a lot a stuff to install and configure...
So much for "batteries included."
lpinner wrote:
But it's a lot a stuff to install and configure...
And then you have to deal with a python/ArcObjects frankenhybrid
Thanks for the feedback everyone. Lots to learn!
Have a good day.