Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/a/r/arcpy-HEAD/townlayers.py   arcpy(Download)
df = arcpy.mapping.ListDataFrames(mxd, 'Towns')[0]
fc = 'C:/dev/python/arcpy/shapefile/towns.shp'
townGroup = arcpy.mapping.ListLayers(mxd, "Town Layers", df)[0]
 
# search cursor

src/a/r/arcpy-HEAD/layer-sources.py   arcpy(Download)
file = open(filename,'w')
 
for lyr in arcpy.mapping.ListLayers(mxd, '', df):
    if not lyr.isGroupLayer:
        print >>file, lyr.dataSource