How convert the line to a curve

I want to ask a small question.
I got several unconnected lines.
But I convert the line to curve.

I think all the nodes that apply to curves can apply to lines.

In your example :

  • PolyCurves.Curves node is not working because it is expecting a PolyCurve, not a curve/line.
  • Element.Curves is expecting a Revit Element.
  • CurveElement.Curve is also expecting a Revit element.

PolyCurve.ByJoinedCurves should be working, but i guess there is a problem with your lines. The error should be indicated by the node.

It show Curve join produced more than one WIRE in PolyCurve

Your lines do not form a closed curve then.

If it is not closed, is there a way to convert it?

use point.project


This error often comes up with Room Boundaries, if that is the case, you could use Room.CentreBoundary to extract the curves.

Otherwise you are trying to rebuild the curves, possibly from end points, the best I have found is a node called Curve.SuperJoin-Archilab by Chinamo, but I have always found these methods to be fallible.

Hope that helps,


I do not see the Curve from Line node in the Rhythm package, where can I find it?

You can try

Script :