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

Revision history [back]

Adding to @Julien Marrec's answer:

There's not currently a path argument available to OS measures, but you can approximate that function with a simple string argument:

#make an argument for location of .csv file
csv_file_path = OpenStudio::Ruleset::OSArgument::makeStringArgument("csv_file_path",true)
csv_file_path.setDefaultValue("C:\Users\Eric\Desktop\zones.csv")
args << csv_file_path

Then in the run section, apply that string to a variable that you pass into the CSV method of your choice.