Select to view content in your preferred language

Field Calculate Annotation Angle

266
1
05-29-2025 02:33 PM
Jwalke20
New Contributor

Attempting to use the field calculator to change the Angle field in a a feature linked annotation class that resides in a file geodatabase. Specifically, I am adding a value to the current value. Error 999999 is thrown. 

def calcAngle(old, value):
    newAngle = old + float(value)
    return newAngle

 

 

0 Kudos
1 Reply
DanPatterson
MVP Esteemed Contributor

You need your Expression and its properly format etc

see more examples including code blocks

Calculate Field Python examples—ArcGIS Pro | Documentation

# Expression
calcAngle(!Angle!, value=5.0)  # field name in ! ! and value=5

# Code block
def calcAngle(old, value):
    newAngle = old + float(value) # although float shouldn't be needed
    return newAngle

... sort of retired...
0 Kudos