First time here? Check out the Help page!
1 | initial version |
ThermalZone::airLoopHVACTerminal
returns an HVACObject class, which is the 'generic' class that all AirTerminal object types inherit from (AirTerminalDualDuct types inherit from Mixer, not StraightComponent). Once you get the HVACObject, you need to 'cast' it to the proper base type in order to access the specific terminal class methods.
e.g.:
``` terminal = thermal_zone.airLoopHVACTerminal if terminal.is_initialized terminal = terminal.get # this gets the HVACComponent end if terminal.to_AirTerminalSingleDuctVAVReheat.is_initialized terminal = terminal.to_AirTerminalSingleDuctVAVReheat.get # now terminal is an AirTerminal class end terminal.setMaximumAirFlowRate(rate)
```
2 | No.2 Revision |
ThermalZone::airLoopHVACTerminal
returns an HVACObject class, which is the 'generic' class that all AirTerminal object types inherit from (AirTerminalDualDuct types inherit from Mixer, not StraightComponent). Once you get the HVACObject, you need to 'cast' it to the proper base type in order to access the specific terminal class methods.
e.g.:
```
```
terminal = thermal_zone.airLoopHVACTerminal if terminal.is_initialized terminal = terminal.get # this gets the HVACComponent end if terminal.to_AirTerminalSingleDuctVAVReheat.is_initialized terminal = terminal.to_AirTerminalSingleDuctVAVReheat.get # now terminal is an AirTerminal class end terminal.setMaximumAirFlowRate(rate)
```
3 | No.3 Revision |
ThermalZone::airLoopHVACTerminal
returns an HVACObject class, which is the 'generic' class that all AirTerminal object types inherit from (AirTerminalDualDuct types inherit from Mixer, not StraightComponent). Once you get the HVACObject, you need to 'cast' it to the proper base type in order to access the specific terminal class methods.
e.g.:
```
terminal = thermal_zone.airLoopHVACTerminal
if terminal.is_initialized
terminal = terminal.get # this gets the HVACComponent
end
if terminal.to_AirTerminalSingleDuctVAVReheat.is_initialized
terminal = terminal.to_AirTerminalSingleDuctVAVReheat.get # now terminal is an AirTerminal class
end
```
4 | No.4 Revision |
ThermalZone::airLoopHVACTerminal
returns an HVACObject class, which is the 'generic' class that all AirTerminal object types inherit from (AirTerminalDualDuct types inherit from Mixer, not StraightComponent). Once you get the HVACObject, you need to 'cast' it to the proper base type in order to access the specific terminal class methods.
e.g.:
terminal = thermal_zone.airLoopHVACTerminal
if terminal.is_initialized
terminal = terminal.get # this gets the HVACComponent
end
# cast to AirTerminalSingleDuctVAVReheat class
if terminal.to_AirTerminalSingleDuctVAVReheat.is_initialized
terminal = terminal.to_AirTerminalSingleDuctVAVReheat.get # now terminal is an AirTerminal class
end
terminal.setMaximumAirFlowRate(rate)
5 | No.5 Revision |
ThermalZone::airLoopHVACTerminal
returns an HVACObjectHVACComponent class, which is the 'generic' class that all AirTerminal object types inherit from (AirTerminalDualDuct types inherit from Mixer, not StraightComponent). Once you get the HVACObject, you need to 'cast' it to the proper base type in order to access the specific terminal class methods.
e.g.:
terminal = thermal_zone.airLoopHVACTerminal
if terminal.is_initialized
terminal = terminal.get # this gets the HVACComponent
end
# cast to AirTerminalSingleDuctVAVReheat class
if terminal.to_AirTerminalSingleDuctVAVReheat.is_initialized
terminal = terminal.to_AirTerminalSingleDuctVAVReheat.get
end
terminal.setMaximumAirFlowRate(rate)