AdamCox

arcpy "Save As Copy" doesn't work properly?

Discussion created by AdamCox on Feb 8, 2013
Hello,

I have a Blank.mxd to which I've added a toolbox and custom UI controls.  I have "Save all customizations to the map document" checked.  I have a script that will save a copy of this document with a new name, and then add some newly created data to it.  I'm finding that when I run the script, none of the customizations I make are retained, neither the controls, toolbox, or new toolbars.  It's just straight from my Normal.mxt.  Thing is, when I open Blank.mxd and just Save a Copy from the ArcMap session, everything is just how I want it.  It seems like there's something weird with arcpy.mapping.saveAsCopy()?  I'm not sure...

Outcomes