# Merging Multiple Curves into one Curve without using Polyline

**URL:** <https://forum.dynamobim.com/t/merging-multiple-curves-into-one-curve-without-using-polyline/2475>\
**Category:** Packages\
**Created:** [October 30, 2015, 8:43am UTC](https://forum.dynamobim.com/t/merging-multiple-curves-into-one-curve-without-using-polyline/2475 "2015-10-30T08:43:40Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yujing\_Isabel\_Chia](https://avatars.discourse-cdn.com/v4/letter/y/5fc32e/32.png) [@Yujing\_Isabel\_Chia](https://forum.dynamobim.com/u/Yujing_Isabel_Chia)\
**Post date:** [October 30, 2015, 8:43am UTC](https://forum.dynamobim.com/t/merging-multiple-curves-into-one-curve-without-using-polyline/2475/1 "2015-10-30T08:43:40Z")

</div>

I’m trying to create a WallByCurveAndHeight however the problem I have with my curves is that they are separated and therefore create not one continuous wall but multiple walls. Is there a way I can merge all these curves into one curve without converting it to a polycurve? The only reason is that the WallByCurveAndHeight node does not read polycurves.

&nbsp;

![NeedHelp](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/2X/3/3c3916f840a4ad2bb0b4991c850ae52939f83d3d.jpg)

---

<div class="post-metadata">

**Author:** ![Dimitar\_Venkov](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/dimitar_venkov/32/2068_2.png) [@Dimitar\_Venkov](https://forum.dynamobim.com/u/Dimitar_Venkov)\
**Post date:** [November 2, 2015, 3:41am UTC](https://forum.dynamobim.com/t/merging-multiple-curves-into-one-curve-without-using-polyline/2475/2 "2015-11-02T03:41:24Z")

</div>

Hi Isabel,

If you download the latest version of “spring nodes”, you’ll find a node called “CurveLoop.Simplify”, that should be able to accomplish what you’re after.

![2015-11-02_17-06-34](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/2X/1/1a42a9d8890a96a61ad16a151246b7c0ff7afd7b.png)

---

<div class="post-metadata">

**Author:** ![ABHIJEET\_SHARMA1](https://avatars.discourse-cdn.com/v4/letter/a/dbc845/32.png) [@ABHIJEET\_SHARMA1](https://forum.dynamobim.com/u/ABHIJEET_SHARMA1)\
**Post date:** [November 2, 2015, 4:28am UTC](https://forum.dynamobim.com/t/merging-multiple-curves-into-one-curve-without-using-polyline/2475/3 "2015-11-02T04:28:44Z")

</div>

Hello Yujing,

I had the same problem, KulKul helped me out by suggesting “Curve.ApproximateWithArcAndLineSegments” node. Have a look here:

[http://dynamobim.com/forums/topic/automating-wall-tiles/](http://dynamobim.com/forums/topic/automating-wall-tiles/)

Regards

---

<div class="post-metadata">

**Author:** ![Yujing\_Isabel\_Chia](https://avatars.discourse-cdn.com/v4/letter/y/5fc32e/32.png) [@Yujing\_Isabel\_Chia](https://forum.dynamobim.com/u/Yujing_Isabel_Chia)\
**Post date:** [November 2, 2015, 7:33am UTC](https://forum.dynamobim.com/t/merging-multiple-curves-into-one-curve-without-using-polyline/2475/4 "2015-11-02T07:33:29Z")

</div>

Thanks Dimitar and Abhijeet for replying, Dimitar your method worked well for part of it, it solved the loop for most part however is there a way I can make it end up being one whole line? Some parts of my wall are missing and I’m not sure how I can generate them without over lapping. Unfortunately I wasn’t able to achieve what I needed through your method Abhijeet however thank you:)

![NeedHelp2](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/2X/8/88a3ae2eb192ac9f70a4c8c6ba3eafa8f2df4664.jpg)

---

<div class="post-metadata">

**Author:** ![Konrad\_K\_Sobon](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/konrad_k_sobon/32/8838_2.png) [@Konrad\_K\_Sobon](https://forum.dynamobim.com/u/Konrad_K_Sobon)\
**Post date:** [November 2, 2015, 8:40am UTC](https://forum.dynamobim.com/t/merging-multiple-curves-into-one-curve-without-using-polyline/2475/5 "2015-11-02T08:40:39Z")

</div>

Can you add some segments to that Curtain wall? That should at least get you a better idea about missing segments. From the posted image one cannot tell if there are any missing at the moment.

---

<div class="post-metadata">

**Author:** ![Dimitar\_Venkov](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/dimitar_venkov/32/2068_2.png) [@Dimitar\_Venkov](https://forum.dynamobim.com/u/Dimitar_Venkov)\
**Post date:** [November 2, 2015, 8:55pm UTC](https://forum.dynamobim.com/t/merging-multiple-curves-into-one-curve-without-using-polyline/2475/6 "2015-11-02T20:55:26Z")

</div>

That’s some nice looking geometry. Hmm, from your initial image, the curves looked to be straight segments. But when I look at the second image, they look curved.

Dynamo is limited by what’s possible to do in Revit. As you may know, Revit’s walls can take in only straight lines and arcs (circles in revit are made up of two arcs) and can not use any breps (nurbs or spline curves). So unfortunately, there is no way to merge the curves into a single entity that can be accepted by the wall creation node.

Since your curves are actually breps, we’ll need to approximate them. The built-in node “Curve.ApproximateWithArcAndLineSegments” can do the job, but is too aggressive with the tolerance and you can end up with hundreds of curves just from a single brep. That can be disastrous on a larger project. (and might not even work because some of the segments will end up being shorter than revit’s built-in limit) I suggest you try Lunchbox’s “Curve to Arcs by Division” node instead. It can accept a tolerance parameter (in the form of a division count) and that way we can gain a finer control over the number of curves that we send over to Revit.

![2015-11-03_10-18-32](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/2X/4/4f3230120f7d42a7f87d32deb29ebcc31d45d446.png)

&nbsp;

![2015-11-03_10-25-22](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/2X/c/c482a5280d38a6fef35b2ac8a966df809efe3def.png)

Alternatively, you could look into simplifying the way in which you created your curves.

---

<div class="post-metadata">

**Author:** ![Konrad\_K\_Sobon](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/konrad_k_sobon/32/8838_2.png) [@Konrad\_K\_Sobon](https://forum.dynamobim.com/u/Konrad_K_Sobon)\
**Post date:** [November 2, 2015, 10:08pm UTC](https://forum.dynamobim.com/t/merging-multiple-curves-into-one-curve-without-using-polyline/2475/7 "2015-11-02T22:08:35Z")

</div>

Dimitar,

This is great work, but when I suggested that he adds some segments to his curtain wall I meant to illustrate a point. Point is, that in Revit when you make a curved curtain wall and it only has one or two segments it will look exactly like the image that he posted. However all you have to do is add some segments, and division by distance or by fixed number is already built into the Curtain Wall tool so there is no need to do that in Dynamo unless he wants to really control the size of each segment in some explicit manner. Example:

![Capture](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/2X/9/9b829e483e88f618a302d998ecde310545274495.png)Curved curtain wall can be divided by number of segments:

![Capture1](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/2X/0/09589ea33edf40ef6b0633aaae036fa35ade4228.png)

&nbsp;

or it can be divided by spacing:

![Capture2](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/2X/3/3f52774056167834af14978a24f85bbba8347434.png)

&nbsp;

Of course using only arcs and lines is a little bit tricky to get any complicated Nurbs Curve to work with thos method and I would probably do something different all together, however it is good to make people aware of the Revit tool’s capabilities so that they don’t attempt to re-create it for no reason.

---

<div class="post-metadata">

**Author:** ![ahmadkhalaf7892](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ahmadkhalaf7892/32/131910_2.png) [@ahmadkhalaf7892](https://forum.dynamobim.com/u/ahmadkhalaf7892)\
**Post date:** [August 1, 2022, 1:48pm UTC](https://forum.dynamobim.com/t/merging-multiple-curves-into-one-curve-without-using-polyline/2475/8 "2022-08-01T13:48:12Z")

</div>

Hi Isabel, Did you find any solution for the curves joining ? I am having the same problem here

---

<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:** [August 2, 2022, 7:44pm UTC](https://forum.dynamobim.com/t/merging-multiple-curves-into-one-curve-without-using-polyline/2475/9 "2022-08-02T19:44:21Z")

</div>

@ahmadkhalaf7892 please create a new topic, this one is 7 (!) years old

---

<div class="post-metadata">

**Author:** ![ahmadkhalaf7892](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ahmadkhalaf7892/32/131910_2.png) [@ahmadkhalaf7892](https://forum.dynamobim.com/u/ahmadkhalaf7892)\
**Post date:** [August 2, 2022, 7:46pm UTC](https://forum.dynamobim.com/t/merging-multiple-curves-into-one-curve-without-using-polyline/2475/10 "2022-08-02T19:46:55Z")

</div>

Hi Daan  
I have created a new topic

> [@Joining Lines from X Y points](https://forum.dynamobim.com/t/joining-lines-from-x-y-points/79205):
>
> Hi Guys, If you notice in the flatten node, the node have Line Start with X&Y coordinates, any idea how Can I combine them and make them as one model line ?

But the thing is no one had an answer yet , so I thiught maybe they found a solution in this post  
I’d appreciate any help
