CAM.generateSetupSheet Method

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

Description

Generate the setup sheets for the specified objects

Syntax

"cAM_var" is a variable referencing a CAM object.
# Uses no optional arguments.
returnValue = cAM_var.generateSetupSheet(operations, format, folder)

# Uses optional arguments.
returnValue = cAM_var.generateSetupSheet(operations, format, folder, openDocument)
"cAM_var" is a variable referencing a CAM object.

#include <Cam/CAM/CAM.h>

// Uses no optional arguments.
returnValue = cAM_var->generateSetupSheet(operations, format, folder);

// Uses optional arguments.
returnValue = cAM_var->generateSetupSheet(operations, format, folder, openDocument);

Return Value

Type Description
boolean Returns true if successful

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.
format SetupSheetFormats The document format for the setup sheet. Valid options are HTMLFormat and ExcelFormat. Limitation: "ExcelFormat" can be used in windows OS only.
folder string The destination folder to locate the setup sheet documents in.
openDocument boolean An option to allow to open the document instantly after the generation. By default, the document is opened.

This is an optional argument whose default value is True.

Samples

Name Description
Generate Setup Sheets API Sample Demonstrates generating the setup sheets for an existing toolpath..

Version

Introduced in version January 2016