-
March 4, 2015, 07:05 PM
#1
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
end
end
-
March 17, 2015, 03:49 PM
#2
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
-
Forum Rules