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

Revision history [back]

This is a bug and I have reported it to openstudiosdk github issue. It should be fixed next version. For now you can use this workaround

import openstudio

osmod = openstudio.model.exampleModel()
sch_rule = osmod.getScheduleRulesetByName('Medium Office Cooling Setpoint Schedule').get()
print(sch_rule)
print(sch_rule.scheduleTypeLimits().get())

clg_pnl = openstudio.model.ZoneHVACCoolingPanelRadiantConvectiveWater(osmod)
clg_pnl.setName("Clg Pnl")

hvaccomp = clg_pnl.coolingCoil()
clg_pnl_coil_optional = hvaccomp.to_CoilCoolingWaterPanelRadiant()
if clg_pnl_coil_optional.is_initialized():
    clg_pnl_coil = clg_pnl_coil_optional.get()
    clg_pnl_coil.setName("Clg Pnl Coil")
    clg_pnl_coil.setControlType('OperativeTemperature')
    # isset = clg_pnl_coil.setCoolingControlTemperatureSchedule(sch_rule)
    isset = clg_pnl_coil.setPointer(14, sch_rule.handle())
    print(isset)