First time here? Check out the Help page!
1 | initial version |
I can't tell if you want C# or Python code since you mention C# bindings but are using IronPython, but this is @kyle-benne answer in Python.
from openstudio import model
m = model.Model()
air_loop = model.toAirLoopHVAC(model.addSystemType7(m)).get()
heating_coil = model.toCoilHeatingWater(air_loop.supplyComponents(model.CoilHeatingWater.iddObjectType).front()).get()
hot_water_plant = heating_coil.plantLoop().get()
boiler = model.toBoilerHotWater(hot_water_plant.supplyComponents(model.BoilerHotWater.iddObjectType).front()).get()
print(boiler.name())
2 | No.2 Revision |
I can't tell if you want C# or Python code since you mention C# bindings but are using IronPython, but this is @kyle-benne answer in Python.
from openstudio import model
m = model.Model()
air_loop = model.toAirLoopHVAC(model.addSystemType7(m)).get()
heating_coil = model.toCoilHeatingWater(air_loop.supplyComponents(model.CoilHeatingWater.iddObjectType).front()).get()
hot_water_plant = heating_coil.plantLoop().get()
boiler = model.toBoilerHotWater(hot_water_plant.supplyComponents(model.BoilerHotWater.iddObjectType).front()).get()
print(boiler.name())
3 | No.3 Revision |
I can't tell if you want C# or Python code since you mention C# bindings but are using IronPython, but this is @kyle-benne @kyle benne answer in Python.
from openstudio import model
m = model.Model()
air_loop = model.toAirLoopHVAC(model.addSystemType7(m)).get()
heating_coil = model.toCoilHeatingWater(air_loop.supplyComponents(model.CoilHeatingWater.iddObjectType).front()).get()
hot_water_plant = heating_coil.plantLoop().get()
boiler = model.toBoilerHotWater(hot_water_plant.supplyComponents(model.BoilerHotWater.iddObjectType).front()).get()
print(boiler.name())