DocumentStockMaterialLibrary.setupsByStockMaterial Method

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

Description

Returns all setups that use the given StockMaterial. The StockMaterial must exist in the document StockMaterial library. Raises an error if the StockMaterial is not in the document.

Syntax

"documentStockMaterialLibrary_var" is a variable referencing a DocumentStockMaterialLibrary object.

returnValue = documentStockMaterialLibrary_var.setupsByStockMaterial(stockMaterial)
"documentStockMaterialLibrary_var" is a variable referencing a DocumentStockMaterialLibrary object.

#include <Cam/StockMaterials/DocumentStockMaterialLibrary.h>

returnValue = documentStockMaterialLibrary_var->setupsByStockMaterial(stockMaterial);
"documentStockMaterialLibrary_var" is a variable referencing a DocumentStockMaterialLibrary object.

returnValue = documentStockMaterialLibrary_var.setupsByStockMaterial(stockMaterial);

Return Value

Type Description
Setup[] Returns setups using a specific StockMaterial.

Parameters

Name Type Description
stockMaterial StockMaterial The StockMaterial to search for setups. The StockMaterial must exist in the document.

Version

Introduced in version September 2024