Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
OdDbEntity::setColorIndex Method
Syntax
C++
virtual OdResult setColorIndex(OdUInt16 colorIndex, bool doSubents = true);

Sets the color index of this entity (DXF 62). 

 

Parameters
Description
colorIndex
[in] Color index.
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. 

colorIndex will be in the range [0 .. 256].

  • 0 indicates a color of BYBLOCK.
  • 256 indicates a color of BYLAYER.
Copyright © 2002-2022. Open Design Alliance All rights reserved.