ToolPresets.add Method

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

Description

Creates and inserts a new Preset at the end of the Preset collection of the owning Tool. The new Preset will have the same values as the owning Tool.

Syntax

"toolPresets_var" is a variable referencing a ToolPresets object.

returnValue = toolPresets_var.add()
"toolPresets_var" is a variable referencing a ToolPresets object.

#include <Cam/Tools/ToolPresets.h>

returnValue = toolPresets_var->add();
"toolPresets_var" is a variable referencing a ToolPresets object.

returnValue = toolPresets_var.add();

Return Value

Type Description
ToolPreset Returns the newly created Preset

Samples

Name Description
Manufacturing Workflow API Sample

Manufacturing Workflow API Sample. This sample script starts by creating a simple component, which is then used to describe a milling workflow. It creates a setup and a few operations, picks tools from a Fusion sample tool library using loops and queries, and post-processes the operations using an NC program.

Version

Introduced in version April 2023