To place the drawing entities of an AutoCAD layer as CADMATIC Hull elements in a certain fragment the tablayer file has an important role. Furthermore, the conversion file <filename>.dat can be used in combination with the setting spec_name=<filename>.dat. With this file certain fragment changes and colour changes can be specified. This file should be created in the %ncghelps%\dxf directory.

Note: The spec_name variable is the same as used in exporting, but now it has to be specified in label 4 of the configuration file.

In this conversion process the DXF/DWG file, which has to be imported first, will be converted to a Hull model after which the result is adapted according to the file <filename>.dat and the dxfconvert.cmd macro.

The file <filename>.dat consists of a number of sections, each of which handles a certain type of conversion.

Each section starts with a label designation which must have been defined in the dxfconvert.cmd file. For example, COLOR (general colour conversion), ARCCOLOR (conversion of arc colours), DIMCOLOR (conversion of dimension colours), COLORFILL (conversion of colorfill colours) ,TEXTCOLOR (conversion of Text colours) or PLACELAYER (conversion of fragments). Each of the lines under the label designation consists of two values. The first one is the original value, the second the result of the conversion.

The start of a new section is indicated by a new label designation.

An example of such a conversion file is:

# change the colour 7 of dimensions to colour 4

DIMCOLOR

7 4

# change colour 1 to colour 4, colour 5 to 4 and colour 7 to 1.

COLOR

1 4

5 4

7 1

# move the contents of fragments 0\128 in the fragment 30.

PLACELAYER

0\128 30

 

For the possible labels see the file dxfconvert.cmd in the %ncghelps%\dxf directory.