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);
"cAM_var" is a variable referencing a CAM object.

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
Additive Manufacturing MJF API Sample

Demonstrates how to automate the creation of an additive MJF manufacturing setup and arrange components within the build volume of a 3D printer.

To run the sample script, have a design with one or more components open in Fusion’s DESIGN workspace. This script will switch the UI from the DESIGN workspace to the MANUFACTURE workspace, create a new Manufacturing Model, and create an Additive Arrange using that manufacturing model as an input.

The setup will select an MJF 3D printer from Fusion’s machine library and a print setting from the print setting library. All components in the Manufacturing model will be automatically arranged within the build volume of the selected MJF machine.

Generate Toolpaths API Sample

Demonstrates generating the toolpaths in the active document.

Before running: Run from Scripts and Add-Ins. This sample may open dialogs or require interactive choices; keep Fusion in the foreground. Use a design with CAM data as required by the script. Many CAM samples switch to the MANUFACTURE workspace and may need an existing setup or manufacturing model.

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.

Turning Workflow API Sample

Turning Workflow API Sample. This sample script starts by opening a simple component, which is then used to describe a basic turning 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 January 2016