Operation.clearReferenceTool Method

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

Description

Clears the reference tool currently assigned to this operation. After this call the operation will have no reference tool and the referenceTool property will return null. This may invalidate the toolpath.

Syntax

"operation_var" is a variable referencing an Operation object.

returnValue = operation_var.clearReferenceTool()
"operation_var" is a variable referencing an Operation object.

#include <Cam/Operations/Operation.h>

returnValue = operation_var->clearReferenceTool();
"operation_var" is a variable referencing an Operation object.

returnValue = operation_var.clearReferenceTool();

Return Value

Type Description
boolean Returns true if the reference tool was successfully cleared.

Version

Introduced in version July 2026