API Reference > Classes > Database Classes > OdBmMaterialTracking Class > OdBmMaterialTracking Methods > OdBmMaterialTracking::getMaterialIdByName Method
OdBmMaterialTracking::getMaterialIdByName Method
Syntax
C++
OdBmObjectId getMaterialIdByName(const OdString& name) const;
Parameters 
Description 
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.