Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
OdDbEntity::setMaterial Method (OdDbObjectId, bool)
Syntax
C++
virtual OdResult setMaterial(OdDbObjectId materialID, bool doSubents = true);

Sets the material to be referenced by this entity (DXF 347). 

 

Parameters
Description
materialID
[in] Object ID of the material.
doSubents
[in] If and only if true, applies the change to all sub-entities owned by this entity.

Returns eOk if successful, or an appropriate error code if not.

Copyright © 2002-2022. Open Design Alliance All rights reserved.