Hi,
I’m trying to create a Grasshopper script to import Rhino geometries into Revit as a family where it contains different materials.
I assign different materials to the geometries in Rhino, and when I import it into Revit, I want the geometries to have different Revit materials assigned to them with the same material names as in Rhino. Here’s the script (I’m new to Grasshopper so it isn’t beautiful, I know :))
rhino inside revit_create family_02.gh (23.7 KB)
There are several things I’m currently struggling with:
-
Right now I have several geometry nodes where I assign the geometries with different materials into different nodes. How do I make it so the script automatically sorts the geometries into different clusters based on their Rhino material assignment?
-
Once I try to import a second family with this script, in the same Revit file, the materials of the first family gets wiped out.
For example, below is how the materials look after I’ve imported the first family and changed the colors of the materials in Revit material editor.
I then release the element in Revit, change the name of the family in the script, and then clears the values of the geometry nodes. When I do this, the materials disappear in the Revit family that I previously imported. The materials aren’t even in the Revit material list anymore…
Any tips?