AnsweredAssumed Answered

How to fix broken link inside mxd with script?

Question asked by halyazeedi on May 8, 2012
Latest reply on Feb 8, 2016 by AntoineCantinR
Hello

Is there a way to fix broken link inside mxd using a script?

We have old mxd with many layers (200 shapefiles)  and we decided to rename the shapefiles using our naming standard and then move them to ArcSDE BUT the relink job is painful. Is there a way in arcpy.mapping scripting?

I tried some tool from ESRI for fixing broken link but it is still painful. I need to find a script which will do the below:

Replace the old path of the layer (ex: C:\Test.shp) to the new path  (ex: SDE.Blocks) inside the old mxd.

Thanks,
Haifa

Outcomes