2

Openstudio Measure structure

Hello, I want to make both OS model measure : OpenStudio::Ruleset::ModelUserScript and OpenStudio::Ruleset::WorkspaceUserScript in one .rb file. May i do like this or need to separate two difference things ?

ngkhanh's avatar
2.2k
ngkhanh
asked 2016-01-27 11:55:52 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

5

You need to make two separate measures, each with its own directory and file structure. Check out the measure writing guide for more information.

macumber's avatar
12k
macumber
answered 2016-01-27 13:24:16 -0500
edit flag offensive 0 remove flag delete link

Comments

3

An example of two measures that work together as an OS and E+ measure pair, check out https://github.com/NREL/OpenStudio-PT... and https://github.com/NREL/OpenStudio-PT....

The OS measure gets the necessary data and passes it to the E+ measure thru a json file and the E+ measure inserts the EMS code into the IDF.

BrianLBall's avatar BrianLBall (2016-01-27 13:53:12 -0500) edit

Thank anyway 2 different .rb are necessary. Need to make them work separately first.

ngkhanh's avatar ngkhanh (2016-01-27 14:56:44 -0500) edit
add a comment see more comments