ModelParameter.role Property

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

Description

This property identifies what the parameter is used for. For an extrude, it could be "Depth", for a work plane it could be "Offset".

Syntax

"modelParameter_var" is a variable referencing a ModelParameter object.

# Get the value of the property.
propertyValue = modelParameter_var.role
"modelParameter_var" is a variable referencing a ModelParameter object.
#include <Fusion/Fusion/ModelParameter.h>

// Get the value of the property.
string propertyValue = modelParameter_var->role();

Property Value

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

Version

Introduced in version August 2014