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

Revision history [back]

click to hide/show revision 1
initial version

Issue with model not loading in sketchup after surface matching

I am having an issue where when match surfaces in Sketchup the below errors show up. The model renders more or less proerly 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/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/observers/SurfaceGroupEntitiesObserver.rb:216:in `block (3 levels) in onElementAdded'
  C:/Program Files/SketchUp/SketchUp 2016/Tools/RubyStdLib/set.rb:232:in `each_key'
  C:/Program Files/SketchUp/SketchUp 2016/Tools/RubyStdLib/set.rb:232:in `each'
  C:/Program Files (x86)/openstudio-2.0.0/SketchUpPlugin/openstudio/sketchup_plugin/lib/observers/SurfaceGroupEntitiesObserver.rb:214:in `block (2 levels) 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'

...which then repeats 45 times.

when i reload the model i get these errors (whihc seem to change each time i re try)

Error:  Sub Surface 1
This sub surface is missing its base surface, it cannot be drawn.

Error:  Sub Surface 4
This sub surface's base surface 'Surface 658' does not have a face polygon, it cannot be drawn.

Error:  Sub Surface 3
This sub surface's base surface 'Surface 651' does not have a face polygon, it cannot be drawn.

and the building does not show up.

I've tried fixing the errors directly in the osm with a text editor and it does not fix anything

saw some other posting that perhaps indicated that it could be spaces with too many surfaces, but when i deleted those spaces with the most surfaces post matching (plenums in this case) nothing changed.

thanks,

Will Error: Sub Surface 2 This sub surface's base surface 'Surface 684' does not have a face polygon, it cannot be drawn.

Issue with model not loading in sketchup after surface matching

I am having an issue where when match matching surfaces in Sketchup the below errors show up. The model renders more or less proerly properly and the surfaces divide as expected, but when I save and re open the osm in Sketchup nothing shows up. i 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/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/observers/SurfaceGroupEntitiesObserver.rb:216:in `block (3 levels) in onElementAdded'
  C:/Program Files/SketchUp/SketchUp 2016/Tools/RubyStdLib/set.rb:232:in `each_key'
  C:/Program Files/SketchUp/SketchUp 2016/Tools/RubyStdLib/set.rb:232:in `each'
  C:/Program Files (x86)/openstudio-2.0.0/SketchUpPlugin/openstudio/sketchup_plugin/lib/observers/SurfaceGroupEntitiesObserver.rb:214:in `block (2 levels) 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'

...which then repeats 45 times.

when i reload the model i get these errors (whihc seem to change each time i re try)

Error:  Sub Surface 1
This sub surface is missing its base surface, it cannot be drawn.

Error:  Sub Surface 2
This sub surface's base surface 'Surface 684' does not have a face polygon, it cannot be drawn.

Error:  Sub Surface 4
This sub surface's base surface 'Surface 658' does not have a face polygon, it cannot be drawn.

Error:  Sub Surface 3
This sub surface's base surface 'Surface 651' does not have a face polygon, it cannot be drawn.

and the building does not show up.

I've tried fixing the errors directly in the osm with a text editor and it does not fix anything

saw some other posting that perhaps indicated that it could be spaces with too many surfaces, but when i deleted those spaces with the most surfaces post matching (plenums in this case) nothing changed.

thanks,

Will Error: Sub Surface 2 This sub surface's base surface 'Surface 684' does not have a face polygon, it cannot be drawn.Will