OperationInput.referenceTool Property

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

Description

Optionally specify the reference tool used by the operation. The ToolLibraries allows the access to Local and Fusion tools. Setting the tool is only possible on operation strategies that support reference tools, an exception is thrown otherwise. Likewise null is returned if the operation strategy does not support reference tools.

Syntax

"operationInput_var" is a variable referencing an OperationInput object.

# Get the value of the property.
propertyValue = operationInput_var.referenceTool

# Set the value of the property.
operationInput_var.referenceTool = propertyValue
"operationInput_var" Is a variable referencing an OperationInput Object.
#include <Cam/Operations/OperationInput.h>

// Get the value of the property.
Ptr<Tool> propertyValue = operationInput_var->referenceTool();

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

Property Value

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

Version

Introduced in version April 2026