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
أكثر...
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
أكثر...