Operation.clearTool Method

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

Description

Clears the tool currently assigned to this operation. After this call the operation will have no tool and the tool property will return null. The tool preset (if any) is also cleared. This may invalidate the toolpath.

Syntax

"operation_var" is a variable referencing an Operation object.

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

#include <Cam/Operations/Operation.h>

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

returnValue = operation_var.clearTool();

Return Value

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

Version

Introduced in version July 2026