How to turn Curtain Grid into Curves/ Lines?

How to turn Revit Curtain Grid into Curves/ Lines in RIR?
These lines are displayed in Rhino viewport but there is no way to get them.

Plug into a BREP battery will only get the face of the panels (See the thin gap (the mullion) between face panels in the screenshot below, the Curtain Grid display have no holes)

Plug into Deconstruct Curtain Grid also doesn’t work, none of the output is the same line that displayed in view port previously, which is what I need. Thanks


What I Need


Plug into BREP

You could use the C# node and make a few Revit API calls?

 var mullionIds = curtainGrid.GetMullionIds();

var rhinoCurves = new List<RhinoCurve>();
foreach (var id in mullionIds)
{
    var curtainGridLine = (CurtainGridLine)doc.GetElement(id);

    var curve = curtainGridLine.FullCurve;

    var rhinoCurve = GeometryDecoder.ToCurve(curve); // curve.ToCurve() should work too.

    rhinoCurves.Add(rhinoCurve);
}

return rhinoCurves;

Note: RhinoCurve is an alias. And this isn’t tested but should work :wink:

2 Likes

Hi Lmnoc1,

You can deconstruct the curtain grid and get Vertical or Horizontal Curves via casting the grid line outputs.

1 Like

Yeah these line are pretty different from the one in view port

Found a weird way that is hidden so deep