Let me clarify the confusion.I need to do some more testing but it appears the previous post is suggesting that the new fix is breaking data paths for layers stored in an MXD when relative paths are turned on. I can't reproduce. I assume you are talking about saving an MXD. I ran mxd.saveACopy on an MXD with relative paths, saved out a 9.3 mxd, renamed the parent folder and could still open the 9.3 mxd without broken paths.Thank you!Jeff
We have confirmed that this is a bug for 10.0 final (and too late to fix for SP1). SaveACopy does appear to work with CURRENT but NOT with stand-alone scripts/script tools. mxd = arcpy.mapping.MapDocument("current") mxd.saveACopy(r"C:\path\someNew.mxd", "9.3") If you are experiencing this issue, please call techincal support and have your name associated with NIM061274. It will help with expediting a fix for the issue. Jeff
This appears to be an issue at Beta 2. We have tested this with the pre-release and it is working now. Another thing to be aware of is that we did make the change at pre-release that requires the dot in the version number, so your script will need to be updated to �??9.3�?? when you get pre-release. Please get the pre-release when it is available and give it another try and let us know how it goes.
Does this line need to be '9.3' instead of '93'?MXD.saveACopy("U:\\Projects_VAN\\1961\\0245\\17\\D-Drafting-Design-Analysis\\GIS\\Projects\\mxds\\93\\" + os.path.splitext(file)[0] + "_V_9_3.mxd", '93')Not sure if this is why, but have you tried it?
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.