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

Revision history [back]

Openstudio SDK - Add spaceType to model

I am struggling to understand how to add a space type to a model with the Ruby SDK, for example 189.1-2009 - Office - WholeBuilding - Md Office - CZ1-3.

This is where I got:

space_type = OpenStudio::Model::SpaceType.new(model)
space_type_name = "189.1-2009 - Office - WholeBuilding - Md Office - CZ1-3"
space_type.setStandardsSpaceType(space_type_name)

in the meaaure Space Type and Construction Set Wizard there is a method called wizard from openstudio-extension. It looks like it first defines a standard and then assigns some properties

standard = Standard.build("90.1-2019") # Just guessing the standard
standard.space_type_apply_internal_loads(space_type, true, true, true, true, true, true)
standard.space_type_apply_internal_load_schedules(space_type, true, true, true, true, true, true, true)

I tried this, the space type appears in the OpenStudio App, but it is empty. Is this the right approach?

Any advice on how to proceed? Thanks

Openstudio SDK - Add spaceType to model

I am struggling to understand how to add a space type to a model with the Ruby SDK, for example 189.1-2009 - Office - WholeBuilding - Md Office - CZ1-3.

This is where I got:

space_type = OpenStudio::Model::SpaceType.new(model)
space_type_name = "189.1-2009 - Office - WholeBuilding - Md Office - CZ1-3"
space_type.setStandardsSpaceType(space_type_name)

in the meaaure Space Type and Construction Set Wizard there is a method called wizard from openstudio-extension. It looks like it first defines a standard and then assigns some properties

standard = Standard.build("90.1-2019") # Just guessing the standard
standard.space_type_apply_internal_loads(space_type, true, true, true, true, true, true)
standard.space_type_apply_internal_load_schedules(space_type, true, true, true, true, true, true, true)

I tried this, the space type appears in the OpenStudio App, but it is empty. Is this the right approach?

Any advice on how to proceed? Thanks

Openstudio SDK - Add spaceType to model

I am struggling to understand how to add a space type to a model with the Ruby SDK, for example 189.1-2009 - Office - WholeBuilding - Md Office - CZ1-3.

This is where I got:

space_type = OpenStudio::Model::SpaceType.new(model)
space_type_name = "189.1-2009 - Office - WholeBuilding - Md Office - CZ1-3"
space_type.setStandardsSpaceType(space_type_name)

in the meaaure Space Type and Construction Set Wizard there is a method called wizard from openstudio-extension. It looks like it first defines a standard and then assigns some properties

standard = Standard.build("90.1-2019") # Just guessing the standard
standard.space_type_apply_internal_loads(space_type, true, true, true, true, true, true)
standard.space_type_apply_internal_load_schedules(space_type, true, true, true, true, true, true, true)

I tried this, the space type appears in the OpenStudio App, but it is empty. Is this the right approach?

Any advice on how to proceed? Thanks

Openstudio SDK - Add spaceType to model

I am struggling to understand how to add a space type to a model with the Ruby SDK, for example 189.1-2009 - Office - WholeBuilding - Md Office - CZ1-3.

This is where I got:

space_type = OpenStudio::Model::SpaceType.new(model)
space_type_name = "189.1-2009 - Office - WholeBuilding - Md Office - CZ1-3"
space_type.setStandardsSpaceType(space_type_name)

in the meaaure Space Type and Construction Set Wizard there is a method called wizard from openstudio-extension. It looks like it first defines a standard and then assigns some properties

standard = Standard.build("90.1-2019") # Just guessing the standard
standard.space_type_apply_internal_loads(space_type, true, true, true, true, true, true)
standard.space_type_apply_internal_load_schedules(space_type, true, true, true, true, true, true, true)

I tried this, the space type appears in the OpenStudio App, but it is empty. Is this the right approach?

Any advice on how to proceed? Thanks

Openstudio SDK - Add spaceType to model

I am struggling to understand how to add a space type to a model with the Ruby SDK, for example 189.1-2009 - Office - WholeBuilding - Md Office - CZ1-3.

This is where I got:

space_type = OpenStudio::Model::SpaceType.new(model)
space_type_name = "189.1-2009 - Office - WholeBuilding - Md Office - CZ1-3"
space_type.setStandardsSpaceType(space_type_name)

in the meaaure Space Type and Construction Set Wizard there is a method called wizard from openstudio-extension. It looks like it first defines a standard and then assigns some properties

standard = Standard.build("90.1-2019") # Just guessing the standard
standard.space_type_apply_internal_loads(space_type, true, true, true, true, true, true)
standard.space_type_apply_internal_load_schedules(space_type, true, true, true, true, true, true, true)

I tried this, the space type appears in the OpenStudio App, but it is empty. Is this the right approach?

Any advice on how to proceed? Thanks