Adjust 3D Z (Data Management)

License Level:BasicStandardAdvanced

Summary

Modifies Z-values of 3D features.

Usage

Syntax

Adjust3DZ_management (in_features, {reverse_sign}, {adjust_value}, {from_units}, {to_units})
ParameterExplanationData Type
in_features

The 3D features whose Z values will be modified.

Feature Layer
reverse_sign
(Optional)

Denotes whether the sign of all Z-values in the feature class will be inverted.

  • REVERSEInverts the sign of Z-values.
  • NO_REVERSEMaintains the sign of Z-values. This is the default.
String
adjust_value
(Optional)

Uniformly adjusts all Z-values by the specified number. Entering a negative number will decrease the Z-value, whereas a positive number will increase it.

Double
from_units
(Optional)

The existing units of the Z-values. This parameter is used in conjunction with the Convert To Units parameter.

  • MILLIMETERS
  • CENTIMETERS
  • METERS
  • INCHES
  • FEET (US)
  • YARDS
  • FATHOMS
String
to_units
(Optional)

The units that existing Z-values will be converted to.

  • MILLIMETERS
  • CENTIMETERS
  • METERS
  • INCHES
  • FEET (US)
  • YARDS
  • FATHOMS
String

Code Sample

Adjust3DZ example 1 (Python window)

The following sample demonstrates the use of this tool in the Python window:

import arcpy
from arcpy import env

arcpy.CheckOutExtension("3D")
env.workspace = "C:/data"
arcpy.Adjust3DZ_management("subsurface_pts.shp", "REVERSE", 0, "METERS", "FEET")
Adjust3DZ example 2 (stand-alone script)

The following sample demonstrates the use of this tool in a stand-alone Python script:

import arcpy
from arcpy import env

arcpy.CheckOutExtension("3D")
env.workspace = "C:/data"
arcpy.Adjust3DZ_management("subsurface_pts.shp", "REVERSE", 0, "METERS", "FEET")

Environments

Related Topics

Licensing Information

ArcGIS for Desktop Basic: Yes
ArcGIS for Desktop Standard: Yes
ArcGIS for Desktop Advanced: Yes
11/18/2013