<?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 and da.UpdateCursor in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/annotation-and-da-updatecursor/m-p/600830#M46938</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Xander,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also tried the same code on non-value domain fields such as FontSize, and it behaves the same.&amp;nbsp; From what I can tell, the arcpy.da.updatecursor does not work with standard annotation attributes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to test this on your own:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Create an Annotation FC in a geodatabase.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Edit and add a few anno features with Font Size = 12.&amp;nbsp; Stop/Save edits and quit ArcMap&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. In Catalog, run the following code on this feature class:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
import arcpy

fc = arcpy.GetParameterAsText(0)
fields = ('FontSize')

with arcpy.da.UpdateCursor(fc, fields) as cursor:
&amp;nbsp; for row in cursor:
&amp;nbsp;&amp;nbsp;&amp;nbsp; row[0] = 24&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now open the feature class in ArcMap again.&amp;nbsp; If you select one of the annotations, the attribute list will say 'FontSize = 24', but it will still be displaying at 12, or whatever it was originally.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 01:46:04 GMT</pubDate>
    <dc:creator>AdamCrateau</dc:creator>
    <dc:date>2021-12-12T01:46:04Z</dc:date>
    <item>
      <title>Annotation and da.UpdateCursor</title>
      <link>https://community.esri.com/t5/python-questions/annotation-and-da-updatecursor/m-p/600825#M46933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone used da.UpdateCursor on annotation feature classes? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My workflow involves copying the fields &amp;lt;i&amp;gt;HorizontalAlignment&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;VerticalAlignment&amp;lt;/i&amp;gt; into place holder fields, manipulating the annotation symbology, and then copying back in the original values from the place holder fields.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've noticed a curious behavior. The following script using the old, 10.0 cursor works as expected:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;cursor = arcpy.UpdateCursor(fc)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for row in cursor:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]row.HorizontalAlignment = row.HorzAlign2 # where HorzAlign2 is the place holder field[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]row.VerticalAlignment = row.VertAlign2[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]cursor.update(row)[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;del row, cursor&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Whereas, the same logic with the data access cursor does not:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;cursor = arcpy.UpdateCursor(fc, ["HorizontalAlignment", "VerticalAlignment", "HorzAlign2", "VertAlign2"])&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for row in cursor:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]row[0]= row[2][/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]row[1] = row[3][/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]cursor.update(row)[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;del row, cursor&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The good news is that the data access cursor runs 3 times as fast. The bad news: though the values for each row are correct, they don't display correctly in ArcMap. For example, an annotation with HorizontalAlignment of LEFT will display with an alignment of CENTER, which is the default value. If I start an editing session and change the value from LEFT to CENTER, and then back to LEFT,, Then it displays correctly. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Nov 2013 01:08:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/annotation-and-da-updatecursor/m-p/600825#M46933</guid>
      <dc:creator>AdamCrateau</dc:creator>
      <dc:date>2013-11-05T01:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: Annotation and da.UpdateCursor</title>
      <link>https://community.esri.com/t5/python-questions/annotation-and-da-updatecursor/m-p/600826#M46934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Adam,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Not sure why the update cursor doesn't change the values, but the 2nd sample you provide is not making use of the arcpy.da.UpdateCursor. Furthermore the update statement should be "cursor.updateRow(row)":&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;fields = ["HorizontalAlignment", "VerticalAlignment", "HorzAlign2", "VertAlign2"]
with arcpy.&lt;STRONG&gt;da.&lt;/STRONG&gt;UpdateCursor(fc, fields) as cursor:
&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in cursor:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; row[0]= row[2]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; row[1] = row[3]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cursor.update&lt;STRONG&gt;Row&lt;/STRONG&gt;(row)
&amp;nbsp;&amp;nbsp;&amp;nbsp; del row&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Xander&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:45:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/annotation-and-da-updatecursor/m-p/600826#M46934</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-12-12T01:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: Annotation and da.UpdateCursor</title>
      <link>https://community.esri.com/t5/python-questions/annotation-and-da-updatecursor/m-p/600827#M46935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you Xander,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I apologize, I was away from my workstation and guessed wrong on the syntax for the UpdateRow() method.&amp;nbsp; Also, forgot to add the '.da.' to the second example, but it was in my script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically my code is the same as yours except that I used&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;cursor = arcpy.da.UpdateCursor(fc, fields)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;instead of&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;with arcpy.da.UpdateCursor(fc, fields) as cursor:&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Would that make a difference?&amp;nbsp; Also, I should point out that the field I am working with is a CVD.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Nov 2013 14:18:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/annotation-and-da-updatecursor/m-p/600827#M46935</guid>
      <dc:creator>AdamCrateau</dc:creator>
      <dc:date>2013-11-05T14:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: Annotation and da.UpdateCursor</title>
      <link>https://community.esri.com/t5/python-questions/annotation-and-da-updatecursor/m-p/600828#M46936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Basically my code is the same as yours except that I used&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;cursor = arcpy.da.UpdateCursor(fc, fields)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;instead of&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;with arcpy.da.UpdateCursor(fc, fields) as cursor:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;Would that make a difference?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Adam,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the Help is states:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;Using a with statement will guarantee close and release of database locks and reset iteration.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is better using the with statement when working with data access cursors. It is also not necessary to delete the cursor afterwards.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Also, I should point out that the field I am working with is a CVD.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you explain to me what you mean with "CVD"?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Xander&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Nov 2013 14:30:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/annotation-and-da-updatecursor/m-p/600828#M46936</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2013-11-05T14:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: Annotation and da.UpdateCursor</title>
      <link>https://community.esri.com/t5/python-questions/annotation-and-da-updatecursor/m-p/600829#M46937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Xander, Thank you for the tip on the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;with statement&lt;/SPAN&gt;&lt;SPAN&gt;. I'll use that from now on.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;Could you explain to me what you mean with "CVD"?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The annotation properties &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;HorizontalAlignment&lt;/SPAN&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;VerticalAlignment&lt;/SPAN&gt;&lt;SPAN&gt; behave at least like value domains.&amp;nbsp; For example, the field HorizontalAlignment uses the domain &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;HorizontalAlignment&lt;/SPAN&gt;&lt;SPAN&gt;, which has the following coded values:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;0 - Left&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1 - Center&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2 - Right&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3 - Full&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I copy these fields into place holder fields I use the following code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;arcpy.AddField_management(TaxMapAnno,"VertAlign2","SHORT","","","","","","","VerticalAlignment")
