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

Getting default schedule set from SpaceType and then applying it to spaces

asked 8 years ago

antonszilasi's avatar

updated 8 years ago

Dear all,

I'm having a really tough time working out how to get the Default Schedule set from a space type and apply it to a space.

image description

I would like to get the defaultScheduleSet from a space type and then apply that defaultScheduleSet to all the spaces in my model.

How should I write my code to do this (in Ruby)? I am getting lost in the OpenStudio SDK.

Many thanks!

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
0

answered 8 years ago

Here is a Replace Default Construction Set measure written by another UnmetHours user. You an can adapt a few lines on that measure to operate on "DefaultScheduleSet" instead of "DefaultConstructionSet" to make a measure that sets an existing DefaultScheduleSet to the building.

Keep in ind if any spaces in your model have space types assigned that have their own DefaultSchduleSets, those would overwrite the building level defaults. Do you really want the same schedule set across the building vs. having activity assigned by space type?

For reference, here is link to DefaultScheduleSet API documentation.

Preview: (hide)
link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Training Workshops

Careers

Question Tools

1 follower

Stats

Asked: 8 years ago

Seen: 223 times

Last updated: Dec 05 '16