AnsweredAssumed Answered

Arcpy.mapping.layer() help files in 10.0 and 10.1

Question asked by j256 on Jan 10, 2013
Latest reply on Jan 14, 2013 by j256
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?

Outcomes