CAMTemplateLibrary.deleteAsset Method

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

Description

Delete asset by URL from the library. Throw an error if given URL does not point to a valid asset or the URL is read-only.

Syntax

"cAMTemplateLibrary_var" is a variable referencing a CAMTemplateLibrary object.
returnValue = cAMTemplateLibrary_var.deleteAsset(url)
"cAMTemplateLibrary_var" is a variable referencing a CAMTemplateLibrary object.

#include <Cam/CAMTemplate/CAMTemplateLibrary.h>

returnValue = cAMTemplateLibrary_var->deleteAsset(url);

Return Value

Type Description
boolean Returns true if asset was deleted successfully, false otherwise

Parameters

Name Type Description
url URL The URL to the asset that should be removed.

Version

Introduced in version April 2023