# Joining Lines and Curves

**URL:** https://forum.dynamobim.com/t/joining-lines-and-curves/78403
**Category:** Geometry
**Tags:** dynamo
**Created:** [July 6, 2022, 3:44pm UTC](https://forum.dynamobim.com/t/joining-lines-and-curves/78403 "2022-07-06T15:44:46Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![hassan.orion](https://avatars.discourse-cdn.com/v4/letter/h/eb8c5e/32.png) [@hassan.orion](https://forum.dynamobim.com/u/hassan.orion)
#### Post date: [July 6, 2022, 3:44pm UTC](https://forum.dynamobim.com/t/joining-lines-and-curves/78403/1 "2022-07-06T15:44:46Z")

</div>

Hi guys,  
rather simple yet annoying thing, is it not possible to join Lines and Curves ?

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/a/6a86e37138fa18127faf713c3f01eff57fb606fe.png)

The closest thing I found on a post was a Curve.FromLine Node of Rythm, which is not working on my dynamo due to Dynamo version.

Any other solutions ?

---

<div class="post-metadata">

### Author: ![Daan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daan/32/82246_2.png) [@Daan](https://forum.dynamobim.com/u/Daan)
#### Post date: [July 6, 2022, 3:45pm UTC](https://forum.dynamobim.com/t/joining-lines-and-curves/78403/2 "2022-07-06T15:45:56Z")

</div>

A line is a curve type, just with another name since it is completely straight. What does the error say in the Curve.Join node and how do your curve look before joining?

---

<div class="post-metadata">

### Author: ![hassan.orion](https://avatars.discourse-cdn.com/v4/letter/h/eb8c5e/32.png) [@hassan.orion](https://forum.dynamobim.com/u/hassan.orion)
#### Post date: [July 6, 2022, 3:51pm UTC](https://forum.dynamobim.com/t/joining-lines-and-curves/78403/3 "2022-07-06T15:51:02Z")

</div>

Hi Daan, its giving following error: i checked, there is no overlap.

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

---

<div class="post-metadata">

### Author: ![Draxl\_Andreas](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/draxl_andreas/32/145744_2.png) [@Draxl\_Andreas](https://forum.dynamobim.com/u/Draxl_Andreas)
#### Post date: [July 6, 2022, 3:51pm UTC](https://forum.dynamobim.com/t/joining-lines-and-curves/78403/4 "2022-07-06T15:51:59Z")

</div>

i like to work with firstItem and restItem and than i join the curve @hassan.orion

 ![2022-07-06_18h21_58](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/3/a3977c6c41937361f372edf9d1c7ded4e2170029.png)

---

<div class="post-metadata">

### Author: ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)
#### Post date: [July 6, 2022, 3:52pm UTC](https://forum.dynamobim.com/t/joining-lines-and-curves/78403/5 "2022-07-06T15:52:03Z")

</div>

Keep in mind that node is for joining a single curve to a group of curves by forming a polycurve. Each one of those curves would have to be individually able to attach to those two lines.

---

<div class="post-metadata">

### Author: ![hassan.orion](https://avatars.discourse-cdn.com/v4/letter/h/eb8c5e/32.png) [@hassan.orion](https://forum.dynamobim.com/u/hassan.orion)
#### Post date: [July 6, 2022, 3:58pm UTC](https://forum.dynamobim.com/t/joining-lines-and-curves/78403/6 "2022-07-06T15:58:36Z")

</div>

Does that mean I have to make a python loop to join them ?  
the curves/lines are not in order, would take long to extract and gather their respective indices.

---

<div class="post-metadata">

### Author: ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)
#### Post date: [July 6, 2022, 4:00pm UTC](https://forum.dynamobim.com/t/joining-lines-and-curves/78403/7 "2022-07-06T16:00:29Z")

</div>

It mostly means you have the wrong node if that’s what you’re after. There’s a `PolyCurve.ByJoinedCurves` that takes a list of curves and creates a single polycurve. That sounds more like what you’re after. You just need to combine all your curves into a single list first.
