Change shapefile version with Python

المشرف العام

Administrator
طاقم الإدارة
i have a simple problem and i think there is a simple solution, but i can find or create it.

I have a lot of MXD (more than 200) and all of them use a polygon shapefile "study_area_v00.shp".In the data frame, its name is just "Study Area".

Every time we change the boundary of the polygon, we save a new copy to "study_area_v01.shp" an so on.All the attributes in table is the same, nothing changes, but the boundary.

Every time we open all the mxd and change the data source, one by one because none of pythons i found, work fine.


This script works fine, and change all the layerfiles in all MXD in a folder.But there is a little detail in my case: my layer name in table of contents have a word with acccent (<strong>

أكثر...
 
أعلى