Setup.createFromTemplate Method

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

Description

This function is retired. See more information in the 'Remarks' section below.

Create and add operations, folders or patterns from the specified template file to the end of this setup.

Syntax

"setup_var" is a variable referencing a Setup object.
returnValue = setup_var.createFromTemplate(templateFilePath)
"setup_var" is a variable referencing a Setup object.

#include <Cam/CAM/Setup.h>

returnValue = setup_var->createFromTemplate(templateFilePath);

Return Value

Type Description
ObjectCollection Returns the collection containing all of the operations, folders and patterns created from the template file.

Parameters

Name Type Description
templateFilePath string The full path to the template file.

Samples

Name Description
New CAM Operation API Sample Demonstrates adding a new toolpath into the document using an existing CAM template. You can get a sample template here. To use the sample, create a new design and add a block. Switch to the MANUFACTURE workspace and create a setup. Run the script and it will create a new facing operation in the setup.

Version

Introduced in version September 2020
Retired in version October 2023