HOW TO
In ArcGIS Pro, it is possible to automatically calculate the length of line features using different units of measurement. This functionality can be automated using an attribute rule that triggers when new line features are added or updated on the map. Automating this process helps save time, reduce errors, and ensure accurate updates to the length of line features in the attribute table.
This article provides the workflow to automatically calculate the length of line features using an attribute rule in ArcGIS Pro.
Note: An ArcGIS Pro Standard license or higher is required to create and manage attribute rules.
Note: The feature layer requires Global IDs to add the attribute rule.
# For planar length Length($feature, '<unit>') # For geodesic length LengthGeodetic($feature, '<unit>')
Note: The planar calculation only works for measuring lengths in geometries with a defined projected coordinate system, while the geodesic calculation only works with a defined geographic coordinate system. It is best practice to work with data in the same coordinate system when performing edits or analysis on the data. Refer to ArcGIS Pro: Project data to a new coordinate system for more information.
The following image shows the length of the line features automatically calculated when new line features are added to the map.
Article ID: 000035242
Get help from ArcGIS experts
Download the Esri Support App