Creating terrain family from mesh

Hello,

I’m trying to push geometry from Rhino to Revit, but I can’t figure out why Revit rejects my geometry.

Starting from the beginning: I have a base mesh that is very low quality. My goal is to trim it, rebuild it (with the greatest possible accuracy), and add thickness.

Base mesh and trim boundary:

I need more accuracy for the watercourse, so I rebuilt the mesh using a rebuild script in the Grasshopper file.
As a final result, I get a valid mesh:

Then I convert the mesh to a Brep and try to create a family - but Revit can’t convert the geometry.

I should note that this workflow worked in previous cases, but this time I modified the mesh density, tried some other workarounds, and nothing passes to Revit except as a DirectShape. However, I need a family.
It also imports as a Component Family Mesh without any warnings, but the mesh can’t be cut or joined in Revit.

I use milimeters in both Rhino and Revit, and tolerances are set to 0.1mm.

I’ll be gratefull for any help.

revit_mesh_family_problem.gh (671.9 KB)

P.S.

I tried experimenting with pushing a simpler mesh to Revit. It’s created from a list of points projected onto the base mesh. Any higher U and V count generates an error in the Revit Family Component. It’s really strange.

Why not use a toposolid? The mesh looks great, and Revit shouldn’t have any trouble creating a toposolid from it.

Revit 2023 here. I’ve got no toposolid tool. Secondly, topography oversimplifies my terrain :frowning:


Send me your mesh and I will create an exact toposurface

Here is a script to transform by yourself, a mesh to toposolid (and topography if you dont have toposolids). You will get exactly the same triangulation as in rhino file. Open it with Rihno Inside Revit.
rhino_mesh_revit_toposolid_topography.gh (8.1 KB)

Ok, I can create toposurface from mesh or from points, but in my case I need it to be generic model.I don’t have Revit with toposolid and I can’t use this tool.

Send your mesh to try.

Both origin mesh and my rebuilt mesh are in the file I attached here :slight_smile:

Okay, I can’t check your full code, but here’s what I did manually: I baked your closed 3D mesh, converted it to NURBS, simplified the planar geometry, exported it to DWG, imported it into a new Revit generic model family, and exploded it. Now it’s pure Revit geometry.
solid.dwg (1.0 MB)


I’ve attached the DWG solid here. I don’t have Revit 2023, so I can’t send you the family.

Thank you @ar00302. I replicated your workflow and it’s working. What is equally important, it’s possible to cut and join geometry.

Your contribution is great, because I have some workaround and can work.

However I see that my output mesh is all right, if it can be imported via dwg file. For my future develompent in Revit, it’s necesary to find out, why Revit fails to import this geometry with Family Component.

It’s me again :smiley: I thought for a second - you adviced me to convert mesh to nurbs. So what If I reference this converted to nurbs mesh to grasshopper and input this brep to Component Family Form? Ta daaa:

I never import the AutoCAD solid directly into the project. Instead, I bring it into a generic family, explode it there, and then place that family into the model.
At the moment, I’m using Revit toposolids for this workflow. Using Rhino.Inside makes the import very straightforward, and toposolids offer several advantages.

I heard about advantages of toposolids, but unfortunately I’m limited to 2023 version.

It would be nice to convert mesh to nurbs inside grasshopper, but I don’t see such straight forward way.

P.S.

I came up with one more solution. Instead of converting the closed mesh to a Brep, I first converted the top of my mesh to a Brep and then to a solid. This way, Revit successfully imports the geometry. What’s also funny is that it doesn’t accept the same geometry after using the Merge Faces component :grin: .

Revit has issues with tiny edges or tiny gaps. Sometimes these are not immediately apparent in the Rhino environment, but they do exist. I have spent a considerable amount of time resolving problems similar to these. Perhaps a grasshopper component is causing some tolerance issues. I always manually examine the geometry that failed to import. However, take into account that the latest Revit edition with the latest RIR components has solved many of these issues.

Thank you for your advices.I believe more geometrical problems are waiting for me to overcome in the future, especially when I’am not using the latest software version.