2011

Table Of Contents
Using Color in Expressions
When specifying color in an expresssion, you can use any of the following:
AutoCAD Color Index (ACI) number
RGB triplet
color book color
AutoCAD Color Index (ACI)
You can specify the color using an ACI color name (red, yellow, green, cyan,
blue, magenta and white), the ACI index number (0-256), BYLAYER (256), or
BYBLOCK (0).
Examples:
(ade_qrydefine '("" "" "" "Property" ("color" "=" "blue")""))
(ade_qrydefine '("" "" "" "Property" ("color" "=" "5")""))
(ade_altpdefine "color" "red")
(ade_altpdefine "color" "1")
RGB Triplet
An RGB triplet specifies the amount of red, green, and blue used to create the
color. The values represent the intensity of the red, green, and blue
components. The combination of these values can be manipulated to create
a wide range of colors. For each component, enter a value between 0 and 255.
To enter an RGB color, enter the value for each of the components separated
by commas. Enclose the three numbers in single quotation marks. For example,
enter the color Red as '255,0,0' and enter cyan as '0,255,255'.
Only the following operators are valid: = and < >.
Examples:
(ade_qrydefine '("" "" "" "Property" ("color" "=" "\"255,0,0\"" )""))
(ade_altpdefine "color" "255,0,0")
1552 | Chapter 12 Expression Evaluator