CustomGraphicsBRepBody.viewScale Property

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

Description

Gets and sets the graphics view scale being applied to this graphics entity. A CustomGraphicsViewScale object can be created using the static create method of the class. When assigned to a graphics entity the size of the graphics entity is defined in view space (pixels) instead of model space (centimeters).

Syntax

"customGraphicsBRepBody_var" is a variable referencing a CustomGraphicsBRepBody object.

# Get the value of the property.
propertyValue = customGraphicsBRepBody_var.viewScale

# Set the value of the property.
customGraphicsBRepBody_var.viewScale = propertyValue
"customGraphicsBRepBody_var" is a variable referencing a CustomGraphicsBRepBody object.
#include <Fusion/Graphics/CustomGraphicsBRepBody.h>

// Get the value of the property.
Ptr<CustomGraphicsViewScale> propertyValue = customGraphicsBRepBody_var->viewScale();

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

Property Value

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

Version

Introduced in version September 2017