Issue with model not loading in sketchup after surface matching
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 ...
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".
Thanks, it appears that there are no orphaned subsurface (no sub surfaces at all in fact) in my model, pre or post intersected.
Sounds like your model is corrupt. Try the
Extensions > OpenStudio User Scripts > Reports > OSM Diagnostic Script
and then open the<filename>_diagnostic.osm
.@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"
just re built the model from scratch (again) and i get the same results