API Reference > Classes > Database Classes > OdBmCompoundStructure Class > OdBmCompoundStructure Methods > OdBmCompoundStructure::setMaterialId Method
OdBmCompoundStructure::setMaterialId Method
Syntax
C++
OdResult setMaterialId(const OdUInt32 layerIndex, const OdBmObjectId& materialId);
Parameters 
Description 
const OdUInt32 layerIndex 
[in] Index of a layers, which material needs to be obtained.  
const OdBmObjectId& materialId 
[in] Id of a material to be set to a layer.
 

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

Sets a material id of a layer. 

 

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