Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 12/26/2017 in all areas

  1. dear Reyalino, put df = arcpy.mapping.ListDataFrames(mxd)[0] before "for loop", import arcpy arcpy.env.workspace = "D:/Directory/Map" mxd = arcpy.mapping.MapDocument("D:/Directory/Map/layout.mxd") listFC = arcpy.ListFeatureClasses() df = arcpy.mapping.ListDataFrames(mxd)[0] for fc in listFC: layer = arcpy.mapping.Layer(fc) arcpy.mapping.AddLayer(df,layer,"TOP")
    2 points
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.

Disable-Adblock.png

 

If you enjoy our contents, support us by Disable ads Blocker or add GIS-area to your ads blocker whitelist