<?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: Annotation classes not visible after adding an annotation layer in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/annotation-classes-not-visible-after-adding-an/m-p/170173#M13088</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I found a solution. If you are going to add an annotation layer using ArcPy, you should not just add the annotation layer directly with mapping.AddLayer. Instead, you have to generate a layer using MakeFeatureLayer_management and then add the layer using mapping.AddLayer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;import arcpy&amp;nbsp; my_mxd = arcpy.mapping.MapDocument("C:/PATH/TO/blank.mxd") df = arcpy.mapping.ListDataFrames(my_mxd)[0] anno_path = "C:/PATH/TO/some.gdb/BuildingAnno"&amp;nbsp; temp_layer = "temp_anno" arcpy.MakeFeatureLayer_management(anno_path,temp_layer) anno_layer= arcpy.mapping.Layer(temp_layer) arcpy.mapping.AddLayer(df,anno_layer) my_mxd.saveACopy("C:/PATH/TO/saved.mxd")&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Mar 2013 13:13:16 GMT</pubDate>
    <dc:creator>YonghaHwang</dc:creator>
    <dc:date>2013-03-13T13:13:16Z</dc:date>
    <item>
      <title>Annotation classes not visible after adding an annotation layer</title>
      <link>https://community.esri.com/t5/python-questions/annotation-classes-not-visible-after-adding-an/m-p/170171#M13086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have an annotation feature. I can see its annotation classes when I drag-and-drop the feature from ArcCatalog to ArcMap. But I can't see the annotation classes when I add the annotation feature using ArcPy. I can't even see Annotation tab in the layer properties dialog. The layer doesn't look like Annotation at all (it looks like simple geometry feature), but Layer Properties&amp;gt;Source&amp;gt;Feature Type says the layer is "Annotation".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I add the annotation layer properly in Arcpy?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My environment: ArcGIS 10.1 / Windows XP 32 bit&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My codes are:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;import arcpy&amp;nbsp; my_mxd = arcpy.mapping.MapDocument("C:/PATH/TO/blank.mxd") df = arcpy.mapping.ListDataFrames(my_mxd)[0] anno_path = "C:/PATH/TO/some.gdb/BuildingAnno" anno_layer= arcpy.mapping.Layer(anno_path) arcpy.mapping.AddLayer(df,anno_layer) my_mxd.saveACopy("C:/PATH/TO/saved.mxd")&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]22088[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The first layer is an annotation layer added by ArcPy and the second one is added using drag-and-drop from ArcCatalog.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yongha&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2013 16:27:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/annotation-classes-not-visible-after-adding-an/m-p/170171#M13086</guid>
      <dc:creator>YonghaHwang</dc:creator>
      <dc:date>2013-02-22T16:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Annotation classes not visible after adding an annotation layer</title>
      <link>https://community.esri.com/t5/python-questions/annotation-classes-not-visible-after-adding-an/m-p/170172#M13087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think ArcPy adds an annotation layer as feature layer. After the annotation layer is added to the mxd file, I checked isFeature property, it says the annotation layer is a feature layer (True), which should be False if the annotation layer is properly added as an annotation type layer. I think this should be fixed.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2013 03:08:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/annotation-classes-not-visible-after-adding-an/m-p/170172#M13087</guid>
      <dc:creator>YonghaHwang</dc:creator>
      <dc:date>2013-03-01T03:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: Annotation classes not visible after adding an annotation layer</title>
      <link>https://community.esri.com/t5/python-questions/annotation-classes-not-visible-after-adding-an/m-p/170173#M13088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I found a solution. If you are going to add an annotation layer using ArcPy, you should not just add the annotation layer directly with mapping.AddLayer. Instead, you have to generate a layer using MakeFeatureLayer_management and then add the layer using mapping.AddLayer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;import arcpy&amp;nbsp; my_mxd = arcpy.mapping.MapDocument("C:/PATH/TO/blank.mxd") df = arcpy.mapping.ListDataFrames(my_mxd)[0] anno_path = "C:/PATH/TO/some.gdb/BuildingAnno"&amp;nbsp; temp_layer = "temp_anno" arcpy.MakeFeatureLayer_management(anno_path,temp_layer) anno_layer= arcpy.mapping.Layer(temp_layer) arcpy.mapping.AddLayer(df,anno_layer) my_mxd.saveACopy("C:/PATH/TO/saved.mxd")&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Mar 2013 13:13:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/annotation-classes-not-visible-after-adding-an/m-p/170173#M13088</guid>
      <dc:creator>YonghaHwang</dc:creator>
      <dc:date>2013-03-13T13:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: Annotation classes not visible after adding an annotation layer</title>
      <link>https://community.esri.com/t5/python-questions/annotation-classes-not-visible-after-adding-an/m-p/170174#M13089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well done, thank you&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2013 14:00:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/annotation-classes-not-visible-after-adding-an/m-p/170174#M13089</guid>
      <dc:creator>SchoppMatthieu</dc:creator>
      <dc:date>2013-09-27T14:00:14Z</dc:date>
    </item>
  </channel>
</rss>

