This functionality is only available for certain module packages.

Example for the import into a map

Importing of CSV files is often used to fill a map with key value pairs whose values in turn contain maps.

Either a CSV file is imported to also create a new project and in the process store the matching configuration values in a map, or a CSV file is imported during the configuration that stores values in a map consistently with the current configuration step.

The following scenario describes the case that a new project is created during the import of the CSV file and a map is filled with values. A type of construction is queried by means of a Form-UI so that an individual value, which in turn is a map, is determined from the map. The individual values are queried from this map and are displayed in the Form-UI.

The tutorial model Feeder (see Tutorial) serves as the basis for this scenario.

Create the following extensions to this purpose:

The CSV file has to be imported to create a new project:

  1. Open the import wizard via File > Import....
  2. Select Project > Import.
  3. Click [Next >].
  4. Enter the name of the CSV file in the Source file name field (Example: ConveyorData.csv).
  5. Select the Custom schema entry for the type of the scheme.
  6. Enter the name of the scheme file in the Custom schema field (Example: KeyValue_ConveyorData.xsl).
  7. Enter the name of the template file in the Template file name field (Example: Template_CSV.imx).
  8. In the Create new project field, enter another name for the new project, if appropriate.
  9. Click [Finish].

The new project then has to be entered in the Project catalog.

The Feeder component has to be opened in the new project to check the result:

  1. Open the Feeder component in the Project catalog.
  2. Open the Parameters editor page.

As a result of the import the ParameterMap1 parameter is filled with a map:

[
C1»[Cable»MC4G1,5,MotorProtectiveCircuitBreaker»PKZM0-063,Relay»DILM7,Drive»K21R63K4,Make»C1,Power»0.12kW],
C2»[Cable»MC4G1,5,MotorProtectiveCircuitBreaker»PKZM0-1,Relay»DILM7,Drive»K21R71K4,Make»C2,Power»0.25kW],
C3»[Cable»MC4G2,5,MotorProtectiveCircuitBreaker»PKZM0-4,Relay»DILM7,Drive»IE3-W41R90SY4,Make»C3,Power»1.1kW]
]

All other parameter values can only be determined after a selection has been made in the Form-UI.

Make a selection in the Form-UI:

  1. Open the Import editor page.
  2. Select an option for Size.

The values for the fields arranged below are calculated and displayed.

The following figure shows the results next to each other for all options: