CAM.generateAllToolpaths Method

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

Description

Generates or regenerates all the operations in the document, including those nested in sub-folders or patterns.

Syntax

"cAM_var" is a variable referencing a CAM object.

returnValue = cAM_var.generateAllToolpaths(skipValid)
"cAM_var" is a variable referencing a CAM object.

#include <Cam/CAM/CAM.h>

returnValue = cAM_var->generateAllToolpaths(skipValid);
"cAM_var" is a variable referencing a CAM object.

returnValue = cAM_var.generateAllToolpaths(skipValid);

Return Value

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

Parameters

Name Type Description
skipValid boolean Option to skip valid operations and only regenerate invalid operations.

Samples

Name Description
Create CAM Operation From Template API Sample Demonstrates adding a new toolpath into the document using an existing CAM template. You can view the template here, although it will be loaded automatically. Run the sample script within any Fusion project containing at least one setup. A new facing operation will be created at the end of each setup discovered.
CAM Parameter Modification API Sample

Demonstrates changing parameters of existing toolpaths.

Before running: 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.

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.

Version

Introduced in version January 2016