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

Revision history [back]

Problems getting ScheduleRuleset value

I am writing an Openstudio measure that needs to access the values defined in a schedule defined by "ScheduleRuleset" with different rules. I have written something like this:

sch = model.getScheduleRulsetByName("Schedule name").get start_date = OpenStudio::Date.new(OpenStudio::MonthOfYear.new("Jan"), 1) end_date = OpenStudio::Date.new(OpenStudio::MonthOfYear.new("Dec"), 31)

I have the following problems:

-sch.getDaySchedules(start_date, end_date) always returns the default day (although there are other rules defined for these days). - sch.getActiveRuleIndices(start_date, end_date) always returns an array filled with -1 (no valid rule for this day).

What am I doing wrong? Is there another way to get the schedule values?

Problems getting ScheduleRuleset value

I am writing an Openstudio measure that needs to access the values defined in a schedule defined by "ScheduleRuleset" with different rules. I have written something like this:

sch = model.getScheduleRulsetByName("Schedule name").get
start_date = OpenStudio::Date.new(OpenStudio::MonthOfYear.new("Jan"), 1)
end_date = OpenStudio::Date.new(OpenStudio::MonthOfYear.new("Dec"), 31)

31)

I have the following problems:

-sch.getDaySchedules(start_date, end_date) always returns the default day (although there are other rules defined for these days). - sch.getActiveRuleIndices(start_date, end_date) always returns an array filled with -1 (no valid rule for this day).

What am I doing wrong? Is there another way to get the schedule values?

Problems getting ScheduleRuleset value

I am writing an Openstudio measure that needs to access the values defined in a schedule defined by "ScheduleRuleset" with different rules. I have written something like this:

sch = model.getScheduleRulsetByName("Schedule name").get
start_date = OpenStudio::Date.new(OpenStudio::MonthOfYear.new("Jan"), 1)
end_date = OpenStudio::Date.new(OpenStudio::MonthOfYear.new("Dec"), 31)

I have the following problems:

-sch.getDaySchedules(start_date,

  • sch.getDaySchedules(start_date, end_date) always returns the default default day (although there are other rules rules defined for these days). - days)
  • sch.getActiveRuleIndices(start_date, end_date) always returns an array filled with -1 (no valid rule for this day).

What am I doing wrong? Is there another way to get the schedule values?

Problems getting ScheduleRuleset value

I am writing an Openstudio measure that needs to access the values defined in a schedule defined by "ScheduleRuleset" with different rules. I have written something like this:

sch = model.getScheduleRulsetByName("Schedule name").get
start_date = OpenStudio::Date.new(OpenStudio::MonthOfYear.new("Jan"), 1)
end_date = OpenStudio::Date.new(OpenStudio::MonthOfYear.new("Dec"), 31)

I have the following problems:

  • sch.getDaySchedules(start_date, end_date) always returns the default day (although there are other rules defined for these days)
  • sch.getActiveRuleIndices(start_date, end_date) always returns an array filled with -1 (no valid rule for this day).

What am I doing wrong? Is there another way to get the schedule values?

Problems getting ScheduleRuleset value

I am writing an Openstudio measure that needs to access the values defined in a schedule defined by "ScheduleRuleset" with different rules. I have written something like this:

sch = model.getScheduleRulsetByName("Schedule name").get
start_date = OpenStudio::Date.new(OpenStudio::MonthOfYear.new("Jan"), 1)
end_date = OpenStudio::Date.new(OpenStudio::MonthOfYear.new("Dec"), 31)

I have the following problems:

  • sch.getDaySchedules(start_date, end_date) always returns the default day (although there are other rules defined for these days)
  • sch.getActiveRuleIndices(start_date, end_date) always returns an array filled with -1 (no valid rule for this day).

What am I doing wrong? Is there another way to get the schedule values?