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.

 
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. 
 
 
 
Sets the unnamed color and named color instance for the database color object.
 
Copyright © 2002–2021. Open Design Alliance. All rights reserved.