change zone equipment priority order
Is it possible to change the zone equipment priority order from the Openstudio-app?
First time here? Check out the Help page!
Is it possible to change the zone equipment priority order from the Openstudio-app?
In the OS App, priority is based on the order the equipment is added to the zone or the order from top to bottom. So, to change priority, users unfortunately have to delete objects and reorder them.
Here's some Ruby code I've used to do that using the SDK. This will swap the first and second zone equipment order.
model.getZoneHVACEquipmentLists.each do |obj|
clg_eqpt = obj.equipmentInCoolingOrder
htg_eqpt = obj.equipmentInHeatingOrder
obj.setCoolingPriority(clg_eqpt[0], 2)
obj.setCoolingPriority(clg_eqpt[1], 1)
obj.setHeatingPriority(htg_eqpt[0], 2)
obj.setHeatingPriority(htg_eqpt[1], 1)
end
Editing the OSM directly usually isn't recommended. Using the API/SDK is safer and the code above could be used in a formal OpenStudio Measure.
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2020-05-18 02:58:15 -0600
Seen: 242 times
Last updated: May 18 '20