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

Download User Scripts

asked 2015-05-27 03:09:40 -0500

FST's avatar

updated 2021-05-07 11:38:55 -0500

Hi all,

Is it possible to download and install the ruby-UserScripts available with the plugin without installing the plugin itself?

I am using SektchUp without the plugin, but I would really like to use the userscripts...

Thanks for your help!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-05-27 09:46:25 -0500

updated 2015-05-27 10:39:00 -0500

Excellent question. If you are still using OpenStudio (the stand alone application) but just not the SketchUp plugin, then there is a pretty easy path for this. User scripts in the SketchUp plugin are very much like much like measures, and in fact some cases are exactly like measures, the exception are user scripts which pass in a selection from SketchUp. Currently measures don't have a good way to do this, however as multi-select expands in the OpenStudio application we may have ways to pass your selection into a measure.

Here is a link to the user script files. These just have a myscript.rb file. Measures have a file named "measure.rb" and also a measure.xml file that contains additional information. You could make a new measure from the app, then copy in the relevant code from the user script from the pluin. You would have to load your OSM file in the OS app to use "Apply Measures Now".

There are a number of user scripts that already exist as measures, with some adaption. A few of them are listed below, but there are more.
Window to wall ratio
Add overhang by projection factor
Rename surface based on space name
Assign spaces to stories
Remove hard assigned constructions

If you don't have OpenStudio installed at all, then you are probably out of luck, most/all scripts rely to some degree on the OpenStudio API, and in some cases also the SketchUp API. If this is the case I'm interested in what you hope to do with SketchUp without the SketchUp Plugin?

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


Question Tools

1 follower


Asked: 2015-05-27 03:09:40 -0500

Seen: 706 times

Last updated: May 27 '15