How can I unzip the Element field [BLOB] from an Annotation FC?

763
1
07-21-2020 02:51 PM
FabianOrtega
New Contributor II

I'm trying to read with ArcPy the info from the Element field [BLOB] of an Annotation Feature Class as the documentation specifies:

Element: BLOB field that stores symbology and text geometry

Manage annotation feature class properties—ArcGIS Pro | Documentation 

Can someone help me to achieve this?

0 Kudos
1 Reply
David_Colombini
New Contributor II

Closest I got was converting the blob field to bytes but I'm struggling with the proper encoding.  This should at least get you the blob's values as bytes:

cursor = arcpy.da.SearchCursor(layer, ['Element'])
for row in cursor:
    print(row[0].tobytes())

Playing around with it as an update cursor to to move it automatically but there is little to no documentation that I can find on updating annotations programatically/dynamically with an updatecursor.  

0 Kudos