SketchDimension.value Property

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

Description

Gets and sets the current value of the sketch dimension.

In a design where the design history is being captured (parametric) and the isDriving property is True, this is exactly equivalent to getting the parameter associated with the dimension and editing its value. Editing this property will result in the parameter value being changed. If isDriving is False, this acts as a read-only property and attempting to set it will fail.

In a design where the design history is NOT being captured (direct edit) the parameter property will return null and this property can be used to get and set the value of the dimension because in this case, there isn't an associated parameter.

The value is always in internal units which means that for dimensions that represent a distance, the value is in Centimeters and for dimensions representing an angle the value is in Radians.

Syntax

"sketchDimension_var" is a variable referencing a SketchDimension object.

# Get the value of the property.
propertyValue = sketchDimension_var.value

# Set the value of the property.
sketchDimension_var.value = propertyValue
"sketchDimension_var" is a variable referencing a SketchDimension object.
#include <Fusion/Sketch/SketchDimension.h>

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

// Set the value of the property, where value_var is a double.
bool returnValue = sketchDimension_var->value(value_var);

Property Value

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

Version

Introduced in version July 2022