Monday, 13 January 2020

arcgis 10.0 - Adding new group layer with ArcPy?


Does anyone now how to add a group layer with Python in ArcGIS Desktop 10?



I can use arcpy.mapping.AddLayer but surely this is only for an actual layer as opposed to a group layer.


so far I have this


import arcpy
mxd = arcpy.mapping.MapDocument("CURRENT")
df = arcpy.mapping.listdataframes(mxd, "layers")[0]
arcpy.mapping.AddLayer


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...