C++
Adesk::UInt16 colorIndex() const;
Description
Returns the AutoCAD color index value in the AcCmColor object, or, if there is a referenced AcCmComplexColor object, its color index is returned.
The index value will be in the range 0 to 256. 0 and 256 are special values.
0 indicates that the entity uses the color of the BlockReference that's displaying it. If the entity is not displayed through a BlockReference (for example, it is directly owned by the Model Space BlockTableRecord) and its color is 0, then it will display as though its color were 7.
256 indicates that the entity uses the color specified in the LayerTableRecord it references.
Notes
Currently AutoCAD and the ARX API libraries make no use of complex colors.