PrintSettingLibrary.updatePrintSetting Method

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

Description

Update a PrintSetting in the library. The library overrides the URL by given PrintSetting. Throws an error if the URL does not already point to an existing printSetting.

Syntax

"printSettingLibrary_var" is a variable referencing a PrintSettingLibrary object.
returnValue = printSettingLibrary_var.updatePrintSetting(url, printSetting)
"printSettingLibrary_var" is a variable referencing a PrintSettingLibrary object.

#include <Cam/PrintSetting/PrintSettingLibrary.h>

returnValue = printSettingLibrary_var->updatePrintSetting(url, printSetting);

Return Value

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

Parameters

Name Type Description
url URL The URL to the existing asset in the library that should be updated.
printSetting PrintSetting The PrintSetting that should be persisted.

Version

Introduced in version April 2023