Configuration Files

Before starting The Import Process or The Export Process, a number of definitions must be made or must be present. These definitions can be made in the various configuration files which are used by the conversion process.

The files with the names of dxf-<configuration_name>.cfg will be used in the conversion. These files are located in the %ncghelps%\dxf folder.

A number of variables are specified in these configuration files to handle the import and export of DXF/DWG files. The files are so called macros that always contain at least six labels. The variables under labels 1 to 3 are used in the export function for drawings, while labels 4 to 6 are used in the import function of drawings.

Export

  • Label 1 : Variables to which a value has been assigned.
  • Label 2 : Pre-conversion actions for each drawing.
  • Label 3 : Post-conversion actions for each drawing.

Import

  • Label 4 : Variables to which a value has been assigned.
  • Label 5 : Pre-conversion actions for each drawing.
  • Label 6 : Post-conversion actions for each drawing.

The variables that can be specified under labels 1 and 4 are explained in 2D Export and Import, respectively.

Labels 1 and 4 must also contain the name and path of the so called tab files, which contain the layer, line type, font, and hatch presentation mappings for the import and export process. See Tab Files for more information.

Click below for an example file for general export/import purposes.

Managing Several Configuration Files

Before using the import or export functions a choice can be made from a list of available configurations. The Import/Export > DXF/DWG > Configurations function in System Management application can be used to specify the configurations to be used in the configuration list. Also the order in which the configurations are to be presented in the selection list, and thus the default configuration (the first one in the list) can be defined.

In the Configurations dialog, the list with available configurations contains the configuration names of the files dxf-<configuration name>.cfg in the %ncghelps%\dxf folder.

You should use configuration file names that are easily recognized for their purpose, such as:

  • dxf-client_general.cfg
  • dxf-client_plotlines.cfg
  • dxf-client_electric.cfg
  • dxf-client_engine.cfg

If a new configuration file is created in the %ncghelps%\dxf directory, you can use the Import/Export > DXF/DWG > Configurations function to add the configuration to the configuration list.

The configuration list can be set for a particular project with the Local File (project) option, or as a global configuration list with the Global file (%ncghelps%) option.

If the configuration list is reset for a particular project, it is removed from the %ncgnorms% directory, and the global list is used in the File > Export > DXF/DWG function.