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

change zone equipment priority order

asked 2020-05-18 02:58:15 -0500

updated 2020-05-18 09:59:35 -0500

Is it possible to change the zone equipment priority order from the Openstudio-app?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2020-05-18 10:39:08 -0500

updated 2020-05-18 10:40:30 -0500

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)  

edit flag offensive delete link more


Thanks Matthew. I use to edit the osm file and look for the OS:ZoneHVAC:EquipmentList and manually change the order. I was wondering if there was a better way or there was a measure to put in first position the air terminal unit.

mapascual's avatar mapascual  ( 2020-05-18 11:34:30 -0500 )edit

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.

MatthewSteen's avatar MatthewSteen  ( 2020-05-18 11:40:14 -0500 )edit

@mattsteen this code was still (9/2023) helpful. Thank you.

pow_skier's avatar pow_skier  ( 2023-09-19 13:14:50 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Training Workshops


Question Tools

1 follower


Asked: 2020-05-18 02:58:15 -0500

Seen: 201 times

Last updated: May 18 '20