Useful AcGi Constants

The following constants are useful when you are setting or querying entity properties:

// Color
//
static const Adesk::UInt16 kColorByBlock = 0;
static const Adesk::UInt16 kRed     = 1;
static const Adesk::UInt16 kYellow  = 2;
static const Adesk::UInt16 kGreen   = 3;
static const Adesk::UInt16 kCyan    = 4;
static const Adesk::UInt16 kBlue    = 5;
static const Adesk::UInt16 kMagenta = 6;
static const Adesk::UInt16 kWhite   = 7;
static const Adesk::UInt16 kColorByLayer = 256;
// Layer
//
static const char* const kLayerZero = "0";
Note: Constant kWhite is white unless it conflicts with the background color, in which case it becomes black so that it remains visible. If you assign color by block (setColor(0)) or color by layer (setColor(256)), you'll need to query the block or layer for the actual color value.