<?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: Is it possible to Edit Standard Annotation with python in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/is-it-possible-to-edit-standard-annotation-with/m-p/709420#M54984</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Looking like a 'no' to me. I added an element name to a piece of annotation, but I still wasn't able to access it. I tried adding a normal text element into the map and wasn't able to access that either, so at least part of it might be that they're embedded in the dataframe space instead of the layout space.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Aug 2013 20:58:14 GMT</pubDate>
    <dc:creator>MattSayler</dc:creator>
    <dc:date>2013-08-09T20:58:14Z</dc:date>
    <item>
      <title>Is it possible to Edit Standard Annotation with python</title>
      <link>https://community.esri.com/t5/python-questions/is-it-possible-to-edit-standard-annotation-with/m-p/709419#M54983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have created standard annotations which are simply text on the map and i need to edit the text contained within. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I though that these text annotations would be stored as text elements in the MXD, however it appears that they are not. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any way to edit these annotations with python?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Aug 2013 16:54:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-it-possible-to-edit-standard-annotation-with/m-p/709419#M54983</guid>
      <dc:creator>AnthonyTimpson2</dc:creator>
      <dc:date>2013-08-09T16:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to Edit Standard Annotation with python</title>
      <link>https://community.esri.com/t5/python-questions/is-it-possible-to-edit-standard-annotation-with/m-p/709420#M54984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Looking like a 'no' to me. I added an element name to a piece of annotation, but I still wasn't able to access it. I tried adding a normal text element into the map and wasn't able to access that either, so at least part of it might be that they're embedded in the dataframe space instead of the layout space.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Aug 2013 20:58:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-it-possible-to-edit-standard-annotation-with/m-p/709420#M54984</guid>
      <dc:creator>MattSayler</dc:creator>
      <dc:date>2013-08-09T20:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to Edit Standard Annotation with python</title>
      <link>https://community.esri.com/t5/python-questions/is-it-possible-to-edit-standard-annotation-with/m-p/709421#M54985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Looking like a 'no' to me. I added an element name to a piece of annotation, but I still wasn't able to access it. I tried adding a normal text element into the map and wasn't able to access that either, so at least part of it might be that they're embedded in the dataframe space instead of the layout space.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;that's exactly what I tried doing. Very disappointing, now I need to sort out how to make text elements on the fly and populate them with the data from several fields. ArcObjects it is then.. pain in my ass, oh well.. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for confirming my frustrations. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Aug 2013 23:27:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-it-possible-to-edit-standard-annotation-with/m-p/709421#M54985</guid>
      <dc:creator>AnthonyTimpson2</dc:creator>
      <dc:date>2013-08-09T23:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to Edit Standard Annotation with python</title>
      <link>https://community.esri.com/t5/python-questions/is-it-possible-to-edit-standard-annotation-with/m-p/709422#M54986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you store your annotations in a&lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Essential_annotation_and_graphic_text_concepts/00s800000021000000/"&gt; geodatabase&lt;/A&gt;&lt;SPAN&gt;, you can access the attribute table and make edits from there or within an edit session.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2013 12:23:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-it-possible-to-edit-standard-annotation-with/m-p/709422#M54986</guid>
      <dc:creator>LaurenYee</dc:creator>
      <dc:date>2013-08-14T12:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to Edit Standard Annotation with python</title>
      <link>https://community.esri.com/t5/python-questions/is-it-possible-to-edit-standard-annotation-with/m-p/709423#M54987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;that's exactly what I tried doing. Very disappointing, now I need to sort out how to make text elements on the fly and populate them with the data from several fields. ArcObjects it is then.. pain in my ass, oh well.. &lt;BR /&gt;&lt;BR /&gt;Thank you for confirming my frustrations. &lt;BR /&gt;&lt;BR /&gt;Cheers!&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a reason you can't make it an annotation feature class? Like yeel said, that would allow you to edit, make new ones, etc.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2013 14:57:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-it-possible-to-edit-standard-annotation-with/m-p/709423#M54987</guid>
      <dc:creator>MattSayler</dc:creator>
      <dc:date>2013-08-14T14:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to Edit Standard Annotation with python</title>
      <link>https://community.esri.com/t5/python-questions/is-it-possible-to-edit-standard-annotation-with/m-p/709424#M54988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm having the same question today. I love the idea of find/replace for text elements in an MXD, but it appears that those annotations that are apart of a dataframe annotation group are not exposed to python. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone at ESRI confirm this? I have about a 100 "4"s that need to be "7"s right now...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think we would like something like...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;for elm in arcpy.mapping.List&lt;STRONG style="font-style: italic;"&gt;Dataframe&lt;/STRONG&gt;Elements(mxd, "TEXT_ELEMENT"):
 if "Y4" in elm.text:
