I'm writing an OpenStudio measure with a long list of options for many of the input parameters. Initially, I tried to use a secondary file to host all the constants to keep the measure file tidy but found that if I imported parameters into the measure.rb
file the OpenStudio application did not appear to populate my lists when I did this (although I could see them in the measure.xml
?) So I tried looking through other measures and found most folks just kind of listed them all out in the measure.rb
file. Is there no better best practice?
Measure I'm working on and how I had to use a module inside of measure.rb
to get it to work:
I would much rather have this list of inputs reference a dynamic reference that updates with the OpenStudio gem rather than have to update it in two places.