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: alarms.csv
  1. Create objects from a CSV file
  2. In
    Project view
    , select
    AlarmImporter
    .
  3. In
    Properties
    , next to
    AbsoluteResourceUri
    , select
    Browse
    .
  4. Select a
    CSV
    file that contains information about objects.
    Select
    alarms.csv
  5. In
    Project view
    , right-click
    AlarmImporter
    and select
    Execute ImportAlarms
    .
  • Variables are imported into the
    Model
    folder.
  • Alarms are imported into the
    Alarms
    folder.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.