Using field calcuator within Annotation table ?

2400
7
12-22-2015 11:23 AM
PROBERT68
Frequent Contributor

Hi,

I am trying to calculate this annotation table I have here and wanted to change the vertical Alignment from top to Center ? Is there a way around for me to fix this or some kind of special requirement since it is an annotation in geodatabase ? I tried and it would not change to center.

How do I do that ?

Thanks !

Table from Annotation table.png

0 Kudos
7 Replies
DanPatterson_Retired
MVP Emeritus

first, query or select all the "top" that you want to be changed and then enter "center" as the expression.   the field you are calculating can't contain itself in the expression...if you want it to say "center" just enter that as the expression

0 Kudos
PROBERT68
Frequent Contributor

I tried and I am getting errors that it would not process it. What might I go wrong here...

The Vertical Alignment has drop down that you can select top, center, and so on...

0 Kudos
DanPatterson_Retired
MVP Emeritus

If this isn't being done in the field calculator, then use the selection from the dropdown

0 Kudos
ColeAndrews
Occasional Contributor III

If you're in an edit session and have the records selected, you can use the 'attribute window' to change all the selected records at once using the drop down domains...if you're having issues with field calculator.

0 Kudos
ColeAndrews
Occasional Contributor III

By the way, your syntax in the picture of your field calculator is not correct. That might be your true issue. You need to remove the [VerticalAlignment]=, and you do not use brackets on the word center. Just use the domains as Ted mentioned below. Right click the vertical alignment field, choose field calculator, and just enter the number 1 in the box. No quotes, brackets, etc.

0 Kudos
PROBERT68
Frequent Contributor

Yes  I know. When I looked at the picture, I realized I made an mistake but I did try what Dan suggest.

0 Kudos
TedKowal
Occasional Contributor III

Have you tried the values of the Domain for those alignment tokens?

Example:

Horizontal         Vertical

0 - Left             0 - Top

1 - Center        1 - Center

2 - Right           2 - Baseline

3 - Full             3 - Bottom

Updating your selected values for the alignment column in question to a 1 (which 'center' represents)