Calculate length and width of polygons using Arcade in Expression Builder in the attribute table

638
2
09-12-2021 07:40 AM
Adriana_Varchetta__
New Contributor II

I am using attribute rules to automatically update cells in an attribute table. I need to auto-calculate the length and width of polygons (respectively) as the user creates them. Is there a way to do this using math/geometry functions in Arcade? It would work similarly to the tool Minimum Bounding Geometry that can calculate length and width of polygons.

I have no idea where to start, im new with scripting. Does expression builder use python or strictly arcade? Thank you in advance.

0 Kudos
2 Replies
DavidPike
MVP Frequent Contributor

what do you mean by length and width?

0 Kudos
DanPatterson
MVP Esteemed Contributor

Getting this done as you enter the data is probably not a good idea since you really need

rectangle by width from

Minimum Bounding Geometry (Data Management)—ArcGIS Pro | Documentation

 


... sort of retired...
0 Kudos