API Reference > OdDb Classes > OdDbEntity Class > OdDbEntity Methods > OdDbEntity::setColorId Method
OdDbEntity::setColorId Method
Syntax
C++
virtual OdResult setColorId(OdDbObjectId colorId, bool doSubents = true);
Parameters 
Description 
OdDbObjectId colorId 
[in] Object ID of the OdDbColor object.  
bool doSubents = true 
[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.

Assigns the specified OdDbColor object to this entity. 

 

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