3

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

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!

antonszilasi's avatar
1.5k
antonszilasi
asked 2016-12-04 20:27:45 -0500
__AmirRoth__'s avatar
4.4k
__AmirRoth__
updated 2016-12-05 10:41:46 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

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.

David Goldwasser's avatar
20.4k
David Goldwasser
answered 2016-12-05 11:03:00 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments