I have a Calculation Attribute Rule set on my line layer that updates with attributes from the intersection with my point feature. The rule works when creating new line features. We are getting stuck if the point attribute changes, the line attribute does not update automatically.
From Manhole:
var g = Geometry($feature);
var fromPointGeometry = g.paths[0][0];
var fsPoint = FeatureSetByName($datastore, "ssManhole_1", ["FACILITYID"], false);
var fromPoint = First(Intersects(fsPoint, fromPointGeometry ) )
if (fromPoint == null) return -1;
return fromPoint.FACILITYID;
To Manhole:
var g = Geometry($feature);
var toPointGeometry = g.paths[-1][-1];
var fsPoint = FeatureSetByName($datastore, "ssManhole_1", ["FACILITYID"], false);
var toPoint = First(Intersects(fsPoint, toPointGeometry ) )
if (toPoint == null) return -1;
return toPoint.FACILITYID;
If anyone is familiar with Desktop's Attribute Assistant, we are trying to migrate our rules to Pro with Attribute Rules but are having difficulty configuring with Arcade.
@HusseinNasser2 thanks for the video that helped us configure the rules so far
Pro v 2.7.1, File geodatabase environment