OperationInput.referenceTool Property

Parent Object: OperationInput

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/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