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

Revision history [back]

Should look something like this.

# create new schedule
sch_ruleset = OpenStudio::Model::ScheduleRuleset.new(model)
sch_ruleset.setName("My Schedule")

If you just look at the ScheduleRuleset object you won't see "setName" https://openstudio-sdk-documentation.s3.amazonaws.com/cpp/OpenStudio-1.7.0-doc/model/html/classopenstudio_1_1model_1_1_schedule_ruleset.html

But if you click "List of all members" you will see it. https://openstudio-sdk-documentation.s3.amazonaws.com/cpp/OpenStudio-1.7.0-doc/model/html/classopenstudio_1_1model_1_1_schedule_ruleset-members.html

The second link shows all methods inherited from parent objects. You can click the "inheritance diagram" to see and jump to those objects. image description