# Export slabs with similar thickness as single group with same color

**URL:** <https://forum.dynamobim.com/t/export-slabs-with-similar-thickness-as-single-group-with-same-color/63761>\
**Category:** Revit\
**Tags:** revit, dynamo\
**Created:** [May 10, 2021, 7:46am UTC](https://forum.dynamobim.com/t/export-slabs-with-similar-thickness-as-single-group-with-same-color/63761 "2021-05-10T07:46:14Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahmed.aelgammal](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ahmed.aelgammal/32/115459_2.png) [@ahmed.aelgammal](https://forum.dynamobim.com/u/ahmed.aelgammal)\
**Post date:** [May 10, 2021, 7:46am UTC](https://forum.dynamobim.com/t/export-slabs-with-similar-thickness-as-single-group-with-same-color/63761/1 "2021-05-10T07:46:15Z")

</div>

I am working on project were it is required that all structural floors with same thickness have same color and be in same group such that we can select them all together with the same click. Also, I need to export the file to autocad and maintain the same group function.

I was able to group them in dynamo and assign colors to those with same thickness. but could not group them in revit.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/1/31eaa449fa1ded4c3086ef1c38ff6ada98338afb.jpeg)

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

---

<div class="post-metadata">

**Author:** ![Daan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daan/32/82246_2.png) [@Daan](https://forum.dynamobim.com/u/Daan)\
**Post date:** [May 10, 2021, 2:14pm UTC](https://forum.dynamobim.com/t/export-slabs-with-similar-thickness-as-single-group-with-same-color/63761/2 "2021-05-10T14:14:32Z")

</div>

Hi @ahmed.aelgammal ,

How do you mean group together in Revit?

---

<div class="post-metadata">

**Author:** ![ahmed.aelgammal](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ahmed.aelgammal/32/115459_2.png) [@ahmed.aelgammal](https://forum.dynamobim.com/u/ahmed.aelgammal)\
**Post date:** [May 10, 2021, 2:23pm UTC](https://forum.dynamobim.com/t/export-slabs-with-similar-thickness-as-single-group-with-same-color/63761/3 "2021-05-10T14:23:02Z")

</div>

as one group. selected together same color and hatch.

---

<div class="post-metadata">

**Author:** ![Daan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daan/32/82246_2.png) [@Daan](https://forum.dynamobim.com/u/Daan)\
**Post date:** [May 10, 2021, 2:24pm UTC](https://forum.dynamobim.com/t/export-slabs-with-similar-thickness-as-single-group-with-same-color/63761/4 "2021-05-10T14:24:26Z")

</div>

im sorry maybe i need to rephrase my question.  
I am not familiar with groups in Revit, maybe you can search for revit group API online

---

<div class="post-metadata">

**Author:** ![Kulkul](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kulkul/32/49801_2.png) [@Kulkul](https://forum.dynamobim.com/u/Kulkul)\
**Post date:** [May 10, 2021, 2:33pm UTC](https://forum.dynamobim.com/t/export-slabs-with-similar-thickness-as-single-group-with-same-color/63761/5 "2021-05-10T14:33:32Z")

</div>

@ahmed.aelgammal @Daan Check out clockwork package it has got custom node to group elements with name:

> [@Daan](#):
>
> I am not familiar with groups in Revit

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

---

<div class="post-metadata">

**Author:** ![ahmed.aelgammal](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ahmed.aelgammal/32/115459_2.png) [@ahmed.aelgammal](https://forum.dynamobim.com/u/ahmed.aelgammal)\
**Post date:** [May 11, 2021, 1:09pm UTC](https://forum.dynamobim.com/t/export-slabs-with-similar-thickness-as-single-group-with-same-color/63761/6 "2021-05-11T13:09:03Z")

</div>

tried it but returns empty list any advise

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/b/3b0b0c86cd4338b25a2910c60a9ab00f54dbd624.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:** [May 11, 2021, 1:51pm UTC](https://forum.dynamobim.com/t/export-slabs-with-similar-thickness-as-single-group-with-same-color/63761/7 "2021-05-11T13:51:40Z")

</div>

What is the input you’re feeding into the GroupName input? My guess is that it’s a nested list, but the node needs a list.

---

<div class="post-metadata">

**Author:** ![ahmed.aelgammal](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ahmed.aelgammal/32/115459_2.png) [@ahmed.aelgammal](https://forum.dynamobim.com/u/ahmed.aelgammal)\
**Post date:** [May 17, 2021, 7:45am UTC](https://forum.dynamobim.com/t/export-slabs-with-similar-thickness-as-single-group-with-same-color/63761/8 "2021-05-17T07:45:51Z")

</div>

I tried list.flatten but still it does not work. also I have attached my dyn file maybe you would like to  
look at it in details

[FILTER\_FLOOR AND BEAM.dyn](https://forum.dynamobim.com/uploads/short-url/7s4xYAYbSZE6mJd8wtOyzcDmmTO.dyn) (67.5 KB)

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/6/464f9ec5f8d72284c2d0089ad7dfe5c3fb65faf6.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:** [May 17, 2021, 1:28pm UTC](https://forum.dynamobim.com/t/export-slabs-with-similar-thickness-as-single-group-with-same-color/63761/9 "2021-05-17T13:28:16Z")

</div>

Try not flattening either list. Instead use a List.FirstItem with longest lacing or @L2 to pull only one name from each list of names.

---

<div class="post-metadata">

**Author:** ![ahmed.aelgammal](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ahmed.aelgammal/32/115459_2.png) [@ahmed.aelgammal](https://forum.dynamobim.com/u/ahmed.aelgammal)\
**Post date:** [May 17, 2021, 1:58pm UTC](https://forum.dynamobim.com/t/export-slabs-with-similar-thickness-as-single-group-with-same-color/63761/10 "2021-05-17T13:58:44Z")

</div>

still same output nothing changed

---

<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:** [May 17, 2021, 6:37pm UTC](https://forum.dynamobim.com/t/export-slabs-with-similar-thickness-as-single-group-with-same-color/63761/11 "2021-05-17T18:37:04Z")

</div>

I don’t think that node is set up to work with lists of lists at this time, which means you may have to play with list levels/lacing or update the code. Note that if any of your elements are already in a group you also will not be able to add them into a new group - this would result in you modifying a group outside of a group, which is a no go.
