API Reference > OdDb Classes > OdDbLayerTableRecord Class > OdDbLayerTableRecord Methods > OdDbLayerTableRecord::setMaterialId Method
OdDbLayerTableRecord::setMaterialId Method
Syntax
C++
void setMaterialId(OdDbObjectId idMaterial);
Parameters 
Description 
OdDbObjectId idMaterial 
[in] Object ID of the material object to associate it with the layer, or OdDb::kNull to disassociate the layer and material. 

Sets the ID of the material object for the layer record object (DXF 347) as an ObDbObjectId instance. This method associates layer and material. The initial value associates the layer with the "Global" material by default. 

 

Example of Working with the Layer Record Object 

Specific Properties of Layers 

OdDbLayerTableRecord::materialId() method

Copyright © 2002–2020. Open Design Alliance. All rights reserved.