DRAW Reference Manual
Plot and Drawing Output
:
LIEXEC Command
: Colour Mapping in DXF/DWG and DGN Export
Colour Mapping in DXF/DWG and DGN Export
Basic export exports all graphics as a single colour. For DGN, this is White, which inverts to black on a white background. For DXF/DWG, it will be either Black or White, depending of the value of the BLACKBG option. It BLACKBG is ON, the graphics will be white, otherwise they will be black.
For Advanced export, colours are mapped on export to DXF/DWG or DGN by their RGB values. Where the DRAW RGB value is close to the RGB value of a defined ACI colour, the colour is exported as the ACI colour; otherwise the RGB value is used. In this context, 'close to' is defined as within a radius of 4 in the RGB space.
DRAW colour 10 (White) and colour 15 (Black) both convert to ACI 7 (or White for DGN), which will invert if on the same colour background. DRAW colour 17 (also Black) exports with RGB 0,0,0 and will be black on all backgrounds, while DRAW colour 24 (also White) exports as RGB 255,255,255 will show as White on all backgrounds.
Note:
DRAW and AutoCAD colour names do not match: DRAW Red has an RGB of 189,0,0 while AutoCAD Red is 255,0,0 (which matches DRAW Brightred at index 18). Similarly, AutoCAD Green has RGB 0,255,0 which does not match the DRAW Green (0,189,0). It does match the DRAW unnamed colour at index 20.
AutoCAD Index
DRAW Index
DRAW Name
AutoCAD name
1
18
Brightred
Red
2
4 or 19
Yellow
Yellow
3
20
Green
4
6 or 21
Cyan
Cyan
5
7 or 22
Blue
Blue
6
16 or 23
Magenta
Magenta
7
10 and 15
White and Black
Dynamic White/Black
9
271
Lightgrey
14
31
16
35
20
37
Tomato
24
41
26
45
30
47
Orangered
34
51
Sienna
36
55
Chocolate
40
3
Orange
44
61
46
65
Darkbrown
54
71
60
77
64
81
66
85
70
87
74
91
76
95
80
97
Limegreen
84
101
Forestgreen
86
105
94
111
96
115
100
117
104
121
106
125
Darkgreen
110
127
Springgreen
114
131
116
135
120
137
Aquamarine
126
145
134
151
140
157
144
161
146
165
150
167
154
171
156
175
160
177
Royalblue
164
181
166
185
Midnight
174
191
176
195
180
197
184
201
186
205
190
207
Blueviolet
196
215
204
12
Mauve
206
225
214
231
220
237
226
245
230
247
Deeppink
234
251
236
255
240
257
244
261
246
265
Note:
Users can redefine which colour is used for indices 1-16; alternative indices are given. AutoCAD only names the first 7 colours.
1974 to current year.
AVEVA Solutions Limited and its subsidiaries. All rights reserved.