API Reference > Classes > Database Classes > OdBmMaterialElem Class > OdBmMaterialElem Methods > OdBmMaterialElem::getMaterialIdByName Method
OdBmMaterialElem::getMaterialIdByName Method
Syntax
C++
static OdBmObjectId getMaterialIdByName(OdBmDatabase * pDb, const OdString& name);
Parameters 
Description 
OdBmDatabase * pDb 
[in] Database that will be searched for the material.  
const OdString& name 
[in] Input material name. 

Returns the material ID by name. If the material does not exist, then returns OdBmObjectId::kNull. 

 

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