Starting with OpenStudio 1.11.3, the "Create DOE Prototype Building" Measure is available on BCL and can be used like any other Measure.
- Components & Measures > Find Measures, download Whole Building > Space Types > Create DOE Prototype Building
- Components & Measures > Apply Measure Now > Whole Building > Space Types > Create DOE Prototype Building
- Pick the building type/climate zone/vintage
- Run
This gem is included with the OpenStudio installer. All you need to do is add require openstudio-standards
to your measure.rb
file and you will have access to the methods in this gem:
class MyMeasureName < OpenStudio::Measure::ModelMeasure
require 'openstudio-standards'
...
If you want to install a newer release of this gem from RubyGems.org than what is available in the OpenStudio installer.
- Install Ruby:
- On Mac:
- Install Ruby 2.7.2 using rbenv (
ruby -v
from command prompt to check installed version). - On Windows:
- Install Ruby 2.7.2 (
ruby -v
from command prompt to check installed version).
- Enable your OpenStudio Application installation to use the version of the gem built through the development process
- On Windows, Start > right click Computer > Properties > Advanced system settings > Environment variables. In the User variables section (top) add a new Variable with the name
GEM_HOME
and the ValueC:\Ruby27-x64\lib\ruby\gems\2.7.0
.
- On Windows, Start > right click Computer > Properties > Advanced system settings > Environment variables. In the User variables section (top) add a new Variable with the name
- Install the gem. (
gem install openstudio-standards
from command prompt)