Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Using Revit® Elements in Grasshopper®

This sample shows how to Select Revit Element edges as input to a Grasshopper lofted surface.

Using Revit objects as input to Grasshopper definitions allows for a dynamic editing directly in Revit and making Grasshopper interactive within the the Revit model.

Revit Element as Input

Selecting Revit elements as input

On the Params tool tab is a Revit group which contains Revit element pickers including Revit Elements, Edges, Vertices and Faces. Also available are the non-model elements such as Category, Type, Family, Grid, Level and Material.

Revit Element as Input

Open Sample files:

  1. Open the Wall_Roof.rvt in Revit 2019.
  2. Start Rhino.Inside.Revit.
  3. Start Grasshopper within Revit.

The components necessary:

  1. Revit Edge params.
  2. Document Category picker
  3. Curve Join components if multiple curves are selected
  4. Curve Flip component to make sure the curves are going in the same direction.
  5. Grasshopper Loft component to create the lofted surface
  6. A Revit Directshape component. (Disabled by default)

Live-linking Edges from Revit

To start the definition, right click on the top Edge component:

Rhino Brep to Revit as Directshape

Then select one of the Yellow edges on one side of the the Wall model. Use the Finish button under the Revit toolbar to finish the selection.

Revit as Directshape

Then right click and select to opposite edge.

A preview loft surface should show up

Edit the Revit object with dynamic preview

  1. Click on a wall in Revit twice and use the edit arrows to edit the shape of the walls. The lofted surface should update.

Creating a Revit DirectShape Roof

By Enabling the Directshape component in the Grasshopper canvas, Grasshopper will then create a Roof based on the lofted surface from Grasshopper.

Of course with a little more work that roof could be a Roof from Boundary and create a Roof System family.

You can’t perform that action at this time.