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

openstudio apply ruby scripts

asked 4 years ago

xchen's avatar

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.

Preview: (hide)

Comments

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

macumber's avatar macumber  ( 4 years ago )

1 Answer

Sort by » oldest newest most voted
1

answered 4 years ago

updated 4 years ago

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.
Preview: (hide)
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  ( 4 years ago )

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Training Workshops

Careers

Question Tools

1 follower

Stats

Asked: 4 years ago

Seen: 639 times

Last updated: Apr 14 '21