AnsweredAssumed Answered

Is it possible to update the source of a layer within an mxd using arcpy mapping?

Question asked by GIS_User6 on Sep 4, 2017
Latest reply on Sep 4, 2017 by rastrauch

I have an mxd which contains a layer (in shapefile format).

I wish to update the path of the shapefile to the path of another shapefile by using a stand alone script.


Is this possible? 

I have used arcpy.mapping.AddLayer to find my layer.

I wonder if I can now use .replaceDataSource to update the source of the layer in the mxd?