Macro Language Reference > Macros > System > defcol
  
defcol
Description
Adds a color to the user color palette, or redefines an existing color. Any new named color that is created using this macro is added to the end of PTC ALD color list (by default the scoldef.3ad file).
Syntax
defcol color_name:m definition:c ps_name:m?
color_name
The name by which the new color should be known
definition
The definition to which color_name should refer
ps_name
The PostScript color name: when the color is used in a PostScript or EPS file, this is the name that will be used by PTC ALD to refer to the color. If such an EPS file is later imported into another PTC ALD document, or even another application, this color will be added to the appropriate color palette.
Additional Information
Example lines from scoldef.3ad are shown below:
defcol "AliceBlue",{6,2.5,0,0}
defcol "AntiqueWhite",{2,8,15.5,0}
defcol "AntiqueWhite1",{0,6.5,14,0}
defcol "AntiqueWhite2",{6.5,12.5,20,0}
defcol "AntiqueWhite3",{19.5,24.5,31,0}
defcol "AntiqueWhite4",{45.5,48.5,53,0}
If an existing palette color name is used, the original name is deleted and the new color is added to the end of the palette. The new color can be moved to another place in PTC ALD color list by manually editing the scoldef.3ad file.