Not sure if this is possible - I am writing a python script to convert LYR files to use relative paths and save the LYR as a 9.3 LYR file. I can do each one individually, but not together.
...# save existing LYR to a new file and set to RELATIVE path - worksarcpy.SaveToLayerFile_management(lyr, relFile, "RELATIVE")# saveACopy to v9.3 LYR file - works, but does not maintain RELATIVE pathlyr2 = arcpy.mapping.Layer(relFile)lyr2.saveACopy(93File,'9.3')...It doesn't seem to matter if I reverse the order of these calls, I still get v9.3 LYRs with absolute paths and v10.x LYRs with relative paths. I have run this in 10.0 and 10.1 and see the same results.
أكثر...
...# save existing LYR to a new file and set to RELATIVE path - worksarcpy.SaveToLayerFile_management(lyr, relFile, "RELATIVE")# saveACopy to v9.3 LYR file - works, but does not maintain RELATIVE pathlyr2 = arcpy.mapping.Layer(relFile)lyr2.saveACopy(93File,'9.3')...It doesn't seem to matter if I reverse the order of these calls, I still get v9.3 LYRs with absolute paths and v10.x LYRs with relative paths. I have run this in 10.0 and 10.1 and see the same results.
أكثر...