innovyze / Open-Source-Support

This repository hosts open code that can be used in Innovyze products that support scripting. This includes Ruby for the UI/Exchange, SQL and other useful stuff. We stand on the shoulders of badgers and penguins.
44 stars 20 forks source link

Import Folder Structure and Files #20

Open RMitchell87 opened 4 months ago

RMitchell87 commented 4 months ago

Hi - I am not sure if this is the correct forum / location for this query so please let me know if I should be asking for help elsewhere.

As part of one of my projects we are importing thousands of rainfall files from our server into InfoWorks ICM. The folder structure and files are all saved within our server, as they have been created via other software. It takes lots of hours to create these folders, and import the files, manually within ICM. I was wondering if there was a Ruby script which could be written to enable a folder structure and file import. The files themselves will be rainfall (.red). Does anyone have examples of this being done? I have looked through the existing scripts but cant seem to find this particular example. I have no background in Ruby scripting, so I suppose I don't know what I'm looking for in the first place. However, it looks like Ruby might be the only way this could be achieved...

Any help would be appreciated.

dickinsonre commented 4 months ago

I have examples, where I read a folder and import DBF or CSV files to the grid. You are reading a .redf file and what to import to a rainfall event? This can be done in Ruby Exchange.