Skip to main content

Output has Z Values (Environment setting)

Tools that honor the Output has Z Values environment will control whether the output geodataset will store z-values.

Usage notes

  • As each feature is written to the output feature class, each vertex that does not already have a z-value will be assigned the value in the Default Output Z Value environment. If the Default Output Z Value environment is not set, a value of 0 (zero) will be set.

Dialog syntax

  • Same As Input—If the input has z-values, the output will have z-values. If it does not have z-values, the output will not have z-values. This is the default.

  • Enabled—The output will have z-values.

  • Disabled—The output will not have z-values.

Python syntax

arcpy.env.outputZFlag = output_z_flag

Name Explanation

output_z_flag

Specifies whether an output geodataset will have z-values.

  • Same As InputIf the input has z-values, the output will have z-values. If the input does not have z-values, the output will not have z-values. This is the default.

  • EnabledThe output will have z-values.

  • DisabledThe output will not have z-values.

Scripting syntax

import arcpy

# Set the outputZFlag environment to Enabled
arcpy.env.outputZFlag = "Enabled"