ViewParameters.scaleValue Property

Parent Object: ViewParameters

PreviewThis functionality is provided as a preview of intended future API capabilities. You are encouraged to use it and report any problems or suggestions using the Fusion API and Scripts forum.

Because this is a preview of future functionality, there is the possibility that it will change, which will possibly break any existing programs that use this functionality. Because of that, you should never deliver any programs that use any preview capabilities. For a distributed program, you should wait until it has moved from preview to released state.


Defined in namespace "adsk::drawing" and the header file is <Drawing/Sheet/ViewParameters.h>

Description

Gets and sets the view scale as a numeric ratio. Defaults to 0, which selects automatic scale. Examples: 1:2 = 0.5, 1:4 = 0.25, 4:2 = 2, 4:1 = 4.

Syntax

"viewParameters_var" is a variable referencing a ViewParameters object.
# Get the value of the property.
propertyValue = viewParameters_var.scaleValue

# Set the value of the property.
viewParameters_var.scaleValue = propertyValue
"viewParameters_var" Is a variable referencing a ViewParameters Object.
#include <Drawing/Sheet/ViewParameters.h>

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

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

// Set the value of the property.
viewParameters_var.scaleValue = propertyValue;

Property Value

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

Version

Introduced in version October 2026