Create objects from a CSV file
Use a design-time script to create objects in your project based on a CSV file.
Prerequisites
-
Obtain or prepare a CSV file that contains information about objects that you want to import into the project.
Tip: The CSV file is a part of the sample project. You can also download the CSV file individually from: ../../../common-content/../downloads/alarms.csv
Create objects from a CSV file
- In Project view, select AlarmImporter.
- In Properties, next to AbsoluteResourceUri, select Browse.
-
Select a CSV file that contains information about objects.
Select alarms.csv
- In Project view, right-click AlarmImporter and select Execute ImportAlarms.
-
Variables are imported into the Model folder.
-
Alarms are imported into the Alarms folder.