RecognizedPocketInput.attackVectors Property

Parent Object: RecognizedPocketInput

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::cam" and the header file is <Cam/PocketRecognition/RecognizedPocketInput.h>

Description

The attack vectors used to recognize pockets. If left empty, this array will be filled with normals of all planar faces on the given body. There vectors should be pointing down along the tool towards its tip and the pocket floors.

Syntax

"recognizedPocketInput_var" is a variable referencing a RecognizedPocketInput object.

# Get the value of the property.
propertyValue = recognizedPocketInput_var.attackVectors

# Set the value of the property.
recognizedPocketInput_var.attackVectors = propertyValue
"recognizedPocketInput_var" is a variable referencing a RecognizedPocketInput object.
#include <Cam/PocketRecognition/RecognizedPocketInput.h>

// Get the value of the property.
std::vector<Ptr<Vector3D>> propertyValue = recognizedPocketInput_var->attackVectors();

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

Property Value

This is a read/write property whose value is an array of type Vector3D.

Version

Introduced in version April 2026