It would be great if there were an easy way to update the geometry of existing features in real time / after an edit is made.
It would be the equivalent of a DB trigger, but using logic similar to the Python field calculator script below:
#Updates the vertices of existing features
def new_shape(geom): spatial_reference = geom.spatialReference geom = geom.densify("ANGLE", 10000, 0.174533) parts = arcpy.Array() for i in range(geom.partCount): part = geom.getPart(i) points = arcpy.Array() for j in range(part.count): point = part.getObject(j) point.M = geom.measureOnLine(point) points.append(point) parts.append(points) return arcpy.Polyline(parts, spatial_reference)
Currently, there doesn't seem to be an easy way to do that in ArcGIS Pro, without customizing via a .NET add-in.
And unfortunately, it's not possible in the DB either, since the SDE.ST_GEOMETRY (Oracle) functions are too limited.
Is there a reason why Attribute Rules can't be used?
Thanks! I'd been reading the docs for Arcade, and came across this line:
"Geometry is immutable, meaning it is not possible to change the geometry after it is created."
So I figured Attribute Rules (which I think use Arcade) wouldn't be an option. But I must have misunderstood.
No problem @Bud !
I'll set the status of the Idea to closed. If you end up trying Attribute Rules, a good place for questions is https://community.esri.com/t5/attribute-rules/ct-p/attribute-rules
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.