thanos_cp78

Create list of unique and common layers from several dateframes

Discussion created by thanos_cp78 on Jan 29, 2013
Latest reply on Jan 30, 2013 by thanos_cp78
Hi guys,

When I try this line, it gives me all the layers of all dataframes,

uniquelyrs = []
            for df in arcpy.mapping.ListDataFrames(mxd):
                lyrs = arcpy.mapping.ListLayers(mxd, "", df)
                for lyr in lyrs :
                    if lyr not in uniquelyrs:
                        uniquelyrs.append(lyr)


Any tweeks around this?

Cheers

Outcomes