ValueCommandInput.expression Property

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

Description

Gets or sets the expression displayed in the input field. This can contain equations and references to parameters. It is evaluated using the specified unit type.

Syntax

"valueCommandInput_var" is a variable referencing a ValueCommandInput object.

# Get the value of the property.
propertyValue = valueCommandInput_var.expression

# Set the value of the property.
valueCommandInput_var.expression = propertyValue
"valueCommandInput_var" is a variable referencing a ValueCommandInput object.
#include <Core/UserInterface/ValueCommandInput.h>

// Get the value of the property.
string propertyValue = valueCommandInput_var->expression();

// Set the value of the property, where value_var is a string.
bool returnValue = valueCommandInput_var->expression(value_var);

Property Value

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

Version

Introduced in version August 2014