This functionality is only available for certain module packages. Info / Copyright

Parts Management: Control Files for Importing and Exporting Data

Configuration files can be used to influence the export and import of parts management data. The configuration file can be selected in the Import records and Export records dialogs (Utilities > Parts > Management > [Extras] > Import and ... > Export ) by clicking [...] in the File type field, if one of the entries "CSV for <...>", "ECAD" or "Text" is selected.

Note:

You have several possibilities for exporting and importing CSV files: You can select the areas "Addresses", "Parts", "Drilling patterns", "Accessory list", and "Accessory placement". These areas may be defined sequentially in a CFG file.

To create a configuration file, open the desired parts database (e.g., by double-clicking the appropriate directory), select the table whose data you wish to import or export (e.g., "tblFunctionTemplate" for the function template table), and carry over all relevant columns except the "id" column into the *.cfg file (using the editor).

The following information must be specified at the start of the cfg file:

Note:

By default, a " is imported as "", e.g., "Designation 1: PC with 15"" monitor". You can change the symbol, however, by entering the following line in the cfg file:
textquote=‘
The " is then imported as a ".

The entries for the individual database fields following the definition of the table name are constructed as follows:

variant=[1!#189]

In this example, "variant" is the field from the database. Everything after the "=" is the desired value. The position is specified in the square brackets "[ ]", where everything in front of the "!" defines the number of lines, since a record can also be output over multiple lines. The column information follows the "#" character.

Fixed text can also be assigned to fields. This then appears as (e.g.):

variant="text before" + [1!#6] + "text after" or partnr="Loz."+[1!#4] or partnr="Siemens".

The value in the square brackets "[ ]" can also contain a field with fixed formatting, e.g. variant=[6,5]. Here, the first number specifies column information, the second number after the comma specifies the length of the text, i.e., in this case five characters are read in / out of column 6.

Warning:

Please note that the "tblFunctionTemplate" table may only be imported or exported as a whole. Even if this table apparently contains several fields they are still treated as one field. If, for example, a field has been commented on during the import, any existing entry in the parts management is deleted!

When importing parts data of the file types "CSV for <...>" and "Text", in the configuration file you can also define the language to be used when importing the texts. To do this, the desired language code is specified next to the relevant multi-language fields in the configuration file.

When you import free properties and attributes, make sure that the identifier in the CSV file is the field name. In addition, a row number is appended for the tables.

Here, the ".1" represents the first row in the Free properties table. The attributes are edited in the same way.

When importing free properties it is also possible to place all imported free properties on a single line. To do this, in the associated configuration file the free properties to be imported must be listed with the corresponding row number in the Free properties tab. The row number is entered in the form of a dot "." after the description, val and unit field designations.

See also