FloatProperty.units Property

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

Description

Gets the units that the value of this property is returned in. The String returned is a valid Fusion unit string. An empty string indicates a unitless value.

Syntax

"floatProperty_var" is a variable referencing a FloatProperty object.

# Get the value of the property.
propertyValue = floatProperty_var.units
"floatProperty_var" is a variable referencing a FloatProperty object.
#include <Core/Application/FloatProperty.h>

// Get the value of the property.
string propertyValue = floatProperty_var->units();

Property Value

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

Version

Introduced in version August 2014