Parameter.unit Property

Parent Object: Parameter
Defined in namespace "adsk::fusion" and the header file is <Fusion/Fusion/Parameter.h>

Description

The unit type associated with this parameter. An empty string is returned for parameters that don't have a unit type.

Syntax

"parameter_var" is a variable referencing a Parameter object.

# Get the value of the property.
propertyValue = parameter_var.unit
"parameter_var" is a variable referencing a Parameter object.
#include <Fusion/Fusion/Parameter.h>

// Get the value of the property.
string propertyValue = parameter_var->unit();

Property Value

This is a read only property whose value is a string.

Version

Introduced in version August 2014