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 2021-04-13 19:29:27 -0500

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.

edit retag flag offensive 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

1 Answer

Sort by ยป oldest newest most voted
1

answered 2021-04-14 13:29:41 -0500

updated 2021-04-14 14:11:24 -0500

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.
edit flag offensive delete link more

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

Your Answer

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

Add Answer

Careers

Question Tools

1 follower

Stats

Asked: 2021-04-13 19:29:27 -0500

Seen: 384 times

Last updated: Apr 14 '21