Is it just me, or is the help entry for arcpy.mapping.Layer() quite misleading?
It gives the distinct impression that you can only use this function on .lyr files, but actually you can pass a shapefile as a path and it works just fine.
So why does it imply that you can only reference a layer file (.lyr) as opposed to a map layer which could be one of any number of formats? Does anyone else agree that this entry could be clearer?
It gives the distinct impression that you can only use this function on .lyr files, but actually you can pass a shapefile as a path and it works just fine.
So why does it imply that you can only reference a layer file (.lyr) as opposed to a map layer which could be one of any number of formats? Does anyone else agree that this entry could be clearer?