# Lists-Logic

**URL:** <https://forum.dynamobim.com/t/lists-logic/75535>\
**Category:** Lists-Logic\
**Created:** [April 16, 2022, 8:25pm UTC](https://forum.dynamobim.com/t/lists-logic/75535 "2022-04-16T20:25:06Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![111205](https://avatars.discourse-cdn.com/v4/letter/1/ee7513/32.png) [@111205](https://forum.dynamobim.com/u/111205)\
**Post date:** [April 16, 2022, 8:25pm UTC](https://forum.dynamobim.com/t/lists-logic/75535/1 "2022-04-16T20:25:06Z")

</div>

Hello.  
I was able to achieve the desired process with the following, but is there any way to make it simpler?

Thank you in advance.

[Lists-Logic.dyn](https://forum.dynamobim.com/uploads/short-url/sTpDWFkfp3Dj9s0wgdPstie5KfZ.dyn) (32.4 KB)

> [@Map duplicates and create list with elements](https://forum.dynamobim.com/t/map-duplicates-and-create-list-with-elements/66387/2):
>
> From what you are showing it seems that List.UniqueItems would return the “New list”

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/e/fe3c14d7592dbdbfef67c677c32732352603809f.png)

---

<div class="post-metadata">

**Author:** ![Marcel\_Rijsmus](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/marcel_rijsmus/32/8539_2.png) [@Marcel\_Rijsmus](https://forum.dynamobim.com/u/Marcel_Rijsmus)\
**Post date:** [April 16, 2022, 8:34pm UTC](https://forum.dynamobim.com/t/lists-logic/75535/2 "2022-04-16T20:34:03Z")

</div>

welcome to the forum @111205 (Gonta)  
It depends, on what you have in mind  
if you want a simpler list, use the flatten node,  
If you want a simpler process??  
You have to tell us a bit more about what you want to achieve.

---

<div class="post-metadata">

**Author:** ![111205](https://avatars.discourse-cdn.com/v4/letter/1/ee7513/32.png) [@111205](https://forum.dynamobim.com/u/111205)\
**Post date:** [April 17, 2022, 2:39am UTC](https://forum.dynamobim.com/t/lists-logic/75535/3 "2022-04-17T02:39:15Z")

</div>

Thank you for contacting us. @Marcel_Rijsmus San  
Sorry for the lack of explanation.

What I am trying to do is to group curves that are in random order with each other in contact.  
I am trying to find a better way to do this, but it is still incomplete. The current test data is attached.  
I would appreciate any advice you can give me.

Thank you in advance.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/a/6ad9b0b6a253e680b65f2254f4669d3eeed3f635.png)  
[Lists-Logic\_2.dyn](https://forum.dynamobim.com/uploads/short-url/vMBzhbIPsgkdOjgGMTUG07Zejev.dyn) (65.2 KB)

[List-Logic\_Test.rvt](https://forum.dynamobim.com/uploads/short-url/gM1kuUc2U3ef99f4cZXhlNr82DT.rvt) (352 KB)

---

<div class="post-metadata">

**Author:** ![Elie.Trad](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/elie.trad/32/110373_2.png) [@Elie.Trad](https://forum.dynamobim.com/u/Elie.Trad)\
**Post date:** [April 17, 2022, 8:05am UTC](https://forum.dynamobim.com/t/lists-logic/75535/4 "2022-04-17T08:05:25Z")

</div>

@111205 try `Group Curves` node from archilab package.

---

<div class="post-metadata">

**Author:** ![111205](https://avatars.discourse-cdn.com/v4/letter/1/ee7513/32.png) [@111205](https://forum.dynamobim.com/u/111205)\
**Post date:** [April 17, 2022, 9:32am UTC](https://forum.dynamobim.com/t/lists-logic/75535/5 "2022-04-17T09:32:02Z")

</div>

> [@Elie.Trad](#):
>
> archilab

@Elie.Trad san

Thank you for your comment.  
Group Curves in archilab is very useful.  
In this case, the edges of the curves are not in contact with each other, so we cannot use the curves as they are unless we devise a way to do so.

Thank you very much.

---

<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:** [April 17, 2022, 9:35am UTC](https://forum.dynamobim.com/t/lists-logic/75535/6 "2022-04-17T09:35:06Z")

</div>

Hi @111205 you could also try line merge from spring

---

<div class="post-metadata">

**Author:** ![111205](https://avatars.discourse-cdn.com/v4/letter/1/ee7513/32.png) [@111205](https://forum.dynamobim.com/u/111205)\
**Post date:** [April 17, 2022, 10:09am UTC](https://forum.dynamobim.com/t/lists-logic/75535/7 "2022-04-17T10:09:27Z")

</div>

Thank you for your comment. @sovitek San  
I tried Spring’s [ꟿ LineLoop.Merge] but could not group them well.

The latest Dynamo we are testing is attached for reference.

Thank you very much.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/a/aafcc3506d73cf2202ed7ea3670f74a62546acf0.png)  
[Lists-Logic\_3.dyn](https://forum.dynamobim.com/uploads/short-url/j2qwhj8Z5e0oAboaQ6fps56BYBH.dyn) (74.7 KB)

---

<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:** [April 17, 2022, 10:20am UTC](https://forum.dynamobim.com/t/lists-logic/75535/8 "2022-04-17T10:20:46Z")

</div>

probably im wrong but seems it works ;), try to hide all your preview except the last…not at dyn right now…i tjeck it later 😉

---

<div class="post-metadata">

**Author:** ![Marcel\_Rijsmus](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/marcel_rijsmus/32/8539_2.png) [@Marcel\_Rijsmus](https://forum.dynamobim.com/u/Marcel_Rijsmus)\
**Post date:** [April 17, 2022, 10:51am UTC](https://forum.dynamobim.com/t/lists-logic/75535/9 "2022-04-17T10:51:15Z")

</div>

Curve,IsClosed should give a TRUE value if it works

---

<div class="post-metadata">

**Author:** ![Vikram\_Subbaiah](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/vikram_subbaiah/32/50797_2.png) [@Vikram\_Subbaiah](https://forum.dynamobim.com/u/Vikram_Subbaiah)\
**Post date:** [April 18, 2022, 6:48am UTC](https://forum.dynamobim.com/t/lists-logic/75535/10 "2022-04-18T06:48:57Z")

</div>

Check this out. A slight modification to the code posted [here](https://forum.dynamobim.com/t/grouping-curves-with-design-script/15122/3)

 ![grpCrv](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/9/091af728169f26ddb9fc28d910af43c2a2ea11f8.png)

[grpLins.dyn](https://forum.dynamobim.com/uploads/short-url/oyu8lta9uT7q1pnwBEcp0nWMJzn.dyn) (7.6 KB)

Note: Feed a flattened list of curves to the function

---

<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:** [April 18, 2022, 7:02am UTC](https://forum.dynamobim.com/t/lists-logic/75535/11 "2022-04-18T07:02:34Z")

</div>

@Vikram_Subbaiah …thats great 😉 thanks

---

<div class="post-metadata">

**Author:** ![111205](https://avatars.discourse-cdn.com/v4/letter/1/ee7513/32.png) [@111205](https://forum.dynamobim.com/u/111205)\
**Post date:** [April 19, 2022, 11:50am UTC](https://forum.dynamobim.com/t/lists-logic/75535/12 "2022-04-19T11:50:01Z")

</div>

@Vikram_Subbaiah San  
Sorry for the delay in getting back to you.  
It worked fine! Thank you!

I have been helped before. Thank you again.  
Thank you also to everyone who commented.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/1/91ce5cbbffbff02902bc0ab27b493df3d786493b.png)
