Timeline for Repairing broken links for new paths of layers to shapefiles using ArcPy?
Current License: CC BY-SA 3.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 10, 2012 at 2:41 | vote | accept | Mehdi | ||
Jan 9, 2012 at 17:28 | comment | added | Mehdi | Thanks for your prompt response. Here's my code which does almost the same: import arcpy mapDoc=arcpy.mapping.MapDocument("Current") brokenLayer=arcpy.mapping.ListBrokenDataSources(mapDoc)[0] path=arcpy.GetParameterAsText(0) brokenLayer.replaceDataSource(path) arcpy.RefreshTOC() but every time, you have to invoke this script and input a new path. what I'm looking for is like creating maybe a loop according to the number of broken links that each one has a different path. | |
Jan 9, 2012 at 13:14 | history | answered | om_henners | CC BY-SA 3.0 |