# Setting mark parameters of different families

**URL:** <https://forum.dynamobim.com/t/setting-mark-parameters-of-different-families/106620>\
**Category:** Lists-Logic\
**Tags:** revit, dynamo\
**Created:** [December 16, 2024, 7:09pm UTC](https://forum.dynamobim.com/t/setting-mark-parameters-of-different-families/106620 "2024-12-16T19:09:09Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![niels.van.hove](https://avatars.discourse-cdn.com/v4/letter/n/3da27b/32.png) [@niels.van.hove](https://forum.dynamobim.com/u/niels.van.hove)\
**Post date:** [December 16, 2024, 7:09pm UTC](https://forum.dynamobim.com/t/setting-mark-parameters-of-different-families/106620/1 "2024-12-16T19:09:09Z")

</div>

Hi all,

I’ve made this script that collects all the families in my project and assign every mark of said family a different letter (a,b,c,…). My current script works but it is quite hectic as im copy pasting the different nodes times the amount of families in my project. fyi the different types in the family need the same letter.

is there a more efficient way of doing this?

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/c/bcc80b8614c663da645bdef5e15e321b18e2ef79.png)  
 ![StructConnectionALL_SetParam_Mark_2024-12-16_08-08-20](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/3/e38b8f31f3b1e60a08a9635b6185e8353e7ce381.png)

---

<div class="post-metadata">

**Author:** ![bvs1982](https://avatars.discourse-cdn.com/v4/letter/b/43a26b/32.png) [@bvs1982](https://forum.dynamobim.com/u/bvs1982)\
**Post date:** [December 16, 2024, 7:43pm UTC](https://forum.dynamobim.com/t/setting-mark-parameters-of-different-families/106620/2 "2024-12-16T19:43:30Z")

</div>

GroupByKey?

Key could be the category for example.

---

<div class="post-metadata">

**Author:** ![niels.van.hove](https://avatars.discourse-cdn.com/v4/letter/n/3da27b/32.png) [@niels.van.hove](https://forum.dynamobim.com/u/niels.van.hove)\
**Post date:** [December 16, 2024, 8:04pm UTC](https://forum.dynamobim.com/t/setting-mark-parameters-of-different-families/106620/3 "2024-12-16T20:04:22Z")

</div>

i’ve thought of that. But i got no clue what to do after the grouping by key.

This might need a little more research as it seems currently out of my league 😅

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/d/4d53ba32401f5bcf9cd0c213c781738ab6b71e5c.png)

---

<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:** [December 16, 2024, 8:56pm UTC](https://forum.dynamobim.com/t/setting-mark-parameters-of-different-families/106620/4 "2024-12-16T20:56:51Z")

</div>

Group `FamilyType` by `Family` and then generate your mark sequence for the number of families. Then you assign the mark to the group (sublist) of `FamilyTypes`.

---

<div class="post-metadata">

**Author:** ![bvs1982](https://avatars.discourse-cdn.com/v4/letter/b/43a26b/32.png) [@bvs1982](https://forum.dynamobim.com/u/bvs1982)\
**Post date:** [December 17, 2024, 11:27am UTC](https://forum.dynamobim.com/t/setting-mark-parameters-of-different-families/106620/5 "2024-12-17T11:27:01Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/c/0c567074527416ce07a141fd266c5d59d6992d80.png)

---

<div class="post-metadata">

**Author:** ![niels.van.hove](https://avatars.discourse-cdn.com/v4/letter/n/3da27b/32.png) [@niels.van.hove](https://forum.dynamobim.com/u/niels.van.hove)\
**Post date:** [December 17, 2024, 6:26pm UTC](https://forum.dynamobim.com/t/setting-mark-parameters-of-different-families/106620/6 "2024-12-17T18:26:41Z")

</div>

Thanks @Nick_Boyts @bvs1982

This is defenitly way more simple then my original script. works like a charm!

---

<div class="post-metadata">

**Author:** ![niels.van.hove](https://avatars.discourse-cdn.com/v4/letter/n/3da27b/32.png) [@niels.van.hove](https://forum.dynamobim.com/u/niels.van.hove)\
**Post date:** [December 17, 2024, 7:01pm UTC](https://forum.dynamobim.com/t/setting-mark-parameters-of-different-families/106620/7 "2024-12-17T19:01:56Z")

</div>

This might be a long shot but i just made a similar script where i sort rebar by shapes and Ø and assign them a mark.

Is there a node / method that recognises if the rebar has the same shape, Ø and length and assigns the same mark to the rebar?

i tried “if” node and “==” but i dont seem to connect the dots all to well

---

<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:** [December 17, 2024, 9:24pm UTC](https://forum.dynamobim.com/t/setting-mark-parameters-of-different-families/106620/8 "2024-12-17T21:24:03Z")

</div>

This would either be a number of groupings in series (for each value) or you can join all 3 values as a string and use that as an “identifier”. But it’s the same idea as above.
