Close

Relief for ODA Team in Ukraine

Learn more
ODA Kernel SDK
OdCmEntityColor Class
Syntax
C++
class OdCmEntityColor;

 

This class implements the entity color object that represents the unnamed colors specified by the byLayer, byBlock, byColor, byACI, byPen, Foreground, byDgnIndex, or None color methods.

The entity color object can specify any of the following color methods: 

 

Name
Value
Description
kByLayer
0xC0
Color is specified by the layer object on which the object resides.
kByBlock
0xC1
Color is specified by the block object in which the object is contained.
kByColor
0xC2
Color is specified by an RGB value.
kByACI
0xC3
Color is specified by an index (ACI) of a color palette.
kByPen
0xC4
Color is specified by an index of a pen color table.
kForeground
0xC5
Color is the same as the foreground color.
kByDgnIndex
0xC7
Color is specified by an index of a .dgn color table.
kNone
0xC8
Color is absent (object is clear).

 

An entity has no color from the time it is first instantiated until it is assigned one or added to a database. The ColorMethod enumeration defines the constants for color methods.

OdCmEntityColor

File: CmColorBase.h 

Module: API Reference 

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