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

Sketchup plugin problems

asked 2014-12-19 02:58:37 -0600

Bernard's avatar

updated 2015-01-16 03:52:19 -0600

Dear all,

Using the previous version of the open studio plugin I developed a plugin to extract information about the constructions, their materials and the area used.

Following statements seem to not work anymore now?

model = OpenStudio::Plugin::model_manager.model_interface.openstudio_model

definedConstructionsString = model.getLayeredConstructions.inspect.to_s()

definedMaterialsString = model.getMaterials.inspect.to_s()

allSurfaces = model.getPlanarSurfaces

Furthermore it does not seem to be possible anymore to edit the constructions inside the sketchup plugin? Only outside sketchup in the if-editor? The inspector is gone?

The UI in the video is the one i recognize from the previous version, the one i have now and where i don't find the inspector is this one:

image description

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2014-12-19 09:51:17 -0600

Hey @Bernard, SketchUp changed to Ruby 2.0 in SU 2014 and OpenStudio changed to Ruby 2.0 in OS 1.4.1. I assume most incompatibilities in your plugin are due to that change from Ruby 1.8 to Ruby 2.0. However, I am not sure what you mean by "statements seem to not work anymore now". When I run those commands in SketchUp 2014 and OpenStudio 1.4.1 the commands don't produce any Ruby errors. However, the string results are not useful, is that what you mean?

The inspector is still part of the OpenStudio SketchUp Plug-in, maybe your dialog is positioned off the screen? This video might help: https://www.youtube.com/watch?v=dsPiQcM5p0s

Finally, I'll make a plug for OpenStudio Measures. A model measure could easily export a list of constructions and areas without having to run a simulation first. You could run that measure from the SketchUp Plug-in or from inside the OpenStudio Application (where you can also edit constructions).

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

Stats

Asked: 2014-12-19 02:58:37 -0600

Seen: 245 times

Last updated: Jan 16 '15