HOW TO

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

Last Published: October 13, 2020

Summary

Note:
This article pertains to ArcGIS version 8.x. Later versions of ArcGIS may contain different functionality, as well as different names and locations for menus, commands and geoprocessing tools. Refer to the Related Information Links below for alternative methods in later versions of ArcGIS Desktop.

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 the field that will contain the values and select Calculate Values from the context menu.
  3. In the Field Calculator dialog box, click the check box for Advanced.
  4. In the Pre Logic box, enter the following code:
Dim pt as ipoint
Set pt = [Shape]
  1. In the Expression box, enter the following code:
pt.z
  1. Click OK.

Article ID:000004584

Software:
  • ArcMap 8 x

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Related Information

Discover more on this topic