# Connect and group lines

**URL:** <https://forum.dynamobim.com/t/connect-and-group-lines/38996>\
**Category:** Revit\
**Tags:** revit, dynamo\
**Created:** [August 1, 2019, 8:08am UTC](https://forum.dynamobim.com/t/connect-and-group-lines/38996 "2019-08-01T08:08:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![verdi](https://avatars.discourse-cdn.com/v4/letter/v/b38774/32.png) [@verdi](https://forum.dynamobim.com/u/verdi)\
**Post date:** [August 1, 2019, 8:08am UTC](https://forum.dynamobim.com/t/connect-and-group-lines/38996/1 "2019-08-01T08:08:24Z")

</div>

Hey guys,

I have some lines I would like to make 1 line of or get the min and max point of but I do not know how I can group this correctly. Does anyone have an idea?

 ![afbeelding](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/c/8c0ca5fa70db16c8af788049f554c1a1bcb3d771.png)

From the different mini-lines left (3 groups, the mini-lines are connected so distance is 0) I would like to create the 3 big lines on the right. If there are more lines or more groups it should also work.

---

<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:** [August 1, 2019, 1:33pm UTC](https://forum.dynamobim.com/t/connect-and-group-lines/38996/2 "2019-08-01T13:33:17Z")

</div>

If the lines are connected (overlapping start/end points) then you should be able to convert them to a polycurve.

---

<div class="post-metadata">

**Author:** ![verdi](https://avatars.discourse-cdn.com/v4/letter/v/b38774/32.png) [@verdi](https://forum.dynamobim.com/u/verdi)\
**Post date:** [August 1, 2019, 1:56pm UTC](https://forum.dynamobim.com/t/connect-and-group-lines/38996/3 "2019-08-01T13:56:39Z")

</div>

Sorry, let me rephrase,

The lines have 1 similar point, but are different lines in the list. It’s one big list and my biggest question is how do you sort it in a way to convert the right lines to a polycurve.

These are the lines/points I am actually working with.

 ![afbeelding](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/f/4f3edc70815d7176d3c85fd806b778de38375962.png)

My biggest problem is that I don’t know how to group the lines in a correct way to convert the right polycurve.

---

<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:** [August 1, 2019, 2:43pm UTC](https://forum.dynamobim.com/t/connect-and-group-lines/38996/4 "2019-08-01T14:43:00Z")

</div>

If the lines actually connect then Group Curves (from archi-lab) should do everything for you. If they don’t _actually_ connect and are just really close, you may have to modify them a little bit or do some manual grouping.

---

<div class="post-metadata">

**Author:** ![verdi](https://avatars.discourse-cdn.com/v4/letter/v/b38774/32.png) [@verdi](https://forum.dynamobim.com/u/verdi)\
**Post date:** [August 1, 2019, 2:45pm UTC](https://forum.dynamobim.com/t/connect-and-group-lines/38996/5 "2019-08-01T14:45:45Z")

</div>

You, my friend, are a lifesaver.

It does exactly what i’ve been trying to do. Thanx a lot!!
