Revit to Rhino
This guide covers at sending Revit Elements to Rhino.
There are 3 stages to each of the examples below:
- Select Revit elements to import.
- Extract geometry, categories names or any other needed information about each of the Revit elements.
- Baking the geometry and information into Rhino. In this each case a simple Python bake component is used to create geometry in Rhino on a layer names for the category the elements came from in Revit.
The Element Geometry component has a hidden Category output that is useful. Zoom in on the component and click on the “+” symbol under the Geometry Output to expose the Category output.
For baking many plugins can be used to attach information to Rhino objects such as Layer, Object Name, Color, Material, or UserData (Key/Value) information. Popular ones include Human, LunchBox and Elefront. Or, download the simple download the Python Bake Component.
Selecting what to import
Grasshopper can select objects in Revit in various ways. Three of the most common are:
- Use a View filter. This can be the the easiest way to bring in what is visible.
- Use Category filters, which can be useful in many situations. Although, Category selection can get complicated because Categories are quite broad.
- Selecting the elements directly in Revit is simple a straight forward.
Visible in View (Recommended)
One of the best ways to select Revit objects to import into Rhino is by what is visible in a specific view. Saved in a view is the needed categories, worksets and phase. Creating a specific view just for importing to Rhino is a good way to store the configuration. This way the current state of any working view is not a concern.
Note in the illustration above:
- The view name “To Rhino” is a 3D view saved in the current project.
- Query Views+ v1.0 returns the view element, that is used as input into the Selectable In View Filter .
- The Filter is used to Query the elements. The “Limit” input has been hidden by zooming into the component and hitting the “-“ button on the component.
- Once the Elements are selected, the rest of the definition is the same as the other examples here.
Select by Filter
A popular way of selecting object is by Category Filter . This can be a quick way to get what is needed, but be aware that categories can be quite broad. Often using Category Filter along with additional filters works to filter out the extra elements. For example Query Design Options or Phase Status Filter+ v1.2 may be need to be combined with a filter to limit what is selected.
Also, when trying to get a lot of different categories the list of categories needed might be extensive. The list can become quite overwhelming quite quickly.
Select Graphic Element
The simplest way to get Revit Elements is to use a Graphical Element to input into the Element Geometry . It will return only the object selected.
Revit Spatial elements such as rooms and areas can be baked in Rhino. See the Getting Spatial Element Geometry Guide
Many Elements in Revit can generate Analytical Elements that can be imported into Rhino. See the Working with Analytical Models Guide for more details.