Parameter.value Property
Parent Object: ParameterDefined 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.
|
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 of a design where a parameter is being changed. The series of images can be used to create an animation using other software. To run this sample, have a part open that contains a parameter named "Length". The parameter should be able to be successfully modified from 10 to 15 centimeters. Run the sample and choose or create a directory for the output. After running you should have a folder full of images that are snapshots of each parameter value. |