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.

@mellouze
It show Curve join produced more than one WIRE in PolyCurve

Your lines do not form a closed curve then.

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

use point.project

Hey,

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,

Mark

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

You can try

Script : https://gist.github.com/chuong9x/0d3730f00a8a6eb640529e56db653831