Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

Pyhton script for changing datasource in MXD

$
0
0
Hi,

I wanted to change the datasource of layers in my mxd but my script is not doing this. I am using below:

lyr.replaceDataSource(layer.workspacePath,"SDE_WORKSPACE",newFeatureclassPath, False)


Please help if anybidy has done this before.

Thanks & Regards

Viewing all articles
Browse latest Browse all 2485

Trending Articles