Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

Using arcpy.Describe Method on Annotation layers

$
0
0
I'm testing layers in the current document using the
Code:

Describe
function. My code is:

Code:

for lyr in arcpy.mapping.ListLayers(df):
    if(lyr.isGroupLayer == False and lyr.isRasterLayer == False):
        x = arcpy.Describe(str(lyr))

It's throwing an error on the annotation layer:
Quote:

"LSDSectionBoundaryAnno\Default" does not exist
I'm thinking that the Describe function doesn't like annotation layers or the subclasses? Can I use Describe on annotation layers and if not, how would I filter out annotation layers? There doesn't seem to be a 'isAnnotationLayer' property.

Thanks,
Mike

Viewing all articles
Browse latest Browse all 2485

Trending Articles