<?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 Change Annotation Text attribute while using Annotation Tool in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/change-annotation-text-attribute-while-using/m-p/1381142#M11079</link>
    <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;I am working to implement an annotation tool that includes a pulldown menu of standard text items. While using the tool, launched from the create feature pane, the user can select a text item from the menu and it would update the text for the tool so that the current item would be created using that text. I can make it work on completion of the sketch, but I need to update it before that so the user can make sure the annotation fits in the desired location.&lt;/P&gt;&lt;P&gt;I am updating the tool's current template, but that change is not reflected in the pane or on the tool itself.&lt;/P&gt;&lt;P&gt;This code is triggered by the propertychanged event on the embedded tool options pane.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;        private void UpdateStampToolText(string stampToolText)
        {
            if (CurrentTemplate == null || stampToolText == null) return;

            QueuedTask.Run(() =&amp;gt;
            {
                this.CurrentTemplate.Inspector["TextString"] = stampToolText;

            });
        }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I missing something?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;- Dave&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 12 Feb 2024 16:46:49 GMT</pubDate>
    <dc:creator>DaveWilcox</dc:creator>
    <dc:date>2024-02-12T16:46:49Z</dc:date>
    <item>
      <title>Change Annotation Text attribute while using Annotation Tool</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/change-annotation-text-attribute-while-using/m-p/1381142#M11079</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;I am working to implement an annotation tool that includes a pulldown menu of standard text items. While using the tool, launched from the create feature pane, the user can select a text item from the menu and it would update the text for the tool so that the current item would be created using that text. I can make it work on completion of the sketch, but I need to update it before that so the user can make sure the annotation fits in the desired location.&lt;/P&gt;&lt;P&gt;I am updating the tool's current template, but that change is not reflected in the pane or on the tool itself.&lt;/P&gt;&lt;P&gt;This code is triggered by the propertychanged event on the embedded tool options pane.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;        private void UpdateStampToolText(string stampToolText)
        {
            if (CurrentTemplate == null || stampToolText == null) return;

            QueuedTask.Run(() =&amp;gt;
            {
                this.CurrentTemplate.Inspector["TextString"] = stampToolText;

            });
        }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I missing something?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;- Dave&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2024 16:46:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/change-annotation-text-attribute-while-using/m-p/1381142#M11079</guid>
      <dc:creator>DaveWilcox</dc:creator>
      <dc:date>2024-02-12T16:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: Change Annotation Text attribute while using Annotation Tool</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/change-annotation-text-attribute-while-using/m-p/1381257#M11081</link>
      <description>&lt;P&gt;I think I've answered my own question. Using the annotation properties object allowed me to adjust the current annotation text.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;        private void UpdateStampToolText(string stampToolText)
        {
            if (CurrentTemplate == null || stampToolText == null) return;

            QueuedTask.Run(() =&amp;gt;
            {
                Inspector inspector = this.CurrentTemplate.Inspector;
                AnnotationProperties annoProperties = inspector.GetAnnotationProperties();
                annoProperties.TextString = stampToolText;
                inspector.SetAnnotationProperties(annoProperties);
            });
        }&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 12 Feb 2024 20:16:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/change-annotation-text-attribute-while-using/m-p/1381257#M11081</guid>
      <dc:creator>DaveWilcox</dc:creator>
      <dc:date>2024-02-12T20:16:14Z</dc:date>
    </item>
  </channel>
</rss>

