Change coordinate system in multiple MXDs ArcGIS 9.3 - accessing data frames

2083
1
03-06-2013 02:10 PM
DavidHaberkorn
New Contributor III
Hi,

I have to loop through some folders which may contain *.mxd files and change their coordinate system. I already found this piece of Python which should do the trick for ArcGIS 10.x (from http://forums.arcgis.com/threads/11684-arcpy-change-data-frame-coordinate-system😞

prjFile = prjPath + "/" + "NAD 1983 UTM Zone 10N.prj"
sr = arcpy.SpatialReference(prjFile)
for DF in MAP.ListDataFrames(MXD):
    DF.spatialReference = sr


However, it looks like there is nothing similar to the arcpy.mapping module in 10 available in 9.3. I need to access the MXD file and then the dataframe(s) it contains, in order to change the coordinate system.

I could not find anything useful so far, although I assume that other people may have similar issues.

My question therefore, is there any (simple) workaround to this using Python (arcgisscripting) in ArcGIS 9.3?


Thanks
0 Kudos
1 Reply
JeffBarrette
Esri Regular Contributor
Not that I'm aware of.  Is it possible to run your scripts on a single 10x machine, change the CSs, and do an MXD.saveAs to 9.3?

Jeff
0 Kudos