Results 1 to 2 of 2

Thread: Using Ruby Scripts in the Open Data Import Centre

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Innovyze Employee

    Join Date
    Feb 2013

    Using Ruby Scripts in the Open Data Import Centre

    Why not share your ruby script examples here.
    To get started here is a nice example of how to add a Unique ID to a data import of Polygons. For more details refer the blog post.

    class Importer
    @@polygon_id = 1

    def Importer.OnEndRecordPolygon(obj)
    obj['polygon_id'] = @@polygon_id

    @@polygon_id += 1

  2. #2

    Join Date
    Dec 2013
    I would like to know more about Ruby scripts.
    Can you tell me if Ruby scripts are only applied for Open Data Import Centre, or they can be used to create scenarios with different model parameters? I would like to create several scenarios with different parameters in some orifices.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts