First time here? Check out the Help page!

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

Sketchup plugin problems

asked 10 years ago

Bernard's avatar

updated 10 years ago

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

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
3

answered 10 years ago

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

Preview: (hide)
link

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: 10 years ago

Seen: 258 times

Last updated: Jan 16 '15