&amp;nbsp; print elm.text&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 06:25:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-it-possible-to-edit-standard-annotation-with/m-p/709424#M54988</guid>
      <dc:creator>JasonTaylor</dc:creator>
      <dc:date>2021-12-12T06:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to Edit Standard Annotation with python</title>
      <link>https://community.esri.com/t5/python-questions/is-it-possible-to-edit-standard-annotation-with/m-p/709425#M54989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I'm having the same question today. I love the idea of find/replace for text elements in an MXD, but it appears that those annotations that are apart of a dataframe annotation group are not exposed to python. &lt;BR /&gt;&lt;BR /&gt;Can anyone at ESRI confirm this? I have about a 100 "4"s that need to be "7"s right now...&lt;BR /&gt;&lt;BR /&gt;I think we would like something like...&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;for elm in arcpy.mapping.List&lt;STRONG style="font-style: italic;"&gt;Dataframe&lt;/STRONG&gt;Elements(mxd, "TEXT_ELEMENT"):
 if "Y4" in elm.text:
&amp;nbsp; print elm.text&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Taylor, just to clarify, your annotation is stored in the map - not in a separate geodatabase that is accessible via the TOC with an attribute table? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you're working with Text Elements in your map, you can highlight all of them and then right click and select "Convert to Graphics" this will convert all text elements to annotation. In order to do this, first you need to create an annotation feature class in arcCatalogue. And then point your newly created annotation to the "blank" annotation you just created. This should then allow you to edit the attribute table and use the find and replace command!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 06:25:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-it-possible-to-edit-standard-annotation-with/m-p/709425#M54989</guid>
      <dc:creator>LaurenYee</dc:creator>
      <dc:date>2021-12-12T06:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to Edit Standard Annotation with python</title>
      <link>https://community.esri.com/t5/python-questions/is-it-possible-to-edit-standard-annotation-with/m-p/709426#M54990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes Yeel, I took your hint from the above message and tried to find and replace with the field calculator. One problem with this method is that the field calculator doesn't handle carriage returns, so I had to use the updateCursor method in the Python console. This post was a big help --&amp;gt; &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/50738-End-of-line-%28EOL%29-Problem?highlight=field+calculator+\n" rel="nofollow noopener noreferrer" target="_blank"&gt;Post&lt;/A&gt;&lt;SPAN&gt; &amp;lt;--&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Essentially, you can only edit multi-line annotations programatically using a Python console. Even though it's pretty straight forward I'm sharing the meat of the code here in case anyone else comes across this post with the same intentions I had:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
rows = arcpy.UpdateCursor(targetLayer)
trm = textToRemove
trp = textToReplace
for row in rows:
 if row.TextString is not None:
&amp;nbsp; if "tr" in row.TextString:
&amp;nbsp;&amp;nbsp; row.setValue('TextString',row.TextString.replace(trm, trp))
&amp;nbsp;&amp;nbsp; rows.updateRow(row)
del row, rows
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 06:25:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-it-possible-to-edit-standard-annotation-with/m-p/709426#M54990</guid>
      <dc:creator>JasonTaylor</dc:creator>
      <dc:date>2021-12-12T06:25:13Z</dc:date>
    </item>
  </channel>
</rss>

