# How convert the line to a curve

**URL:** <https://forum.dynamobim.com/t/how-convert-the-line-to-a-curve/27497>\
**Category:** Revit\
**Tags:** dynamo\
**Created:** [October 22, 2018, 12:30pm UTC](https://forum.dynamobim.com/t/how-convert-the-line-to-a-curve/27497 "2018-10-22T12:30:11Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![ssean7240](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@ssean7240](https://forum.dynamobim.com/u/ssean7240)\
**Post date:** [October 22, 2018, 12:30pm UTC](https://forum.dynamobim.com/t/how-convert-the-line-to-a-curve/27497/1 "2018-10-22T12:30:12Z")

</div>

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

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/0/1079fd35d09efe2328288675906bc77e6aaaa49f.png)

---

<div class="post-metadata">

**Author:** ![m.rijsmus](https://avatars.discourse-cdn.com/v4/letter/m/6f9a4e/32.png) [@m.rijsmus](https://forum.dynamobim.com/u/m.rijsmus)\
**Post date:** [October 22, 2018, 12:35pm UTC](https://forum.dynamobim.com/t/how-convert-the-line-to-a-curve/27497/2 "2018-10-22T12:35:34Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/2/125219ee39872f7a25d267af090987a182ca2c3b.png)

---

<div class="post-metadata">

**Author:** ![mellouze](https://avatars.discourse-cdn.com/v4/letter/m/e47774/32.png) [@mellouze](https://forum.dynamobim.com/u/mellouze)\
**Post date:** [October 22, 2018, 12:36pm UTC](https://forum.dynamobim.com/t/how-convert-the-line-to-a-curve/27497/3 "2018-10-22T12:36:45Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![ssean7240](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@ssean7240](https://forum.dynamobim.com/u/ssean7240)\
**Post date:** [October 22, 2018, 12:44pm UTC](https://forum.dynamobim.com/t/how-convert-the-line-to-a-curve/27497/4 "2018-10-22T12:44:19Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![mellouze](https://avatars.discourse-cdn.com/v4/letter/m/e47774/32.png) [@mellouze](https://forum.dynamobim.com/u/mellouze)\
**Post date:** [October 22, 2018, 12:44pm UTC](https://forum.dynamobim.com/t/how-convert-the-line-to-a-curve/27497/5 "2018-10-22T12:44:51Z")

</div>

> [@ssean7240](#):
>
> produced more than one WIRE in PolyCurve

Your lines do not form a closed curve then.

---

<div class="post-metadata">

**Author:** ![ssean7240](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@ssean7240](https://forum.dynamobim.com/u/ssean7240)\
**Post date:** [October 22, 2018, 12:50pm UTC](https://forum.dynamobim.com/t/how-convert-the-line-to-a-curve/27497/6 "2018-10-22T12:50:13Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![m.rijsmus](https://avatars.discourse-cdn.com/v4/letter/m/6f9a4e/32.png) [@m.rijsmus](https://forum.dynamobim.com/u/m.rijsmus)\
**Post date:** [October 22, 2018, 12:54pm UTC](https://forum.dynamobim.com/t/how-convert-the-line-to-a-curve/27497/7 "2018-10-22T12:54:55Z")

</div>

use point.project

> [@Intersection of lines that don't intersect](https://forum.dynamobim.com/t/intersection-of-lines-that-dont-intersect/8029/4):
>
> By the way, i need to find these points to be able to lengthen these lines to the lines of the square.

---

<div class="post-metadata">

**Author:** ![Mark.Ackerley](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/mark.ackerley/32/79310_2.png) [@Mark.Ackerley](https://forum.dynamobim.com/u/Mark.Ackerley)\
**Post date:** [October 22, 2018, 3:00pm UTC](https://forum.dynamobim.com/t/how-convert-the-line-to-a-curve/27497/8 "2018-10-22T15:00:51Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Bill\_Mutert](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/bill_mutert/32/192965_2.png) [@Bill\_Mutert](https://forum.dynamobim.com/u/Bill_Mutert)\
**Post date:** [June 8, 2020, 9:29pm UTC](https://forum.dynamobim.com/t/how-convert-the-line-to-a-curve/27497/9 "2020-06-08T21:29:52Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![chuongmep](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/chuongmep/32/197537_2.png) [@chuongmep](https://forum.dynamobim.com/u/chuongmep)\
**Post date:** [June 9, 2020, 4:30am UTC](https://forum.dynamobim.com/t/how-convert-the-line-to-a-curve/27497/10 "2020-06-09T04:30:46Z")

</div>

You can try

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/4/445cd098755577e6037c995deb6b796f6b21c5a7.png)

Script : [https://gist.github.com/chuong9x/0d3730f00a8a6eb640529e56db653831](https://gist.github.com/chuong9x/0d3730f00a8a6eb640529e56db653831)

---

<div class="post-metadata">

**Author:** ![santrod0204](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/santrod0204/32/129842_2.png) [@santrod0204](https://forum.dynamobim.com/u/santrod0204)\
**Post date:** [January 12, 2022, 5:41pm UTC](https://forum.dynamobim.com/t/how-convert-the-line-to-a-curve/27497/11 "2022-01-12T17:41:03Z")

</div>

Hello everyone.

Is there someone that could help me finding this node? I mean, I have the same issue @Bill_Mutert has.

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [January 12, 2022, 5:58pm UTC](https://forum.dynamobim.com/t/how-convert-the-line-to-a-curve/27497/12 "2022-01-12T17:58:21Z")

</div>

Hello @santrod0204 …you can try something here or try @chuongmep great solution…

 ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/b/7b61636d1c0028a91ac1b21c3e7c79d5bae728a1.jpeg)

---

<div class="post-metadata">

**Author:** ![santrod0204](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/santrod0204/32/129842_2.png) [@santrod0204](https://forum.dynamobim.com/u/santrod0204)\
**Post date:** [January 12, 2022, 8:28pm UTC](https://forum.dynamobim.com/t/how-convert-the-line-to-a-curve/27497/13 "2022-01-12T20:28:23Z")

</div>

Hey @sovitek . I’ll try both. I don’t know why I didn’t notice @chuongmep answer before.

At any rate, thank you for your answer, I really appreciate it.

---

<div class="post-metadata">

**Author:** ![Bill\_Mutert](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/bill_mutert/32/192965_2.png) [@Bill\_Mutert](https://forum.dynamobim.com/u/Bill_Mutert)\
**Post date:** [January 13, 2022, 4:51pm UTC](https://forum.dynamobim.com/t/how-convert-the-line-to-a-curve/27497/14 "2022-01-13T16:51:53Z")

</div>

I just remembered the script I have for converting lines into wide flange structural beams. It takes lines from an AutoCRAP file and converts them into Revit families.

Depending on what you are trying to make, you can replace the last node.  
I hope this helps.

 ![Beam by Curve](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/1/6174100a7450626a96951d29f0517f5c65a6515f.jpeg)

---

<div class="post-metadata">

**Author:** ![santrod0204](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/santrod0204/32/129842_2.png) [@santrod0204](https://forum.dynamobim.com/u/santrod0204)\
**Post date:** [January 14, 2022, 2:58pm UTC](https://forum.dynamobim.com/t/how-convert-the-line-to-a-curve/27497/15 "2022-01-14T14:58:55Z")

</div>

Hey @Bill_Mutert.

Thank you mate. It’s really helpful indeed.
