API Reference > Classes > Database Classes > OdBmMaterialElem Class > OdBmMaterialElem Methods > OdBmMaterialElem::createMaterial Method
OdBmMaterialElem::createMaterial Method
Syntax
C++
static OdBmObjectId createMaterial(OdBmDatabase * pDb, const OdString & name);
Parameters 
Description 
OdBmDatabase * pDb 
[in] Database where material will be stored.  
const OdString & name 
[in] Name for material element.
 

ObjectId of the MaterialElem that was created and added to database.

Creates material element with default settings and given name 

 

Copyright (c) 2002-2020. Open Design Alliance. All rights reserved.