Export Geometry / Mesh from Rhino to Revit through Rhino Inside Revit

From this thread, I know I can use “AddDirectShape.ByGeometry” to Export Geometry / Mesh from Rhino to Revit.

The problem of Directshape is that the material assigned to it is not persistent. Please find more details in here.

Is it possible to export Geometry / Mesh from Rhino to Revit using other formats, such as familyinstance so I can easily assign “persisitent” materials?


1 Like


I think there is no API to change a DirectShape Solid material but what is possible is recreate it and assign the material while you are doing that.
If I’m not wrong this material is persistent in all views unless you override it per view.
More info here

Anyway being able to generate families on the fly may be really useful for so many reasons like this one, but is still not possible. I’m aware I should explore more this other approach.

I recently added support for materials in DirectShapes and DirectShapeTypes.

Hi there - interesting discussion! I have a slightly different problem and I am hoping you might be able to help?

I am trying to push the Analysis mesh created by Ladybug (has gradient colours applied to it) from Rhino/GH to Revit with Rhino inside, however, I am struggling to get it coloured the way it is in Rhino. Any ideas how this can be achieved?



Try this. it’s one of the ladybug sample/example files. The trick is to “explode” the mesh so that each mesh face is a new mesh, (which is what the ghpython component is doing). Then deconstruct those faces to get the colors of the vertices, and then you average them. this “makes” one color for each face, then you can make a material from that and make a direct shape! It comes into Revit as a generic model with colored faces. (make sure your display mode in your revit view is something other than wireframe!)

Wind_Vertical_Profile_RhinoInside.gh (431.5 KB)

1 Like


If you don’t need to keep that colored meshes into the model with the last version you can preview colored meshes into the Revit viewport same way you already do it in Rhino.

Keep in mind that only Revit Shaded modes allow this, to avoid Z-fighting hide those Categories you are analyzing and you will have the same result you see in this screenshot.

1 Like

Can we have also Custom Preview working inside Revit?

1 Like

Blockquote you can preview colored meshes into the Revit viewport same way you already do it in Rhino.

Hi! I’ve got the same issue, and it seems like it doesn’t work in Revit 2018.3
The legend works fine, but no the building :c I have also noticed, that Material.ByColor doesn’t make any changes to object.

Is it possible that two components were previewing same geometry at same place colored and not colored?