ScratchPolygonSelection.viewDirection Property

Parent Object: ScratchPolygonSelection
Defined in namespace "adsk::cam" and the header file is <Cam/GeometrySelections/ScratchPolygonSelection.h>

Description

Gets or sets the view/projection direction for this polygon. This defines the direction along which the polygon is projected onto the toolpath for the edit operation.

Syntax

"scratchPolygonSelection_var" is a variable referencing a ScratchPolygonSelection object.
# Get the value of the property.
propertyValue = scratchPolygonSelection_var.viewDirection

# Set the value of the property.
scratchPolygonSelection_var.viewDirection = propertyValue
"scratchPolygonSelection_var" Is a variable referencing a ScratchPolygonSelection Object.
#include <Cam/GeometrySelections/ScratchPolygonSelection.h>

// Get the value of the property.
Vector3D propertyValue = scratchPolygonSelection_var->viewDirection();

// Set the value of the property, where value_var is a Vector3D.
bool returnValue = scratchPolygonSelection_var->viewDirection(value_var);
"scratchPolygonSelection_var" Is a variable referencing a ScratchPolygonSelection Object.
// Get the value of the property.
propertyValue = scratchPolygonSelection_var.viewDirection;

// Set the value of the property.
scratchPolygonSelection_var.viewDirection = propertyValue;

Property Value

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

Version

Introduced in version July 2026