Revit materials into Rhino using Rhino.Inside

Hi,

I have established a simple workflow to transfer Revit elements into Rhino using Rhino.Inside (Grasshopper script attached) and was wondering if there is a possibility to transfer Revit materials as well?
RevitToRhino.gh (26.6 KB)

The idea is to set up the materials in Revit and be able to use them as well in the Rhino model.

Any help will be appreciated,

Thanks

Hi Douniatouil,

You can currently add the materials to the Rhino document by Baking a Revit Material Component, then the Elefront Attributes will accept the name and add the Material to the Geometry.

4 Likes

Hi Japhy,

This is brilliant! thank you so much!

Hello, this is a great solution for simple geometries like walls. However, when windows are being extracted for instance, there is an unequal amount of materials to geometries, and assigning the right material to its corresponding geometry is complicated. I was wondering if a component that does this automatically is being developed. This would be especially useful for the workflow Revit → Rhino → Lumion for instance.

Hi William,

There are a lot variables involved in the display of Revit elements/ assigning materials in Revit.

Simply baking the element to Rhino is typically effective, there is also the Element Preview Geometry component that cuts through the complexity of figuring out how a material is assigned and nested elements.

Thanks Japhy, this is very useful. Using the element preview component, I can now sort the window parts into layers with their corresponding materials automatically. (Here I’m using the material name as the layer name). This allows for fast modification with the option of changing the material of the entire layer in a rendering engine like Vray.
However, I wanted to convert the meshes coming out of the Preview component back to geometries, which caused some open Breps unfortunately. The result isn’t noticeable here, but if I had curved geometries then this process would result in low quality. If instead of meshes, Breps could come out of the preview component (of course, of the same count as the number of materials) then that would certainly be very useful

That is possible if you assign all the materials by ObjectStyles (subcategories)

Thanks Jaffy, this is a great workaround!
Since the Element Preview component didn’t seem to work with subcategories, I find myself replacing the texts in order to organize my layers, and then apply materials to these layers in Rhino, but this works well enough. Is there a way to make the Element Preview component work with subcategories, that way I could import the Revit materials directly as before?

Does baking and working with the Rhino Objects fit this workflow better?