Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Revision history [back]

OS measure - object list from CSV

Is there a way to parse a list of OS objects from a CSV file and create an array or hash in Ruby? I would like to create a custom list of thermal zones in an OS measure to loop through. Also, how would I path the file location? I have seen other measures on the BCL reference additional files in a 'resources' sub-folder located alongside the measure, but I can't quite discern the correct syntax.

OS measure - object list from CSV

Is there a way to parse a list of OS objects from a CSV file and create an array or hash in Ruby? I would like to create a custom list of thermal zones in an OS measure to loop through. Also, how would I path the file location? I have seen other measures on the BCL reference additional files in a 'resources' sub-folder located alongside the measure, but I can't quite discern the correct syntax.