TriadCommandInput.zTranslation Property

Parent Object: TriadCommandInput
Defined in namespace "adsk::core" and the header file is <Core/UserInterface/TriadCommandInput.h>

Description

Gets and sets the current value of the translation along the Z axis of the triad. The value is in centimeters but will be displayed to the user in default units for the design.

The isValidExpressions property should be checked before using the value within the command.

Syntax

"triadCommandInput_var" is a variable referencing a TriadCommandInput object.

# Get the value of the property.
propertyValue = triadCommandInput_var.zTranslation

# Set the value of the property.
triadCommandInput_var.zTranslation = propertyValue
"triadCommandInput_var" is a variable referencing a TriadCommandInput object.
#include <Core/UserInterface/TriadCommandInput.h>

// Get the value of the property.
double propertyValue = triadCommandInput_var->zTranslation();

// Set the value of the property, where value_var is a double.
bool returnValue = triadCommandInput_var->zTranslation(value_var);

Property Value

This is a read/write property whose value is a double.

Version

Introduced in version May 2022