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

Revision history [back]

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 jsut have a my_script.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". https://github.com/NREL/OpenStudio/tree/develop/openstudiocore/ruby/openstudio/sketchup_plugin/user_scripts

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?

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 jsut just have a my_script.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". https://github.com/NREL/OpenStudio/tree/develop/openstudiocore/ruby/openstudio/sketchup_plugin/user_scripts

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?

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 my_script.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". https://github.com/NREL/OpenStudio/tree/develop/openstudiocore/ruby/openstudio/sketchup_plugin/user_scripts

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?