CAMTemplate.createFromFile Method

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

Description

Create a CAMTemplate from a file on disk, i.e. Import the template file. Invalid files will produce errors

Syntax

This is a static method.

returnValue = adsk.cam.CAMTemplate.createFromFile(filePath)
This is a static method.

#include <Cam/CAMTemplate/CAMTemplate.h>

returnValue = adsk::cam::CAMTemplate::createFromFile(filePath);

Return Value

Type Description
CAMTemplate Returns the newly created template.

Parameters

Name Type Description
filePath string The path to a template file.

Version

Introduced in version April 2023