When attempting the command from ArcMap in Debug mode:
mxd = arcpy.mapping.MapDocument('CURRENT')
I now receive the error: "Object: CreateObject cannot open map document"
However, when I "run" the script in ArcMap, the error does NOT occur. Why would this be the case? This makes debugging impossible...
Yes, I have "Always Run in foreground" checked (and even disabled all background processing as a test as well).
Any suggestions?
running ArcGis Desptop Advanced 10.2.2 and using PyScripter IDE
Bill D. Richards
North IDaho College
Dept of Geography/Geology