Revit loft at one GH script?

Hello everyone,

I´m struggling to find answers that would help me in this topic, so I decided to ask.

I´d like to create Revit lofted geometries with Grasshopper. My goal is to create loft geometry updatable later directly with Revit.

How does it work? - 05 Revit - Bridge Superstructure Family Creation - YouTube

I´m able to successfully replicate this process in several steps I´d like to manage with single GH script.

Today I load and distribute conceptual mass family with parametric cross-section profile using Grasshopper, but then there are obstacles one must manage manually:

  • it only works in Revit family template document (Generic Model Adaptive rft), so at first I must open a new Family document each time,
  • when profiles are distributed, I need to manually select them, hit “Create shape” icon in Revit,
  • when the loft is created inside the family, I can load this family into my Revit model document (rft),

The family is editable using Revit, but it´s necessary to further handle the correct position and orientation of this family in the model (manually / with GH).

Is it possible in RiR to merge this process into a single script, where I´d just pick the curve (edge) in the model document and path to the mass family file I´d like to create loft from? Maybe I´m just missing Form.ByLoftCrossSections function as shown in the video, as actual GH node (Add Mass Loft) only works in Mass document type.

2023-06-13 09_24_28-Window

The script used for profile distribution is attached, as well as conceptual mass family.

Thank you very much in advance for any hints,

Pavel (13.9 KB)
Mass_part.rfa (536 KB)

This is something that’s possible to setup with some custom c#/python components inside GH/RiR… the features that are needed to achieve this workflow are actually what I am mentioning in the topic below, so you can keep an eye on that post, I will be sharing (hopefully today, if not by end of week) some samples and custom components that can get you started.

And hopefully we can get some native components for them. :smiley: