# Identify and name identical beams

**URL:** <https://forum.dynamobim.com/t/identify-and-name-identical-beams/91839>\
**Category:** Revit\
**Tags:** revit, geometry, dynamo\
**Created:** [July 15, 2023, 10:20pm UTC](https://forum.dynamobim.com/t/identify-and-name-identical-beams/91839 "2023-07-15T22:20:31Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![gdawsonfc](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/gdawsonfc/32/149864_2.png) [@gdawsonfc](https://forum.dynamobim.com/u/gdawsonfc)\
**Post date:** [July 15, 2023, 10:20pm UTC](https://forum.dynamobim.com/t/identify-and-name-identical-beams/91839/1 "2023-07-15T22:20:31Z")

</div>

Hi,

I have a list of selected “Beams” elements in Dynamo.  
What’s the best way to identify “Beams” that are exactly the same (geometric)?  
I’m new to Dynamo, I need to give a number (Mark) for each beam, but the same beams must have the same number.

Thank you very much! 🙂

Below is an image of my structure to get an idea of how the beams are.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/c/bcc3f9ecc0fbaa17caf9f1d49a0d50ff998ca0c3.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 15, 2023, 10:58pm UTC](https://forum.dynamobim.com/t/identify-and-name-identical-beams/91839/2 "2023-07-15T22:58:47Z")

</div>

List.GroupByKey should get you somewhere. What have you tried so far?

---

<div class="post-metadata">

**Author:** ![gdawsonfc](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/gdawsonfc/32/149864_2.png) [@gdawsonfc](https://forum.dynamobim.com/u/gdawsonfc)\
**Post date:** [July 16, 2023, 12:46am UTC](https://forum.dynamobim.com/t/identify-and-name-identical-beams/91839/3 "2023-07-16T00:46:57Z")

</div>

I’m new to Dynamo. But initially I thought of using the “Centroid” of the beams to identify the same beams, but the centroid points are based on the 0,0 of the project, so they don’t match. So I managed to get the list of beams volumes. How do I compare equal volumes in the list and give a number to each group of equal parts?

---

<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 16, 2023, 12:59am UTC](https://forum.dynamobim.com/t/identify-and-name-identical-beams/91839/4 "2023-07-16T00:59:38Z")

</div>

Once you have the volume, you use that as they key input, and the beam elements as the list input of an`List.GroupByKey` node.

However if you have three rectangular profile beams with the following dimensions they’ll all have the same volume:

- 0.5w x 1h x 3 long
- 1w x 1h x 1.5 long
- 0.5w x 0.5h x 6 long

Rather than using volume, use the beam type and the beam length.

---

<div class="post-metadata">

**Author:** ![gdawsonfc](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/gdawsonfc/32/149864_2.png) [@gdawsonfc](https://forum.dynamobim.com/u/gdawsonfc)\
**Post date:** [July 16, 2023, 12:36pm UTC](https://forum.dynamobim.com/t/identify-and-name-identical-beams/91839/5 "2023-07-16T12:36:48Z")

</div>

Right!  
But to better understand how it works, how could I evaluate and order a list based on two or more factors? (in a list compare elements of the same “type”, same “volume” and same “length”, for 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 16, 2023, 12:44pm UTC](https://forum.dynamobim.com/t/identify-and-name-identical-beams/91839/6 "2023-07-16T12:44:41Z")

</div>

GroupByKey repeatedly using list levels.

Or union the comparison values into a single string and use that as the key.

---

<div class="post-metadata">

**Author:** ![christian.stan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/christian.stan/32/166296_2.png) [@christian.stan](https://forum.dynamobim.com/u/christian.stan)\
**Post date:** [July 16, 2023, 1:55pm UTC](https://forum.dynamobim.com/t/identify-and-name-identical-beams/91839/7 "2023-07-16T13:55:04Z")

</div>

Hello, here is the desired direction

 ![Forum english 16 juillet 2023_2023-07-16_03-48-06](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/5/4590ce3ac2dfda81fdec13647b276796ae585104.png)

Cordially  
christian.stan
