Hi I want to modify a openstudio model in command prompt by ruby bindings. I want to load the model and then assign a a thermal zone to a HVAC loop.
require 'OpenStudio'
translator = OpenStudio::OSVersion::VersionTranslator.new
path = OpenStudio::Path.new('model.osm')
model = translator.loadModel(path).get
hVACs = model.getAirLoopHVACs[0]
floor = model.getBuildingStorys[1]
hVACs .addBranchForZone(floor.spaces[1].thermalZone.get)
I get a True for addBranchForZone, but when I open the model in openstudio, the zone wasn't assigend to that air loop.
Any advice and suggestion, or any tutorial or introduction or documentation about openstudio ruby binding would be appreciated!