Parameter.value Property

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

Description

Gets and sets the real value (a double) of the parameter in database units. Setting this property will set/reset the expression value for this parameter.

This property is only valid for numeric parameters and will fail for text parameters. You can determine the value type of the parameter by using the valueType property. Use the textValue property to get and set the value of text parameters.

Syntax

"parameter_var" is a variable referencing a Parameter object.
# Get the value of the property.
propertyValue = parameter_var.value

# Set the value of the property.
parameter_var.value = propertyValue
"parameter_var" Is a variable referencing a Parameter Object.
#include <Fusion/Fusion/Parameter.h>

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

// Set the value of the property, where value_var is a double.
bool returnValue = parameter_var->value(value_var);
"parameter_var" Is a variable referencing a Parameter Object.
// Get the value of the property.
propertyValue = parameter_var.value;

// Set the value of the property.
parameter_var.value = propertyValue;

Property Value

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

Samples

Name Description
Create Animation API Sample

Creates a series of images while a design parameter changes. You can assemble the images into an animation in other software.

Before running: Open a part that contains a user or model parameter named Length, modifiable from 10 to 15 centimeters. When prompted, choose or create an output folder; the script saves one image per parameter value.

Version

Introduced in version November 2014