English

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

Summary

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.

Procedure

  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:

    Code:
    Dim pt as ipoint
    Set pt = [Shape]

  5. In the Expression box, enter:

    Code:
    pt.z

  6. Press OK.