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 2016-12-04 20:27:45 -0500

antonszilasi's avatar

updated 2016-12-05 10:41:46 -0500

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!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-12-05 11:03:00 -0500

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.

edit flag offensive delete link more

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: 2016-12-04 20:27:45 -0500

Seen: 171 times

Last updated: Dec 05 '16