With Model Objects
in an OpenStudio measure this is easy, but how do you go about doing this with Workspace Objects
in an EnergyPlus measure?
I'm not able to find a way to establish this dependency without having to manually step through multiple objects.
- Seed
AirLoopHVAC
of interest - Get 'Demand Side Inlet Node Names' of
AirLoopHVAC
- Get
NodeList
that has value of step 2 for 'Name' (field 0) - Get 'Node Name' of
NodeList
from step 3 - Get
AirLoopHVAC:ZoneSplitter
that has value from step 4 for 'Inlet Node Name' (field 1) - Get 'Outlet Node Names' of
AirLoopHVAC:ZoneSplitter
from step 5 (fields 2 to XX) - Get
AirTerminal:XXXXX
that have one of the values from the vector created in step 6 for 'Inlet Node Name' (field varies) - Get 'Name' (field 0) of all objects from step 7
- Get
ZoneHVAC:AirDistributionUnit
that have one of the values from the vector created in step 8 for 'Air Terminal Name' (field 3) - Get 'Name' (field 0) of all objects from step 9
- Get
ZoneHVAC:EquipmentList
that have one of the values from the vector created in step 10 for 'Zone Equipment Name 1 to XX ' - Get 'Name' (field 0) of all objects from step 11
- Get
ZoneHVAC:EquipmentConnections
that have one of the values from the vector created in step 12 for 'Zone Conditioning Equipment List Name' (field 1) - Get 'Zone Name' (field 0) of all objects from step 13
I expect no one to actually read that, but point is, I see having to step through 7 objects to associate a zone with an air loop. I'm hoping there is a workspace method that can be used help establish this dependency directly, but I've yet to find it. Am I just completely overlooking something obvious?