I'm trying to grab thermal zone supply terminals with the following code.
thermalZones = model.getThermalZones
thermalZones.each do |thermalZone|
supplyTerminal = thermalZone.airLoopHVACTerminal
runner.registerInfo("For '#{thermalZone.name}' the supply terminal '#{supplyTerminal}' was found.")
end
Running the previous results in the following.
It seems as though I'm not actually capturing the object because when I try to use supplyTerminal.name
it returns undefined. I assume I'm just missing something rudimentary that should be blatantly obvious and after it's pointed out to me I'll have to hold my head in shame for the rest of the day.