Calculate Z Values Using CalculateField_management

Discussion created by jasonwarmerdam on Aug 13, 2012
Latest reply on Aug 13, 2012 by erice-esristaff

I'm wanting to calculate Z values from a PointZM shapefile that I created using the 3D analyst extension InterpolateShape. I know that you can just right click from within Arc and calculate the geometry using the z value but I wanted to do this using geoprocessing.

Currently I've got:

arcpy.CalculateField_management([InputPointZ], "METERS", "!shape.Z!", "PYTHON_9.3", "")

I don't know what the proper syntax for calculating the Z value and I'm assuming it's something like
, but that's not it. Anyone been able to do this with the CalculateField_management tool?