Colors Section
The Colors section of the CSV file starts with the line:
%section,Colors
It contains the following columns:
Column | Contents |
---|---|
Color | The color to remap. |
Level Weight
LineStyle Class ElementType Cell |
Optional. Qualifiers that refine the elements for which the remapping is performed. |
V8OutputColor | The color when saved to a V8 file. |
DWGOutputColor | The color when saved to a DWG or DXF file. |
The Colors section has the following characteristics:
- When
OpenPlant PID saves files to DWG format, by
default it maps the color indices in the DGN color table to the closest color
in the (fixed) AutoCAD color table. If the DWGOutputColor entry is a color in
the file’s color table, you can enter the number of the color in the
DWGOutputColor column. If a fixed index in the AutoCAD color table is desired
(for instance, if you do not want the color matching to be applied), enter the
AutoCAD color number with the suffix ac, as in the following example:
%SECTION,Colors %SECTION,Colors Color,DWGOutputColor 14,62ac
- If the value in the Color column is enclosed in square brackets, it is interpreted as effective color. For example, if the value in the Color column is [2], then the remapping applies if either the element color is 2, or the element has its color set to ByLevel, and the ByLevel color of its level is set to 2.
- If the keyword %unmapped appears in the Color column, then every element with a color that does not otherwise appear in the Color column is mapped to the destination specified in the %unmapped row. If there is more than one %unmapped row in the section with the same values for the qualifiers columns, the last one is used.
- If the keyword %bylevel appears in the V8OutputColor or DwgOutputColor column, then every element that has the color indicated is changed to be ByLevel. The V7 file format does not support ByLevel, so that keyword is invalid in the V7OutputColor column.
- The elements for which the remapping in a particular row applies can be qualified using the optional Level, Weight, LineStyle, Class, ElementType, and Cell columns. While editing the remapping spreadsheet, those columns are displayed when the Show Optional Columns check box is checked. To distinguish them from the required columns, they are shown with a different background color.