Rhino Inside direct shape failure

I am presently using rhino inside revit to import thousands of objects into our revit project. This works most of the time if the underling geometry is well constructed. However, in the situation where the geometry fails to bake into revit, the point of failure is proving hard to find. Sometimes all of the geometry will bake except for the bad breps. Sometimes it will completely fail halfway through the process. (there are nearly 30,000 objects and finding the bad ones is like searching for a needle in a haystack)

Is there a way in grasshopper to run some tests against the Brep geometry before attempting to bake into revit that indicates failure?

The error in Revit will highlight small edges and issues in the Rhino model with an orange point.

you can use the SelBadObjects command in Rhino. The issue items might have unusual properties as well, like high mesh face counts or open polysurfaces (Show Edges command in Rhino)

Another way is to use SubList to divide and conquer to find the offending items.

Adjusting Tolerance in Rhino has an affect as well.

Current tests include…

  • no bad objects when selbadobject is used
  • no manifold or naked edges
  • everything is a closed polysurface

using grasshopper, some of the closed polysurfaces do not return a “volume” value. But, the remainder when baked still fail part of the way through the operation.

for the rhino tolerance, I will adjust and see if that helps.

Can you post a file with some of the bad actors? no volume items.

Thanks

Of course. Here is a portion of the file that I’m working with. This file is part of a larger one another consultant has given us. Upon further investigation, I’m finding the underlying geometry has more underlying problems than at first glance. We are trying to avoid rebuilding the whole thing from scratch as a more “revit ready” model.

In the attached screen shot, the panels in green bake into revit, the ones in red never make it in there, and the orange dots are more serious issues (i’m assuming) with the geometry.

For reference, the only panels coming into revit are these from this group.

test panels.3dm (18.6 MB)

Ok, first lets get the good ones in. Here found all the ones with super clean geometry, which only left about 100 of the 900 or so in the sample.

I used elefront to ref by layer but you can use any method you prefer.

Interesting, I’d not thought that the trimmed vs untrimmed would cause the import to fail.

I have another question while I go down that path. An alternative to bringing in the individual elements via direct shape in grasshopper is to just straight up import the 3dm via rhino inside.
image

This is a more robust looking option, except it imports everything as one object which rabidly fills the revit experience with pain and suffering. Is there a way to use this option but the individual objects are preserved? In grasshopper, I would just graft the breps, but Im not seeing the same kind of “import 3dm to revit” option in grasshopper.

Its scriptable, so may be an option. Will have to look into it tomorrow.

The Untrimmed/Trimmed was just a way to get the clean panels, not the cause of the failed imports. That’s due to the edge/join conditions & how those curved panels were cut.