CAM.documentStockMaterialLibrary Property

Parent Object: CAM

PreviewThis functionality is provided as a preview of intended future API capabilities. You are encouraged to use it and report any problems or suggestions using the Fusion API and Scripts forum.

Because this is a preview of future functionality, there is the possibility that it will change, which will possibly break any existing programs that use this functionality. Because of that, you should never deliver any programs that use any preview capabilities. For a distributed program, you should wait until it has moved from preview to released state.


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

Description

Gets the document StockMaterialLibrary. The StockMaterialLibrary contains all stock materials used by any setup inside the document. Changes to the original StockMaterialLibrary will not affect any setup because the document StockMaterialLibrary is an independent copy. You can only get a valid DocumentStockMaterialLibrary when you have access to Stock Materials private preview feature and enable the feature flag.

Syntax

"cAM_var" is a variable referencing a CAM object.

# Get the value of the property.
propertyValue = cAM_var.documentStockMaterialLibrary
"cAM_var" is a variable referencing a CAM object.
#include <Cam/CAM/CAM.h>

// Get the value of the property.
Ptr<DocumentStockMaterialLibrary> propertyValue = cAM_var->documentStockMaterialLibrary();

Property Value

This is a read only property whose value is a DocumentStockMaterialLibrary.

Version

Introduced in version September 2024