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
    FactoryTalk Optix Studio
    project. You can also download the
    CSV
    file individually from: alarms.csv
  1. In
    Project view
    , select
    AlarmImporter
    .
  2. In
    Properties
    , next to
    AbsoluteResourceUri
    , select
    Browse
    .
  3. Select a
    CSV
    file that contains information about objects.
    Select
    alarms.csv
  4. 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.