Xander, Thank you for the tip on the with statement. I'll use that from now on.
Could you explain to me what you mean with "CVD"?
The annotation properties HorizontalAlignment and VerticalAlignment behave at least like value domains. For example, the field HorizontalAlignment uses the domain HorizontalAlignment, which has the following coded values:0 - Left1 - Center2 - Right3 - FullWhen I copy these fields into place holder fields I use the following code:arcpy.AddField_management(TaxMapAnno,"VertAlign2","SHORT","","","","","","","VerticalAlignment")
arcpy.AddField_management(TaxMapAnno,"HorzAlign2","SHORT","","","","","","","HorizontalAlignment")
rows = arcpy.UpdateCursor(TaxMapAnno)
for row in rows:
row.VERTALIGN2 = row.VERTICALALIGNMENT
row.HORZALIGN2 = row.HORIZONTALALIGNMENT
rows.updateRow(row)
# Delete row and rows to remove lock on data
del row
del rows
Then, when I calculate back the values from the place holder fields, I use the code we discussed above.