Ruby script (*.rb) files can be imported into InfoWorks WS Pro and exported to standard (*.rb) format that you can then use in a different database or model.
Importing Ruby script
The Ruby script must be imported into an existing Ruby script group in InfoWorks WS Pro. See Creating Groups for more on creating a model group.
To import a Ruby script:
- In the InfoWorks WS Pro Explorer or Model Group window, right-click the Ruby script model group.
- Select Import | Item from I/O file from the context menu.
- Select the Ruby script (*.rb) file to be imported.
Note: You can select multiple files.
- Click Open to import the file into the group.
Imported Ruby script files may be viewed and edited using the Ruby script editor.
Exporting Ruby script
Ruby script files can be exported in the InfoWorks WS Pro standard (*.rb) format. You can use the file for import into a different database or model.
To export a Ruby Scriptl:
- In the InfoWorks WS Pro Explorer or Model Group window, right-click the Ruby script and choose Export | Ruby script from the context menu
- Choose a location for the exported file, change the filename if you want, and click Save.