CAMTemplateLibrary.importTemplate Method
Parent Object:
CAMTemplateLibraryDefined in namespace "adsk::cam" and the header file is <Cam/CAMTemplate/CAMTemplateLibrary.h>
Description
Import a given template at a specific location. The template will be stored in the library. Throws an error if the given URL is read-only.
Syntax
"cAMTemplateLibrary_var" is a variable referencing a CAMTemplateLibrary object.returnValue = cAMTemplateLibrary_var.importTemplate(camTemplate, destinationUrl)
|
"cAMTemplateLibrary_var" is a variable referencing a CAMTemplateLibrary object.
#include <Cam/CAMTemplate/CAMTemplateLibrary.h>
returnValue = cAMTemplateLibrary_var->importTemplate(camTemplate, destinationUrl);
|
Return Value
URL |
Returns the URL of the newly imported template, or null if the import failed. |
Parameters
camTemplate |
CAMTemplate |
The template that should be imported. |
destinationUrl |
URL |
The URL to the folder where to save the template. |
Version
Introduced in version April 2023