With Attribute rules (insert/update) you can update a field in annotation from an underlying polygon feature class. But, you can not update a TEXTSTRING. The code below works for updating a different textfield in the annotation feature class (It works fine) but when the field is TextString it does not work. This has been reported as a but but was also requested to make this an enhancement so here it is.
// When creating a anno get map number from mapindex polygon layer
var fsMapIndex = FeatureSetByName($datastore,"MapIndex",["MapNumber"])
var fsIntersectMap = Intersects(fsMapIndex,$feature)
var MapIndex = first(fsIntersectMap)
if (MapIndex == null) return {"errorMessage": "No Map Index Feature Found"}
return MapIndex.Mapnumber
This tool would help us to build attribute rules when annotating taxlot/parcelnumber or updating bearing/distances to an annotation feature class. Due to several business requirements, feature linking of the features will not work. In addition, the same business reasons do not allow us to use labeling.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.