

If FALSE, DataCAD will always read the external (.RGB) color palette instead of the embedded one. You can force DataCAD to load a specific color palette temporarily (the drawing palette name will be restored when you close the file) by adding the following entry to the section of DCADWIN.INI. If you create a new, non-default drawing, then DataCAD tries to use the RGB file specified in the section of DCADWIN.INI (RGBFile=DEFAULT.RGB). So the default color palette is determined by your default drawing. Red, Yellow, Green, Cyan, Blue, Magenta, White/Blackįigure 7 - Default DataCAD Palette (DEFAULT.RGB)įigure 8 - Default AutoCAD Palette as displayed in R14 and in DataCAD (DXFDWG.RGB)įigure 9 - Illustration of Default DataCAD to AutoCAD Color Mappingįigure 10 - Illustration of Default AutoCAD to DataCAD Color MappingĭataCAD 11 and later versions store the name of the Color Palette (i.e., RGB) file in the drawing. White/Black, Red, Green, Blue, Cyan, Magenta, Brown So it is possible to use multiple mapping tables, but requires using multiple (or uniquely-named) palettes.įigure 4 - DXF/ DWG Color Index Mapping Table If PRIZMA.RGB was the current palette, then PRIZMA.TBL would be created. Typically, this name is DEFAULT.TBL which corresponds to DEFAULT.RGB. TBL file to the Support Files directory using the same name as the currently selected palette.

If you select a color on the right, you are setting the 'map to' color for the color that is selected on the left (which is not readily apparent). If you select a color on the left, a dot will appear on the right indicating the 'map to' color. If you select DXF/ DWG Color Map from the Tools pull-down menu, DataCAD will display a dialog with the current drawing color palette on the left, and AutoCAD's default color palette on the right. The same option is available on the DWG Import Assignments dialog if 'Interactively assign fonts and line types during import' is enabled in the 'Import Method' section on the DXF/ DWG tab in Program Preferences.įigure 3 - Option on DXF/ DWG tab in Program Preferences You can override this setting during export by changing the status of 'Translate colors using color table file -> DEFAULT.TBL' on the Export file dialog. The state of this option is the default 'program' state.įigure 1 - Option on DXF/ DWG tab in Program Preferences Īll of this occurs automatically if 'Translate colors using color table file' is checked in the 'Import / Export Color Translation' section on the DXF/ DWG tab in Program Preferences. Note: If you open DEFAULT.TBL in a text editor you'll notice the values are stored in an INI file format. To prevent this, you have to make sure the color index mapping from DataCAD to AutoCAD is reversed when mapping from AutoCAD to DataCAD. So, it's possible for color indexes to get 'scrambled'. However, Light Grey (color index 8) becomes color #253 on the way out, and color #253 becomes color #26 on the way in. By default, these color indexes round-trip consistently. So AutoCAD's Red (color index 1) is mapped to DataCAD's Red (color index 2).Īll is well for White, Red, Green, and Blue. When you import (or open) a DXF/ DWG file, DataCAD maps AutoCAD's default colors to best matches in the current drawing color palette. If DEFAULT.TBL does not exist in the Support Files folder, then DataCAD creates a temporary table in memory. Note: (Assuming DEFAULT.RGB is the current color palette). So DataCAD's White (color index 1) is mapped to AutoCAD's White (color index 7). Based on these matches, DataCAD creates a color index mapping table. When you export your drawing to DXF/ DWG, DataCAD evaluates the current drawing color palette and tries to make mathematical matches to AutoCAD's default color palette. If you don't want to do that, please read on. One solution is to load (i.e., use) the DXFDWG.RGB color palette in any drawing you might export to DXF/ DWG. So when you transfer one way or the other, your drawings do not display or print as you intended. If you're reading this post, it's probably because you've determined that DataCAD colors do not equal AutoCAD colors.
