Hi,
I have a constraint rule on a point layer (hypernode) which is supposed to stay on a polygon layer (site_manoeuvre) :
//get the feature geometry
var g1 = Geometry($feature)
//get the object id
var siteMan = $feature.s_site_man
//get the entire class
var fsSiteMan_mv = FeatureSetByName($datastore, "dma_test.dma_owner.site_manoeuvre_mv", ['s_historic'], true)
//get the feature joined to the hypernode
var Poly = Filter(fsSiteMan_mv, "s_historic = @siteMan")
var touche = Touches(g1, Geometry(f))
return count(touche) == 1
My rule run pretty well but when I try to move my polygon with the point together, it returns false.
I suppose it is because "FeatureSetByName" took the "old" geometry of the polygon.
Can somebody have an idea on what I can do?
Solved! Go to Solution.
Each edit is processed independently. So if you move both together, the first one will be processed with its attribute rules, before the next edit is preformed.
Each edit is processed independently. So if you move both together, the first one will be processed with its attribute rules, before the next edit is preformed.
Yes so it's not possible to work as I want with attributes rules on the two feature class.
Is it possible to check if another object is moving "at the same time"?
As far as I know, no.
Check out this post. It may help https://community.esri.com/t5/attribute-rules-questions/attribute-rule-for-polygon-movement-with/m-p...