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

Revision history [back]

The ScheduleRule API was designed to disallow sharing of DaySchedules. So if you create the DaySchedule first and pass it in, you will have to delete the original yourself. If you use the other constructor (with a ScheduleRuleset but not ScheduleDay) the ScheduleRule will construct its own ScheduleDay. You can get that from the ScheduleRuleset later and modify it.

The ScheduleRule API was designed to disallow sharing of DaySchedules. So if you create the DaySchedule first and pass it in, you will have to delete the original yourself. If you use the other constructor (with a ScheduleRuleset but not ScheduleDay) the ScheduleRule will construct its own ScheduleDay. You can get that from the ScheduleRuleset ScheduleRule later and modify it.