<?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: AnnotationFeature example + data anywhere? in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/annotationfeature-example-data-anywhere/m-p/1017639#M6015</link>
    <description>&lt;P&gt;Thank you both for great sources and quick help! The Update Dataset GP tool command solved my problem!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Petr&lt;/P&gt;</description>
    <pubDate>Mon, 18 Jan 2021 09:54:15 GMT</pubDate>
    <dc:creator>PetrDiviš</dc:creator>
    <dc:date>2021-01-18T09:54:15Z</dc:date>
    <item>
      <title>AnnotationFeature example + data anywhere?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/annotationfeature-example-data-anywhere/m-p/1016325#M5989</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to go through layers in projects and I have an imported project from ArcMap with annotations and I'm trying to get the AnnotationFeature from AnnotationLayer that has AnnotationSubLayers, but i keep getting Feature object.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have a valid code and data example?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is what I have and something is wrong:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;//this finds 3 Annotations in view extent (I can see in GUI it has same TextString, different AnnotationClassId,SymbolID)
SpatialQueryFilter qf = new SpatialQueryFilter();
qf.FilterGeometry = viewExtentGeometry;
qf.SpatialRelationship = SpatialRelationship.Intersects;

...

if (_lyr is AnnotationLayer alr)
  return ConsumeCursorAnnotation(alr.Search(qf));

...

/// this returns null when casted to AnnotationFeature
private IEnumerable&amp;lt;AnnotationFeature&amp;gt; ConsumeCursorAnnotation(RowCursor featureCursor)
{
     while (featureCursor.MoveNext())
       yield return featureCursor.Current as AnnotationFeature;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PetrDiviš_1-1610544112819.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/3715iB7824943D06A10FC/image-size/large?v=v2&amp;amp;px=999" role="button" title="PetrDiviš_1-1610544112819.png" alt="PetrDiviš_1-1610544112819.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2021 13:25:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/annotationfeature-example-data-anywhere/m-p/1016325#M5989</guid>
      <dc:creator>PetrDiviš</dc:creator>
      <dc:date>2021-01-13T13:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: AnnotationFeature example + data anywhere?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/annotationfeature-example-data-anywhere/m-p/1016349#M5990</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Here are some snippets relating to Annotations: &lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki/ProSnippets-Annotation" target="_self"&gt;ProSnippets: Annotation.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;There is also a &lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki/ProConcepts-Annotation" target="_self"&gt;Concept doc&lt;/A&gt; available.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Uma&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2021 14:29:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/annotationfeature-example-data-anywhere/m-p/1016349#M5990</guid>
      <dc:creator>UmaHarano</dc:creator>
      <dc:date>2021-01-13T14:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: AnnotationFeature example + data anywhere?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/annotationfeature-example-data-anywhere/m-p/1016424#M5991</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem here is your data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Annotation data from ArcMap needs to be upgraded in order to be editable and completely recognized within ArcGIS Pro.&amp;nbsp; Use the "Upgrade Dataset" GP tool to accomplish this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can currently view the ArcMap annotation data in ArcGIS Pro, but if you jump to the "List by Editing" tab of the Contents pane you will see an exclamation point with a tooltip indicating the data is not editable.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 359px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/3737iF251639B0B942D48/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once the tool is run, ArcGIS Pro will recognize your data as annotation features.and your code will cast to AnnotationFeatures successfully.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But an important note.&amp;nbsp; The Upgrade dataset GP tool&amp;nbsp;will upgrade the feature class "in place".&amp;nbsp; A copy is not made.&amp;nbsp; Once the tool is run, the data can no longer be edited in ArcMap.&amp;nbsp; So if having the data in ArcMap format is important to you then you should make a copy of it first and run the GP tool on the copy.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is not possible to have annotation data editable in both ArcMap and Pro at the same time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In addition, here's some helpful information on working with annotations in the ArcGIS Pro API.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki/ProConcepts-Editing-Annotation" target="_blank"&gt;https://github.com/Esri/arcgis-pro-sdk/wiki/ProConcepts-Editing-Annotation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;Narelle&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2021 17:23:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/annotationfeature-example-data-anywhere/m-p/1016424#M5991</guid>
      <dc:creator>NarelleChedzey</dc:creator>
      <dc:date>2021-01-13T17:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: AnnotationFeature example + data anywhere?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/annotationfeature-example-data-anywhere/m-p/1017639#M6015</link>
      <description>&lt;P&gt;Thank you both for great sources and quick help! The Update Dataset GP tool command solved my problem!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Petr&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 09:54:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/annotationfeature-example-data-anywhere/m-p/1017639#M6015</guid>
      <dc:creator>PetrDiviš</dc:creator>
      <dc:date>2021-01-18T09:54:15Z</dc:date>
    </item>
  </channel>
</rss>

