Geometry diagnostic steps in OpenStudio Sketchup mode
When we generate a geometry in OpenStudio Sketchup mode, for someone not so experienced, it's common to see the geometry generated, surface matching working fine, and we save and close the file thinking it's all good to go. And then we reopen the Sketchup .osm file, only to find the model file is open in all wire frame mode with no surfaces shown, and we get all frustrated but not really knowing what went wrong. Sometimes, we run the OSM diagnostic script and reopen the diagnostic.osm file and things are fixed, but other times, we are not so lucky and end up recreating the entire geometry from step 1. Is there a way or code to follow to diagnose what went wrong when I reopen the .osm file so we can find the problem surfaces or sub-surfaces that accidentally didn't get created correctly? That would save us tons of time.
@macumber I am also not familiar with code and I have only recently started using sketchup and openstudio. I tried to follow your steps but I am a bit lost. Could you please explain what it means to to "loop"? I made an array by copying your script and I got this:
all_entities = [] Sketchup.active_model.entities.each {|e| all_entities.concat(e.entities.to_a) if e.typename == "Group" }
<sketchup::entities:0x0002653ecd84d0>
But I don't know what the next steps mean exactly. I would really appreciate your help. Thanks in advance!