<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Using arcpy.Describe Method on Annotation layers in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/using-arcpy-describe-method-on-annotation-layers/m-p/366808#M28946</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Annotation feature classes can be described, but it is that default subclass that is messing you up. I would try something like this instead:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;for lyr in arcpy.mapping.ListLayers(mxd):
&amp;nbsp;&amp;nbsp;&amp;nbsp; if lyr.isFeatureLayer:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x = arcpy.Describe(lyr)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It talks about this in the third paragraph under the Discussion section in the &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Layer/00s300000008000000/" rel="nofollow noopener noreferrer" target="_blank"&gt;Layer (arcpy.mapping) &lt;/A&gt;&lt;SPAN&gt;help page.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 17:02:25 GMT</pubDate>
    <dc:creator>LucasDanzinger</dc:creator>
    <dc:date>2021-12-11T17:02:25Z</dc:date>
    <item>
      <title>Using arcpy.Describe Method on Annotation layers</title>
      <link>https://community.esri.com/t5/python-questions/using-arcpy-describe-method-on-annotation-layers/m-p/366807#M28945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm testing layers in the current document using the &lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Describe&lt;/PRE&gt;&lt;SPAN&gt; function. My code is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;for lyr in arcpy.mapping.ListLayers(df):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(lyr.isGroupLayer == False and lyr.isRasterLayer == False):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x = arcpy.Describe(str(lyr))&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's throwing an error on the annotation layer:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt; "LSDSectionBoundaryAnno\Default" does not exist&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:02:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-arcpy-describe-method-on-annotation-layers/m-p/366807#M28945</guid>
      <dc:creator>MikeMacRae</dc:creator>
      <dc:date>2021-12-11T17:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: Using arcpy.Describe Method on Annotation layers</title>
      <link>https://community.esri.com/t5/python-questions/using-arcpy-describe-method-on-annotation-layers/m-p/366808#M28946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Annotation feature classes can be described, but it is that default subclass that is messing you up. I would try something like this instead:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;for lyr in arcpy.mapping.ListLayers(mxd):
&amp;nbsp;&amp;nbsp;&amp;nbsp; if lyr.isFeatureLayer:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x = arcpy.Describe(lyr)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It talks about this in the third paragraph under the Discussion section in the &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Layer/00s300000008000000/" rel="nofollow noopener noreferrer" target="_blank"&gt;Layer (arcpy.mapping) &lt;/A&gt;&lt;SPAN&gt;help page.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:02:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-arcpy-describe-method-on-annotation-layers/m-p/366808#M28946</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2021-12-11T17:02:25Z</dc:date>
    </item>
  </channel>
</rss>

