Reyalino Posted February 18, 2015 Report Share Posted February 18, 2015 Dear GIS Area, I am trying to use arcpy.mapping for finding and fixing broken data links. I've followed the instructions from the ArcGIS Help but it's not success. Could somebody suggest me what happens? I am using ArcGIS 10.2.Originally the shp files located in "F:/Data/GIS File" and it's migrated into "F:/Data/GIS". The mxd files located in "F:/Data/Example.mxd". Refer to arcgis help i wrote the scripts as quoted below, but nothing happens. Could somebody help me? mxd= arcpy.mapping.MapDocument (r "F:/Data/Example.mxd") mxd.findAndReplaceWorkspacePaths (r"F:/Data/GIS File", r"F:/Data/GIS") mxd.save () regards, reya Quote Link to comment Share on other sites More sharing options...
geocentric Posted February 18, 2015 Report Share Posted February 18, 2015 did any error come up, if it did what does it say? Also try to put your path with a \ instead of / Quote Link to comment Share on other sites More sharing options...
Reyalino Posted February 19, 2015 Author Report Share Posted February 19, 2015 It's work now, Thanks. When I used path "/" there is no error notification come up. In python the legal path are: "F:/Data", "F:\\Data", "F:\Data", usually i used this path "F:/Data" for another function, and it's works. Does every types of path has to be use for any certain function in python? or i can use all of those type of path for any function? Quote Link to comment Share on other sites More sharing options...
geocentric Posted February 21, 2015 Report Share Posted February 21, 2015 I think for things dealing with geodatabases, SDE and RDBMS, you would have to use the backward slash \ . Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.