API Reference > Classes > Database Classes > OdBmElement Class > OdBmElement Methods > OdBmElement::getMaterialIds Method
OdBmElement::getMaterialIds Method
Syntax
C++
virtual OdResult getMaterialIds(OdBmObjectIdArray& value, bool returnPaintMaterials) const;
Parameters 
Description 
OdBmObjectIdArray& value 
[out] the array of material ids as OdBmObjectIdArray.  
bEdit 
[in] if true, method returns material ids assigned to element faces. If false, method returns materials associated through element geometry or compound structure layers.  

eOk if the operation completed successfully, or an appropriate error code otherwise.

Retrives the ids of all materials of the element. 

 

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