API Reference > OdDb Classes > OdDbEntity Class > OdDbEntity Methods > OdDbEntity::colorIndex Method
OdDbEntity::colorIndex Method
Syntax
C++
OdUInt16 colorIndex() const;

Returns a value in the range [0 .. 256]. 

 

  • 0 indicates a color of BYBLOCK.
  • 256 indicates a color of BYLAYER.

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

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