3

Sketchup plugin problems

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

Bernard's avatar
31
Bernard
asked 2014-12-19 02:58:37 -0500
Jamie Bull's avatar
5.1k
Jamie Bull
updated 2015-01-16 03:52:19 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

3

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).

macumber's avatar
12k
macumber
answered 2014-12-19 09:51:17 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments