MaterialLibraries.itemById Method

Parent Object: MaterialLibraries
Defined in namespace "adsk::core" and the header file is <Core/Materials/MaterialLibraries.h>

Description

Returns the Material Library at the specified ID.

Syntax

"materialLibraries_var" is a variable referencing a MaterialLibraries object.
returnValue = materialLibraries_var.itemById(id)
"materialLibraries_var" is a variable referencing a MaterialLibraries object.

#include <Core/Materials/MaterialLibraries.h>

returnValue = materialLibraries_var->itemById(id);

Return Value

Type Description
MaterialLibrary Returns the specified material library or null if there's no match on the ID.

Parameters

Name Type Description
id string The ID of the library to return.

Version

Introduced in version August 2014