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)
for town in towns:
 
    townLayer = arcpy.mapping.Layer(r'C:/dev/python/arcpy/lyr/town-template.lyr')
 
    townName = town.getValue('name')

src/a/r/arcapi-HEAD/arcapi.py   arcapi(Download)
        arcpy.MakeFeatureLayer_management(x, lr)
 
    lyr = arcpy.mapping.Layer(lr)
    arcpy.mapping.AddLayer(df, lyr)