# How to group and filter the beams with start points and end points?

**URL:** <https://forum.dynamobim.com/t/how-to-group-and-filter-the-beams-with-start-points-and-end-points/23494>\
**Category:** Revit\
**Tags:** revit, dynamo\
**Created:** [July 7, 2018, 1:08am UTC](https://forum.dynamobim.com/t/how-to-group-and-filter-the-beams-with-start-points-and-end-points/23494 "2018-07-07T01:08:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![toantrungthach](https://avatars.discourse-cdn.com/v4/letter/t/4af34b/32.png) [@toantrungthach](https://forum.dynamobim.com/u/toantrungthach)\
**Post date:** [July 7, 2018, 1:08am UTC](https://forum.dynamobim.com/t/how-to-group-and-filter-the-beams-with-start-points-and-end-points/23494/1 "2018-07-07T01:08:55Z")

</div>

Hi everyone in Dynamo forum!  
I would like to filter the beams with request the end point of the first beam is the start point of the second beam.  
I filter Y start point and Y end point, but i don’t now how to group and filter it. Please help me! Thank you so much! Have a nice time.  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/8/28e115278ab55e983e1eef2ba95a94872561e092.png)

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [July 8, 2018, 3:58pm UTC](https://forum.dynamobim.com/t/how-to-group-and-filter-the-beams-with-start-points-and-end-points/23494/2 "2018-07-08T15:58:28Z")

</div>

1. wire the cireve.endpoint into the upper element.getlocation node this will cut your processing time on larger datasets.

2. try a geometry.distanceto with cross product lacing. Use an if statement to filter out the beams which aren’t within ‘near zero’ (I’m assuming that you want stuff that misses by a small distance as well). Something like: List.Clean(dist \< 0.25 ? beam : null, false);

---

<div class="post-metadata">

**Author:** ![toantrungthach](https://avatars.discourse-cdn.com/v4/letter/t/4af34b/32.png) [@toantrungthach](https://forum.dynamobim.com/u/toantrungthach)\
**Post date:** [July 9, 2018, 2:12am UTC](https://forum.dynamobim.com/t/how-to-group-and-filter-the-beams-with-start-points-and-end-points/23494/3 "2018-07-09T02:12:14Z")

</div>

Thank you Sir @jacob.small but i just use the dynamo. Can you give me example?

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [July 9, 2018, 4:27pm UTC](https://forum.dynamobim.com/t/how-to-group-and-filter-the-beams-with-start-points-and-end-points/23494/4 "2018-07-09T16:27:21Z")

</div>

The best way to learn is to start.

Give what I tried a shot. If you haven’t already, do the primer in it’s entirety (skip nothing), and then try to build the graph above. If after a few attempts you’re still stuck, post where you got to and I’ll try and find the time to guide you to a solution.
