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

OSM File corrupted 4 previous files as wireframe.

asked 2024-02-12 23:03:32 -0600

student456's avatar

updated 2024-02-13 08:28:23 -0600

I am a student trying to use OpenStudio/E+ energy modeling for a project. I am modeling a 5 story building that was given to me in CAD drawings. I have learned to save multiple versions as backups, so I have 5 (final) versions of the model that includes an additional story, and so on. After exporting the IDF file a couple times to edit errors, the OSM file in SketchUp turned wireframe while I was in the middle of changing construction types. After restarting my laptop, sketchup, and OpenStudio, there still did not seem to be a change. Setting the view in Sketchup settings to shaded turned the surfaces white, but clicking on each space in the OpenStudio Inspector tool revealed the spaces would get highlighted, but I can't select anything, and I cannot see surfaces. The OpenStudio information is there, so why can't I see it? This also happened to 4 other files I had saved, that were not even open at the time. If I saved a new file under a different name, they shouldn't be linked right? How did that one corrupted file turn into FOUR corrupted files?

For information, I have already visited the following pages for potential solutions, tried them, and nothing worked. The OSM file still opened as wireframe and all four files are still corrupted. https://unmethours.com/question/1646/... https://unmethours.com/question/15375... https://unmethours.com/question/1646/... https://unmethours.com/question/5030/... https://unmethours.com/question/666/h...

Any help is greatly appreciated! Thank you.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
2

answered 2024-02-17 16:37:40 -0600

An improvement to sort surfaces by size before drawing in SketchUp was added in the 1.7.0 version of the OpenStudio SketchUp Plug-in. This should make the behavior more deterministic and, in the files I tested, has cut down on files that fail to render correctly. You can download the 1.7.0 OpenStudio SketchUp Plug-in from https://github.com/openstudiocoalitio... and then install it by going to Extensions -> Extension Manager -> Install Extension and navigating to the rbz file.

edit flag offensive delete link more
1

answered 2024-02-13 18:02:16 -0600

Jamie Sullivan's avatar

Yeah, this is a thing that happens annoyingly often. Normally the simplest solution, as you say, is to go back to an earlier version of your model.

Absent that, the first thing I'd do is to try opening the file in OpenStudio itself and see if you can view the geometry there - it can sometimes work when Sketchup doesn't. Second, open the OSM in notepad to check it actually has the information it should have - if it's been corrupted and you've just lost the data in the model then there obviously isn't much to do, but if it's there then it's probably a geometry drawing issue.

In my experience, this tends to be caused by windows and subsurfaces. In particular, OpenStudio has problems if you've got windows that share edges, or windows with one of their edges on the wall edge (most commonly the bottom edge).

What happens is that when it's drawing the surfaces, it gets confused and messes up the wall surface coordinates - if you look at the wall surface in notepad you might find that it has, say, 8 vertices instead of the 4 it's supposed to. What's happened is that OpenStudio has drawn the wall around the window, including the window vertices into itself like so:

image description

Other areas I've found can be problematic are drawing complex roof geometry, copying and rotating zones, and moving/adjusting windows and walls. The last is a particular annoyance where the windows lose their wall reference and get orphaned because the name of the wall/window changed when you moved it.

My general solution in these cases is to manually edit the OSM file in notepad++. If the problem is the walls having too many coordinates due to windows, then I fix the walls by finding the surface in notepad and deleting the extra vertices (check the coordinates carefully so you don't delete the wrong ones). Then I get the windows away from the edge of the wall by, for instance, offsetting them by 10mm. Similarly, if you have a bunch of windows all abutting each other in a complicated arrangement it can help to separate them - I find T-intersections in subsurface edges tends to result in problems.

So yeah, my guess is that there's a bunch of walls with erroneous vertices, and if you can go through and find all the ones with too many vertices and clean them up it should hopefully work again.

edit flag offensive delete link more

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

1 follower

Stats

Asked: 2024-02-12 23:03:32 -0600

Seen: 1,643 times

Last updated: Feb 17