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

Revision history [back]

click to hide/show revision 1
initial version

Get Thermal Zone Supply T

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.

image description

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.

Get Thermal Zone Supply T

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.

image description

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.

Get Thermal Zone Supply T

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.

image description

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.

Get Thermal Zone Supply T

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.

image description

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.