Select to view content in your preferred language

Batch edit point layer z values to 0

404
2
Jump to solution
04-22-2025 09:40 AM
TanyaWright1
Regular Contributor

Hello, 

I want to batch edit the z values for all of my point layers in the utility network to be 0. I was able to do this for the line features using the solution from this post (https://community.esri.com/t5/arcgis-pro-questions/how-to-batch-edit-z-values-and-set-them-all-to/m-... ), but I can't figure out how to create the arcade to make this work for a point layer. Any suggestions?

Thank you!!

0 Kudos
1 Solution

Accepted Solutions
gis_KIWI4
Frequent Contributor

@TanyaWright1 - much simpler with a point. Use the "Calculate Field" option on the Shape Field. 
Use the following arcade operation. 

var geom = Geometry($feature)
var new_point = Point({
    x: geom.x,
    y: geom.y,
    z: 0,
    spatialReference: geom.spatialReference
})
return new_point

Tried it out on a test dataset, where z = 10

gis_KIWI4_0-1745407270548.png

Hope this helps. 

View solution in original post

2 Replies
gis_KIWI4
Frequent Contributor

@TanyaWright1 - much simpler with a point. Use the "Calculate Field" option on the Shape Field. 
Use the following arcade operation. 

var geom = Geometry($feature)
var new_point = Point({
    x: geom.x,
    y: geom.y,
    z: 0,
    spatialReference: geom.spatialReference
})
return new_point

Tried it out on a test dataset, where z = 10

gis_KIWI4_0-1745407270548.png

Hope this helps. 

TanyaWright1
Regular Contributor

@gis_KIWI4 thank you so much! This worked perfectly. Have a great day!

0 Kudos