StockMaterialLibrary.stockMaterialAtURL Method

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

Description

Get a specific stockMaterial by the given URL. Returns null, if the URL does not exist.

Syntax

"stockMaterialLibrary_var" is a variable referencing a StockMaterialLibrary object.

returnValue = stockMaterialLibrary_var.stockMaterialAtURL(url)
"stockMaterialLibrary_var" is a variable referencing a StockMaterialLibrary object.

#include <Cam/StockMaterials/StockMaterialLibrary.h>

returnValue = stockMaterialLibrary_var->stockMaterialAtURL(url);
"stockMaterialLibrary_var" is a variable referencing a StockMaterialLibrary object.

returnValue = stockMaterialLibrary_var.stockMaterialAtURL(url);

Return Value

Type Description
StockMaterial Returns the stockMaterial for a valid URL, returns null otherwise.

Parameters

Name Type Description
url URL The URL to the stockMaterial to be loaded.

Version

Introduced in version September 2024