API Reference > OdDb Classes > OdDbColor Class
OdDbColor Class
OdDbColorOdDbColor
Syntax
C++
class OdDbColor : public OdDbObject;

DbColor.h

 

This class implements the color object that stores information about a color as an element of the database container. The database stores the color instances in the dictionary and associates the object ID with an each color instance. The color dictionary is accessed from the database object using the getColorDictionaryId() method. The root drawing dictionary, associates the "ACAD_COLOR" name with the color dictionary.

TD_Db 

Example of Working with the Color Dictionary Object 

Example of Entering and Displaying for Color Objects 

Concept of Colors 

Concept of Database Colors 

OdCmColor class

 
Name 
Description 
 
Builds an instance of the color object. 
 
Name 
Description 
 
Returns the unnamed color and named color instance specified by the byLayer, byBlock, byColor, byACI, byPen, Foreground, byDgnIndex, None color methods, or name in a book. 
 
Reads the .dwg file data of this object.
 
 
Writes the .dwg file data of this object.
 
 
Reads the DXF data of this object.
 
 
Writes the DXF data of this object.
 
 
Returns the unnamed entity color instance specified by the byLayer, byBlock, byColor, byACI, byPen, Foreground, byDgnIndex, None color methods. 
 
This is ODDB_DECLARE_MEMBERS, a member of class OdDbColor. 
 
Sets the unnamed color and named color instance for the database color object.
 
Copyright © 2002–2020. Open Design Alliance. All rights reserved.