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

Revision history [back]

@Pouya Kary I think I have a good example for you. I wanted to create a very light weight workflow for creating and editing OpenStudio models in SketchUp that applied data directly to attribute libraries of native SketchUp objects.

My first experiment was the experimental workflow user script which is included in the OpenStudio SketchUp Plugin, but this still requires the full plugin to be running to access OpenStudio methods.

Back over New Year's weekend I had time to try the next step which is to pull this functionality into a stand alone plugin that can run without the OpenStudio SketchUp plugin installed. That plugin, osm2su, is on a GitHub repo.

image description

The modeling and render mode elements of that plugin don't even require OpenStudio in any form to be installed on your machine, I used SketchUp's native paint bucket to create a render mode aware space attributes tool. In this workflow you would save only a native SketchUp fiel. However the functionality to import from and export to an OSM from a 'structured' sketchup model does require OpenStudio on your machine. I added a dialog in the plugins preferences menu, shown below, that takes a string argument. This tells your plugin where to find OpenStudio. At that point you can add code much like you would in a standard OpenStudio measure, but you still also have access to the SketchUp API.

image description

Since I don't bring in the full model, just geometry and stub space attributes, the OpenStudio API would also be used if I added inferred render modes based on model inputs like render by Air Loop or LPD. If I ever get back to this I'd like to add in an "Apply Measure Now" feature using real measures, vs. just user scripts.

This plugin only consists of 8 files, so it shouldn't take you long to see how the different elements work. Here is the script that stores the path to OpenStudio.

@Pouya Kary I think I have a good example for you. I wanted to create a very light weight workflow for creating and editing OpenStudio models in SketchUp that applied data directly to attribute libraries of native SketchUp objects.

My first experiment was the experimental workflow user script which is included in the OpenStudio SketchUp Plugin, but this still requires the full plugin to be running to access OpenStudio methods.

Back over New Year's weekend I had time to try the next step which is to pull this functionality into a stand alone plugin that can run without the OpenStudio SketchUp plugin installed. That plugin, osm2su, su2osm, is on a GitHub repo.

image description

The modeling and render mode elements of that plugin don't even require OpenStudio in any form to be installed on your machine, I used SketchUp's native paint bucket to create a render mode aware space attributes tool. In this workflow you would save only a native SketchUp fiel. However the functionality to import from and export to an OSM from a 'structured' sketchup model does require OpenStudio on your machine. I added a dialog in the plugins preferences menu, shown below, that takes a string argument. This tells your plugin where to find OpenStudio. At that point you can add code much like you would in a standard OpenStudio measure, but you still also have access to the SketchUp API.

image description

Since I don't bring in the full model, just geometry and stub space attributes, the OpenStudio API would also be used if I added inferred render modes based on model inputs like render by Air Loop or LPD. If I ever get back to this I'd like to add in an "Apply Measure Now" feature using real measures, vs. just user scripts.

This plugin only consists of 8 files, so it shouldn't take you long to see how the different elements work. Here is the script that stores the path to OpenStudio.

@Pouya Kary I think I have a good example for you. I wanted to create a very light weight workflow for creating and editing OpenStudio models in SketchUp that applied data directly to attribute libraries of native SketchUp objects.

My first experiment was the experimental workflow user script which is included in the OpenStudio SketchUp Plugin, but this still requires the full plugin to be running to access OpenStudio methods.

Back over New Year's weekend I had time to try the next step which is to pull this functionality into a stand alone plugin that can run without the OpenStudio SketchUp plugin installed. That plugin, su2osm, is on a GitHub repo.

image description

The modeling and render mode elements of that plugin don't even require OpenStudio in any form to be installed on your machine, I used SketchUp's native paint bucket to create a render mode aware space attributes tool. In this workflow you would save only a native SketchUp fiel. file. However the functionality to import from and export to an OSM from a 'structured' sketchup model does require OpenStudio on your machine. I added a dialog in the plugins preferences menu, shown below, that takes a string argument. This tells your plugin where to find OpenStudio. At that point you can add code much like you would in a standard OpenStudio measure, but you still also have access to the SketchUp API.

image description

Since I don't bring in the full model, just geometry and stub space attributes, the OpenStudio API would also be used if I added inferred render modes based on model inputs like render by Air Loop or LPD. If I ever get back to this I'd like to add in an "Apply Measure Now" feature using real measures, vs. just user scripts.

This plugin only consists of 8 files, so it shouldn't take you long to see how the different elements work. Here is the script that stores the path to OpenStudio.