Hi Jeff,
Am having similar issue with a script form of: saveACopy (file_name, {version}) in a final release version of 10.
File>save a copy {set to 9.3} > provide name.mxd works fine
via a toolbox script
with param properties set as Mapdocuments input and output
mxdIn = arcpy.GetParameterAsText(0)
mxdOut = arcpy.GetParameterAsText(1)
ver = '9.3'
try:
mxd = arcpy.mapping.MapDocument(mxdIn)
mxd.saveACopy(mxdOut, ver)
del mxdIn, mxdOut
spits out a v10 .mxd
have tried it with '93', '9.3', "9.3", str(ver)
i went as far as editing the _mapping.py
def saveACopy(self, file_name, version='9.2'):
which is when i noticed there is no return statement in ESRI's
def saveACopy():...
in _mapping.py
is this an oversight?
fyi putting A return in = same effect
putting '9.2' as the default value = same effect (yes got rid of the _mapping.pyc)
maybe its in the constant class assignment?
# For version
'version': {
'10.0': 10,
'8.3': 83,
'9.2': 92,
'9.0': 90,
'9.3': 93
},
But it is beyond me, pls help
I really need to be able to script this, there is no way I'm going to do quantities of rollbacks via mouse clicking.
-Steve