First time here? Check our help page!
1

openstudio apply ruby scripts

Hi is there a way to apply ruby scripts to an openstudio model when it's open (so that we can see the difference in the model after it's applied) but without using Apply Measure Now, or sketchup plugin? I'm trying to ask if there's a way to apply measures from a different application to an openstudio model.

xchen's avatar
929
xchen
asked 2021-04-13 19:29:27 -0500
edit flag offensive 0 remove flag close merge delete

Comments

Can you expand on your desired workflow? What tool are you working in?

macumber's avatar macumber (2021-04-14 23:55:44 -0500) edit
add a comment see more comments

1 Answer

1

Yes, the OpenStudio CLI can be used to run measures.

Specifically, you need to:

  1. Create an OpenStudio Workflow (OSW) file that describes what measures you want to run, in what order, and with what arguments. You can find an example OSW here; it is also in your OpenStudio installation at Examples/compact_osw/compact.osw.
  2. Run the workflow using the CLI run subcommand. You can choose whether to only apply the OpenStudio measures or whether to also run the EnergyPlus simulation.
shorowit's avatar
11.8k
shorowit
answered 2021-04-14 13:29:41 -0500, updated 2021-04-14 14:11:24 -0500
edit flag offensive 0 remove flag delete link

Comments

thanks, after I run the OSW file, can I see the change in the openstudio model instantly? (similar to apply measure now, the model will reload after accepting the change).

xchen's avatar xchen (2021-04-14 20:09:32 -0500) edit
add a comment see more comments