Load multiple layers into multiple maps - python

المشرف العام

Administrator
طاقم الإدارة
import arcpyimport arcpy.mappingimport osimport sysfrom arcpy import env

import string

env.workspace = r"G:\GIS"mxds = arcpy.ListFiles(".mxd")lyrs = arcpy.ListFiles(".lyr")

for maps in mxds: df = arcpy.mapping.ListDataFrames(mxds, "Layers")[0]

arcpy.mapping.AddLayer(df ,lyrs ,"AUTO_ARRANGE")maps.save()del mxds, maps, df, lyrs

Please help! - Work related



أكثر...
 
أعلى