arcpy.AddField_management(TaxMapAnno,"HorzAlign2","SHORT","","","","","","","HorizontalAlignment")

rows = arcpy.UpdateCursor(TaxMapAnno)

for row in rows:
&amp;nbsp;&amp;nbsp; row.VERTALIGN2 = row.VERTICALALIGNMENT
&amp;nbsp;&amp;nbsp; row.HORZALIGN2 = row.HORIZONTALALIGNMENT
&amp;nbsp;&amp;nbsp; rows.updateRow(row)

# Delete row and rows to remove lock on data
del row
del rows&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then, when I calculate back the values from the place holder fields, I use the code we discussed above.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:46:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/annotation-and-da-updatecursor/m-p/600829#M46937</guid>
      <dc:creator>AdamCrateau</dc:creator>
      <dc:date>2021-12-12T01:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: Annotation and da.UpdateCursor</title>
      <link>https://community.esri.com/t5/python-questions/annotation-and-da-updatecursor/m-p/600830#M46938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Xander,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also tried the same code on non-value domain fields such as FontSize, and it behaves the same.&amp;nbsp; From what I can tell, the arcpy.da.updatecursor does not work with standard annotation attributes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to test this on your own:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Create an Annotation FC in a geodatabase.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Edit and add a few anno features with Font Size = 12.&amp;nbsp; Stop/Save edits and quit ArcMap&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. In Catalog, run the following code on this feature class:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
import arcpy

fc = arcpy.GetParameterAsText(0)
fields = ('FontSize')

with arcpy.da.UpdateCursor(fc, fields) as cursor:
&amp;nbsp; for row in cursor:
&amp;nbsp;&amp;nbsp;&amp;nbsp; row[0] = 24&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now open the feature class in ArcMap again.&amp;nbsp; If you select one of the annotations, the attribute list will say 'FontSize = 24', but it will still be displaying at 12, or whatever it was originally.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:46:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/annotation-and-da-updatecursor/m-p/600830#M46938</guid>
      <dc:creator>AdamCrateau</dc:creator>
      <dc:date>2021-12-12T01:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: Annotation and da.UpdateCursor</title>
      <link>https://community.esri.com/t5/python-questions/annotation-and-da-updatecursor/m-p/600831#M46939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Adam,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You are right that strange things happen with annotations. If you use the Field Calculator in an ArcMap session and calculate a new fontsize, it will directly display the changed annotation. If you use a cursor in Python to change the value, the value is changed, but this is not reflected in the map. Even after refreshing or removing the annotation and adding it again to the TOC. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
fc = r'C:\Project\_Forums\anno\anno.gdb\linesAnno'

fields = ('FontSize')
with arcpy.da.UpdateCursor(fc, fields) as cursor:
&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in cursor:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; row[0] = 20
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cursor.updateRow(row)
del row&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It will work in case you actually use the Field Calculator tool from python code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
fc = r'C:\Project\_Forums\anno\anno.gdb\linesAnno'
fldFontSize = 'FontSize'
arcpy.CalculateField_management(fc,fldFontSize,"30","PYTHON_9.3")
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After refreshing the map, the annotation will be drawn correctly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Xander&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:46:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/annotation-and-da-updatecursor/m-p/600831#M46939</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-12-12T01:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: Annotation and da.UpdateCursor</title>
      <link>https://community.esri.com/t5/python-questions/annotation-and-da-updatecursor/m-p/600832#M46940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you Xander for taking the time to look at this issue.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just also want to clarify:&amp;nbsp; the original arcpy cursors, e.g. arcpy.UpdateCursor(), work just fine with annotation.&amp;nbsp; FYI, they are not as fast as the new Data Access cursors, but are quite a bit faster than using the tool arcpy.CalculateField_management().&amp;nbsp; I've had the pleasure of timing all the above :rolleyes:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Adam&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 20:01:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/annotation-and-da-updatecursor/m-p/600832#M46940</guid>
      <dc:creator>AdamCrateau</dc:creator>
      <dc:date>2013-11-12T20:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: Annotation and da.UpdateCursor</title>
      <link>https://community.esri.com/t5/python-questions/annotation-and-da-updatecursor/m-p/600833#M46941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Thank you Xander for taking the time to look at this issue.&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;Just also want to clarify:&amp;nbsp; the original arcpy cursors, e.g. arcpy.UpdateCursor(), work just fine with annotation.&amp;nbsp; FYI, they are not as fast as the new Data Access cursors, but are quite a bit faster than using the tool arcpy.CalculateField_management().&amp;nbsp; I've had the pleasure of timing all the above :rolleyes:&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Adam&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Adam, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That's true. Since this (unwanted) behaviour only applies to the da cursor, I think it's best to report it to Esri support.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Xander&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 11:45:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/annotation-and-da-updatecursor/m-p/600833#M46941</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2013-11-13T11:45:39Z</dc:date>
    </item>
  </channel>
</rss>

