# Grouping Points by nearby points

**URL:** <https://forum.dynamobim.com/t/grouping-points-by-nearby-points/34858>\
**Category:** Lists-Logic\
**Tags:** dynamo\
**Created:** [April 15, 2019, 6:48pm UTC](https://forum.dynamobim.com/t/grouping-points-by-nearby-points/34858 "2019-04-15T18:48:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![m.shcheblykin](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/m.shcheblykin/32/92853_2.png) [@m.shcheblykin](https://forum.dynamobim.com/u/m.shcheblykin)\
**Post date:** [April 15, 2019, 6:48pm UTC](https://forum.dynamobim.com/t/grouping-points-by-nearby-points/34858/1 "2019-04-15T18:48:56Z")

</div>

Hello dear professionals,  
Could you give me any ideas how can I group points like Grasshopper does it ?  
In Grasshopper it follows not the cluster logic. In the manner of speaking, it follows a chain logic  
So how can I reach this result in Dynamo ? I have some vision of this logic, but I’m afraid that only Python can help and I still didn’t learn it

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/9/d97d4ed6444af2eb07a389e002d610ba72b40101.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 15, 2019, 6:59pm UTC](https://forum.dynamobim.com/t/grouping-points-by-nearby-points/34858/2 "2019-04-15T18:59:33Z")

</div>

> [@Sort lists by proximity](https://forum.dynamobim.com/t/sort-lists-by-proximity/23031/6):
>
> I think you need to switch your Geometry.DistanceTo inputs. You’re finding the shortest distance in the bottom list then pulling the item from the first list.

---

<div class="post-metadata">

**Author:** ![m.shcheblykin](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/m.shcheblykin/32/92853_2.png) [@m.shcheblykin](https://forum.dynamobim.com/u/m.shcheblykin)\
**Post date:** [May 11, 2019, 5:30pm UTC](https://forum.dynamobim.com/t/grouping-points-by-nearby-points/34858/3 "2019-05-11T17:30:23Z")

</div>

Hello, this is the solution

> [@How to get coordinates of points in relative coordinates system (Not WCS) in Dynamo](https://forum.dynamobim.com/t/how-to-get-coordinates-of-points-in-relative-coordinates-system-not-wcs-in-dynamo/35834/4):
>
> @m.shcheblykin Thanks for sharing your files. I would group Points by its margin. it will group based off their proximity. Here is the DYN [For Maksym.dyn](https://forum.dynamobim.com/uploads/short-url/eUazw81UwvpWd4OeluPf4POeXSO.dyn) (42.6 KB)
