HOW TO
In ArcGIS Pro, vertex z-values of line features can be modified using either the Edit Vertices tool or the Calculate Field tool to ensure consistent z-values, enabling accurate spatial analysis and visualization. While the Edit Vertices tool allows applying the same z-value to multiple vertices, it only supports editing vertices of one line feature at a time.
However, the process can be simplified using Arcade in the Calculate Field tool and this article provides the workflow. In this example, the vertex z-values of multiple line features are modified to ‘0’ using an Arcade expression in ArcGIS Pro.
Note: The Calculate Field tool modifies the input data. Refer to ArcGIS Pro: Tools that modify or update the input data for more information. To enable undo, toggle Enable Undo on in the Calculate Field window before running the tool.
var paths = Geometry($feature).paths
var new_paths = []
for(var p in paths) {
var path = paths[p]
var new_path = []
for(var v in path) {
var vertex = path[v]
var new_vertex = [vertex.x, vertex.y, <value>]
Push(new_path, new_vertex)
}
Push(new_paths, new_path)
}
return Polyline({paths: new_paths, spatialReference: Geometry($feature).spatialReference})

The ArcGIS Pro attribute table shows line features with vertex z-values, '0'.

Article ID: 000034969
Get help from ArcGIS experts
Start chatting now