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.
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
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?
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 -
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
I’m working with a Revit file that contains a large number of pipes, and I’m trying to extract the centerlines. For elements in the Pipe category, retrieving the centerlines is straightforward. However, I’m having trouble doing the same for elements in the Pipe Fitting category.
Here’s the workflow I’m using:
Category Picker (with “Pipe Fitting” selected)
Category Filter
Query Elements
Element Geometry
The geometry output gives me Closed Breps, not curves.
When I connect the result to Element Dependents, I see the following in the output:
Dependent: Revit Geometric Element: <Center line> : id 1089068
Category: Revit Category: Pipe Fittings | Center line : id -2008072
This suggests that the centerline exists as a dependent element, but I’m not sure how to extract it properly.
How can I retrieve the centerline curve from a Pipe Fitting?
The Wires output from the Element Preview shows circular outlines at the ends of the fittings, rather than the result shown in the second image you posted.
Based on this, I’m assuming these fittings were created using a different method—possibly without a centerline—using a bending radius and a circular pipe profile.
At this point, I’m looking into the outputs from the Element Location component, since it provides some vector data that might represent the bending center or the fitting’s plane.
Revit files are turning out to be much more complex than I expected, with layers of categories, families, and types. I really wish it were as straightforward as working with Rhino geometry.