How To: Extract Z values from the [Shape] field to an attribute in a 3D layer


You can use the Field Calculator to populate a field with Z values extracted from the [Shape] field of PointZ file. This is similar to using the GetZ request in the ArcView 3.x Field Calculator.


  1. Open the attribute table of the 3D point layer.
  2. Right-click on the field that will contain the values and select "Calculate Values..." from the context menu.
  3. In the Field Calculator dialog box, click on the check box for "Advanced".
  4. In the Pre Logic box, enter the following code:

    Dim pt as ipoint
    Set pt = [Shape]

  5. In the Expression box, enter:


  6. Press OK.