This functionality is only available for certain module packages.

You are here: Tutorial > Project generation per import > Part 3 - Writing values into parameters by importing a CSV file > Writing key-value parts into parameters by importing a CSV file

Writing key-value parts into parameters by importing a CSV file

Requirements:

In addition to the system libraries, the library catalog contains the architecture T_Mechatronic_Architecture and the modular system T_Mechatronic_ModularSystem.

The Feeder project exists in the Project catalog.

The CSV file ParameterMap.csv is imported in order to fill the ParameterMap parameter with key-value pairs in the existing configuration. To this purpose the template file Template_CSV.imx is additionally required.

Proceed as follows to fill a Map with key-value pairs:

  1. Select the menu item File > Import....
  2. The import wizard opens with the Select page.

  3. Navigate to Project > Import.
  4. Confirm via [Next >].
  5. The import wizard opens the page Import file.

  6. Specify the file ParameterMap.csv in the Source file name field.
  7. The file is located in the following directory:

    <EEC installation path>\resources\Import\CSV

    Use [Browse...] to navigate to the file. If applicable, select the file filter CSV files (*.csv).

  8. Select Standard:KeyValue.xsl from the drop-down list. This grays out the input field.
  9. Enter the file Template_CSV.imx in the Template file name field.
  10. The file is located in the following directory:

    <EEC installation path>\resources\Import\IMX

    Use [Browse...] to navigate to the file. If applicable, select the file filter IMX files (*.imx).

  11. Remove the Create new project option and mark the Feeder project in the list below it.
  12. Confirm with [Finish].

Result:

The configuration called Feeder is displayed in the project catalog:

  1. Open the Feeder component.
  2. Select the Parameters editor.

The Value column shows that the values from the columns A and B of the CSV file have been written as a key-value pair in the ParameterMap parameter.