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
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