Select to view content in your preferred language

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

09-12-2021 07:40 AM
by Anonymous User
Not applicable

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
MVP Frequent Contributor

what do you mean by length and width?

0 Kudos
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