Revit railing path

Hello,

The ‘Add Railing’ component requires a Curve as input, but is it possible to do it the other way around? To extract the path from an existing Revit railing element? Similar to the ‘Analyze Wall Location Curve’ component.

Thanks! :slight_smile:

Best regards,
Christian

Hi Christian,

You can use a Category on the Element Dependents component to get the Sketch Lines

The latest daily build will cast directly from a railing to a Curve.

2 Likes

Hi Japhy,

Thank you! I downloaded the latest daily build. This method works great! :slight_smile:


Is it possible to get the curve path of a stair railing? Currently I get the flattened plan view, but I’m wondering if it’s possible to get the rail actual path like this

Hi Diana,

There is a Railing Rail Extension Path that availailbe if you dig deep enough…

Rir-R8-RailPath.gh (9.7 KB)

This is perfect, thank you!!

Is there any way to extract the original profile used for the rail?

The profile is a Type Parameter of the Railing.

Is there a way to extract the path for the additional rails and balusters from Revit to show up as lines in Grasshopper, the same way that has been done for the top rails?

Hi Diana Ofcg,

Correct, but unfortunately there isn’t any linework available for those elements.

Is there an alternative way to pick-up the category highlighted

I’m having an issue when loading different Revit files to test the script, the ‘Value Picker’ is resetting and losing the original selected value. It seems like it’s a known issue -

When the dialog is static it will remain selected. If its being populated via a dynamic project specific list its not going to remember the selection.

It seems that there’s an ID associated with the specific categories, like the -2000954 for Lines/Railing Rail Path Extension Lines, is there a way to reference that number directly instead of using the value picker?

In a way, I need a static pre-selection instead of a dynamic one

The negative number indicates a built-in category / subcategory

Those numbers do not change per project, so you could create your own value list / list

Thank you Japhy, that’s exactly what I need!