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

Can anyone suggest where I can find a book or pdf on Open Studio ruby scripting

asked 2017-10-17 03:48:47 -0600

Shayne's avatar

updated 2017-10-17 19:42:26 -0600

Dear all, I am currently learning how to write ruby codes on SketchUp. I also need to learn how to write ruby scripts for Open Studio plugin of Sketchup. Can anyone suggest any useful links please.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2017-10-17 13:42:03 -0600

updated 2018-06-20 14:06:59 -0600

NREL has a Measure Writing Guide and Developing Measure Collections guide on the OpenStudio wiki.

You'll want to get familiar with the OpenStudio SDK to learn model object methods.

SketchUp measures are nearly identical to OpenStudio measures, the difference being that you can use commands like runner.inSelection() to filter objects that are selected in sketchup. This is useful if you want to apply a measure only to a selected subset of your model, e.g. adding/removing windows from specific surfaces.

I'm not aware of any OpenStudio measure writing books or free online trainings at this point.

EDIT (20Jun2018): There is now a book on Building Energy Modeling with OpenStudio by the NREL team. You can also see examples of OpenStudio measures and SketchUp scripts on the Unmet Hours Github page.

edit flag offensive delete link more

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

3 followers

Stats

Asked: 2017-10-17 03:48:47 -0600

Seen: 672 times

Last updated: Jun 20 '18