Arbortext IsoDraw > Macro Language Reference > Window Commands > Fill Window > Colors > Add Color
  
Add Color
With the ADD COLOR command you can create a new color. The new color will be added to the currently open document. The new color will be set to active.
* 
If no document is open the created color will be a new standard color available in all new documents.
ADD COLOR"name"color
name
Name of the color after creation. If there is already a color with that name the macro command can not be executed. Furthermore, it is forbidden to use the following characters within a color name:
Forward slash (/)
Circumflex accent (^)
Exclamation point (!)
Less than (<)
Left parenthesis “(“
Colon (:)
color
Optional parameter defines the color as a colorSpec.
MACRO Add Color

DEFINE red AS RGBColor
red.red = 188
red.green = 0
red.blue = 29

DEFINE color_red AS colorSpec
color_red.type = "rgbValues"
color_red.rgb = red

ADD COLOR "RED_188_0_29" color_red

END MACRO