<?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 Annotation Feature Group element support in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/annotation-feature-group-element-support/m-p/771309#M622</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have following ArcObjects code&amp;nbsp;for a tool which I am working on to migrate to an ArcGIS Pro tool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;                Do While AnnoFeat IsNot Nothing
                    If TypeOf AnnoFeat.Annotation Is IGroupElement Then
                        With CType(AnnoFeat.Annotation, IGroupElement)
                            elemList = .Elements
                            childElem = elemList.Next
                            Do While childElem IsNot Nothing
                                If TypeOf childElem Is ILineElement Then
                                    'process as line geometry
                                End If
                                If TypeOf childElem Is ITextElement Then
                                    'process text as point
                                End If
                                oChildElem = elemList.Next
                            Loop
                        End With
                    ElseIf TypeOf AnnoFeat.Annotation Is ILineElement Then
                        'process as line geometry
                    ElseIf TypeOf AnnoFeat.Annotation Is ITextElement Then
                        'process text as point
                    End If

                    AnnoFeat = AnnotFeatCursor.NextFeature
                Loop‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can we do this using ArcGIS Pro SDK ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have upgraded the annotation feature class I used in ArcMap for use in ArcGIS Pro and I am trying to write a replacement for this code block. I read &lt;A _jive_internal="true" href="https://community.esri.com/groups/arcgis-pro-sdk/blog/2017/10/18/arcgis-pro-sdk-21-beta-and-new-resources-available?commentID=52383#comment-52383" target="_blank"&gt;this &lt;/A&gt;old post and it says ArcGIS Pro only supports TextGraphic. Is this still same ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 08:37:03 GMT</pubDate>
    <dc:creator>Vamsi_KrishnaYarramaasu</dc:creator>
    <dc:date>2021-12-12T08:37:03Z</dc:date>
    <item>
      <title>Annotation Feature Group element support</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/annotation-feature-group-element-support/m-p/771309#M622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have following ArcObjects code&amp;nbsp;for a tool which I am working on to migrate to an ArcGIS Pro tool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;                Do While AnnoFeat IsNot Nothing
                    If TypeOf AnnoFeat.Annotation Is IGroupElement Then
                        With CType(AnnoFeat.Annotation, IGroupElement)
                            elemList = .Elements
                            childElem = elemList.Next
                            Do While childElem IsNot Nothing
                                If TypeOf childElem Is ILineElement Then
                                    'process as line geometry
                                End If
                                If TypeOf childElem Is ITextElement Then
                                    'process text as point
                                End If
                                oChildElem = elemList.Next
                            Loop
                        End With
                    ElseIf TypeOf AnnoFeat.Annotation Is ILineElement Then
                        'process as line geometry
                    ElseIf TypeOf AnnoFeat.Annotation Is ITextElement Then
                        'process text as point
                    End If

                    AnnoFeat = AnnotFeatCursor.NextFeature
                Loop‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can we do this using ArcGIS Pro SDK ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have upgraded the annotation feature class I used in ArcMap for use in ArcGIS Pro and I am trying to write a replacement for this code block. I read &lt;A _jive_internal="true" href="https://community.esri.com/groups/arcgis-pro-sdk/blog/2017/10/18/arcgis-pro-sdk-21-beta-and-new-resources-available?commentID=52383#comment-52383" target="_blank"&gt;this &lt;/A&gt;old post and it says ArcGIS Pro only supports TextGraphic. Is this still same ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:37:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/annotation-feature-group-element-support/m-p/771309#M622</guid>
      <dc:creator>Vamsi_KrishnaYarramaasu</dc:creator>
      <dc:date>2021-12-12T08:37:03Z</dc:date>
    </item>
  </channel>
</rss>

