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

Issue with model not loading in sketchup after surface matching

asked 2017-02-15 14:28:52 -0500

willyJohan's avatar

updated 2017-02-15 14:30:32 -0500

I am having an issue where when matching surfaces in Sketchup the below errors show up. The model renders more or less properly and the surfaces divide as expected, but when I save and re open the osm in Sketchup nothing shows up. I can see the different building elements in the inspector but I can not get them to show up.

  ERROR:
  NoMethodError
  undefined method `setVertices' for nil:NilClass
  BACKTRACE:
  C:/Program Files (x86)/openstudio-2.0.0/SketchUpPlugin/openstudio/sketchup_plugin/lib/interfaces/PlanarSurface.rb:690:in `model_object_polygon='
  C:/Program Files (x86)/openstudio-2.0.0/SketchUpPlugin/openstudio/sketchup_plugin/lib/interfaces/PlanarSurface.rb:1014:in `surface_polygon='
  C:/Program Files (x86)/openstudio-2.0.0/SketchUpPlugin/openstudio/sketchup_plugin/lib/interfaces/PlanarSurface.rb:152:in `update_model_object'
  C:/Program Files (x86)/openstudio-2.0.0/SketchUpPlugin/openstudio/sketchup_plugin/lib/interfaces/SubSurface.rb:263:in `update_model_object'
  C:/Program Files (x86)/openstudio-2.0.0/SketchUpPlugin/openstudio/sketchup_plugin/lib/interfaces/SurfaceGroup.rb:86:in `block in update_child_model_objects'
  C:/Program Files (x86)/openstudio-2.0.0/SketchUpPlugin/openstudio/sketchup_plugin/lib/interfaces/SurfaceGroup.rb:84:in `each'
  C:/Program Files (x86)/openstudio-2.0.0/SketchUpPlugin/openstudio/sketchup_plugin/lib/interfaces/SurfaceGroup.rb:84:in `update_child_model_objects'
  C:/Program Files (x86)/openstudio-2.0.0/SketchUpPlugin/openstudio/sketchup_plugin/lib/interfaces/SurfaceGroup.rb:75:in `update_model_object'
  C:/Program Files (x86)/openstudio-2.0.0/SketchUpPlugin/openstudio/sketchup_plugin/lib/interfaces/Surface.rb:276:in `on_undelete_entity'
  C:/Program Files (x86)/openstudio-2.0.0/SketchUpPlugin/openstudio/sketchup_plugin/lib/observers/SurfaceGroupEntitiesObserver.rb:161:in `block in onElementAdded'
  C:/Program Files (x86)/openstudio-2.0.0/SketchUpPlugin/openstudio/sketchup_plugin/lib/PluginManager.rb:235:in `call'
  C:/Program Files (x86)/openstudio-2.0.0/SketchUpPlugin/openstudio/sketchup_plugin/lib/PluginManager.rb:235:in `block in process_events'
  C:/Program Files (x86)/openstudio-2.0.0/SketchUpPlugin/openstudio/sketchup_plugin/lib/PluginManager.rb:228:in `each'
  C:/Program Files (x86)/openstudio-2.0.0/SketchUpPlugin/openstudio/sketchup_plugin/lib/PluginManager.rb:228:in `process_events'
  C:/Program Files (x86)/openstudio-2.0.0/SketchUpPlugin/openstudio/sketchup_plugin/lib/PluginManager.rb:287:in `block in start_event_processing'
  SketchUp:1:in `call'
  swap
  DrawingInterface.create_from_entity:  create_model_object failed
  swap
  swap
  DrawingInterface.create_from_entity:  create_model_object failed
  no swap
  DrawingInterface.create_from_entity:  create_model_object failed
  no swap
  DrawingInterface.create_from_entity:  create_model_object failed
  swap
  DrawingInterface.create_from_entity:  create_model_object failed
  swap
  no swap
  no swap
  no swap
  no swap
  no swap
  no swap
  no swap
  no swap
  no swap
  no swap
  no swap
  no swap
  no swap
  Entity.drawing_interface:  bad object reference
  Entity.drawing_interface:  bad object reference
  Entity.drawing_interface:  bad object reference
  no swap
  no swap
  DrawingInterface.create_from_entity:  create_model_object failed
  no swap
  no swap
  no swap
  no swap
  no swap
  no swap
  no swap
  no swap
  no swap
  no swap
  no swap
  no swap
  no swap
  no swap
  no swap
  no swap
  no swap
  ERROR:
  NoMethodError
  undefined method `setVertices' for nil:NilClass
  BACKTRACE:
  C:/Program Files (x86)/openstudio-2.0.0/SketchUpPlugin/openstudio/sketchup_plugin/lib/interfaces/PlanarSurface.rb:690:in `model_object_polygon='
  C:/Program Files (x86)/openstudio-2.0.0/SketchUpPlugin/openstudio/sketchup_plugin/lib/interfaces/PlanarSurface.rb:1014:in `surface_polygon='
  C:/Program Files (x86)/openstudio-2.0.0/SketchUpPlugin/openstudio/sketchup_plugin/lib/interfaces ...
(more)
edit retag flag offensive close merge delete

Comments

Looks like you have orphan sub surfaces in your .osm model that aren't getting rendered. Try deleting these subsurfaces objects from the .osm file in a text editor, re-saving and re-opening. In SketchUp you can also select "Extensions->OpenStudio User Scripts->Alter or Add Model Elements->Remove Orphan Subsurfaces".

mdahlhausen's avatar mdahlhausen  ( 2017-02-15 15:26:10 -0500 )edit

Thanks, it appears that there are no orphaned subsurface (no sub surfaces at all in fact) in my model, pre or post intersected.

willyJohan's avatar willyJohan  ( 2017-02-15 16:10:14 -0500 )edit

Sounds like your model is corrupt. Try the Extensions > OpenStudio User Scripts > Reports > OSM Diagnostic Script and then open the <filename>_diagnostic.osm.

MatthewSteen's avatar MatthewSteen  ( 2017-02-15 18:05:08 -0500 )edit

@MatthewSteen the diagnostic script does not seem to work:

"Running OSM Diagnostic Script Error occurred while running user script: ... User script OSM Diagnostic Script completed with errors"

willyJohan's avatar willyJohan  ( 2017-02-15 18:35:21 -0500 )edit

just re built the model from scratch (again) and i get the same results

willyJohan's avatar willyJohan  ( 2017-02-15 19:59:14 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
2

answered 2017-02-16 17:37:21 -0500

willyJohan's avatar

updated 2017-02-16 17:40:16 -0500

Not exactly sure what was going on, but when I started form scratch on a different machine using 1.14, i was able to get the model to work as expected. Unfortunately because I changed machines, operating systems and OS version all at the same time the source of the error will be difficult to track down.

some possibly useful data points:

I can now open the model developed in 1.14 in 2.0

When I exported my broken 2.0 model to GBXML and then re-imported to 1.14 the issues persisted

When I rebuilt model form the DXF outlines in 1.14 it worked.

edit flag offensive delete link more

Comments

Glad it is working now, if you hit an issue like this again we can try to figure out why.

David Goldwasser's avatar David Goldwasser  ( 2017-02-16 19:37:50 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Careers

Question Tools

1 follower

Stats

Asked: 2017-02-15 14:28:52 -0500

Seen: 348 times

Last updated: Feb 16 '17