CAM.generateToolpath Method

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

Description

Generates or regenerates all the specified objects, including those nested in sub-folders or patterns.

Syntax

"cAM_var" is a variable referencing a CAM object.
returnValue = cAM_var.generateToolpath(operations)
"cAM_var" is a variable referencing a CAM object.

#include <Cam/CAM/CAM.h>

returnValue = cAM_var->generateToolpath(operations);

Return Value

Type Description
GenerateToolpathFuture Return GenerateToolpathFuture that includes the status of the operation generation.

Parameters

Name Type Description
operations Base An Operation, Setup, Folder, or Pattern object. You can also use an ObjectCollection to specify multiple objects of any of the supported types.

Samples

Name Description
Generate Toolpaths API Sample Demonstrates generating the toolpaths in the active document.
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, a few operations, pick some tools from a Fusion sample tool library using loops and queries and ends up post-processing the operations out using an NC Program.

Version

Introduced in version January 2016