# Filter lists by name

**URL:** <https://forum.dynamobim.com/t/filter-lists-by-name/496>\
**Category:** Packages\
**Created:** [August 15, 2014, 2:49am UTC](https://forum.dynamobim.com/t/filter-lists-by-name/496 "2014-08-15T02:49:26Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arne\_Bjelland](https://avatars.discourse-cdn.com/v4/letter/a/a5b964/32.png) [@Arne\_Bjelland](https://forum.dynamobim.com/u/Arne_Bjelland)\
**Post date:** [August 15, 2014, 2:49am UTC](https://forum.dynamobim.com/t/filter-lists-by-name/496/1 "2014-08-15T02:49:26Z")

</div>

Iuse many groups in my project, and since I can’t make a schedules that count how many groups instances of a group type in a swift manner, I thought doing it in dynamo.

Two questions:

1. how can I filter my list by name (see picture)?

2.how can I count how many instances of the filtered group types (see picture)?

Thanks

Arne

![140815_groups_qs](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/1X/4b0c5797589761ebbe601b5b9ee8923dfb2792c2.jpg)

&nbsp;

---

<div class="post-metadata">

**Author:** ![Arne\_Bjelland](https://avatars.discourse-cdn.com/v4/letter/a/a5b964/32.png) [@Arne\_Bjelland](https://forum.dynamobim.com/u/Arne_Bjelland)\
**Post date:** [August 15, 2014, 3:43am UTC](https://forum.dynamobim.com/t/filter-lists-by-name/496/2 "2014-08-15T03:43:09Z")

</div>

I think I managed to get a little step further to solve question nr. 1, but not quite there yet

![140815_groups_qs_2](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/1X/fc70086d94c43f58353552022ce5eeda00dabbb8.jpg)

---

<div class="post-metadata">

**Author:** ![jostein\_olsen](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jostein_olsen/32/8570_2.png) [@jostein\_olsen](https://forum.dynamobim.com/u/jostein_olsen)\
**Post date:** [August 15, 2014, 5:04am UTC](https://forum.dynamobim.com/t/filter-lists-by-name/496/3 "2014-08-15T05:04:30Z")

</div>

You want to use List.FilterByBooleanMask with the list of true/false as input to **mask** and the original list into **list**.

For the second part I would use the List.Count node. Returns an integer of the number of entries in a list.

Some sort of relevant info here: [http://jbdynamo.blogspot.no/2014/08/detail-numbering-callouts-and-dynamo.html](http://jbdynamo.blogspot.no/2014/08/detail-numbering-callouts-and-dynamo.html)

---

<div class="post-metadata">

**Author:** ![Dimitar\_Venkov](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/dimitar_venkov/32/2068_2.png) [@Dimitar\_Venkov](https://forum.dynamobim.com/u/Dimitar_Venkov)\
**Post date:** [August 15, 2014, 5:04am UTC](https://forum.dynamobim.com/t/filter-lists-by-name/496/4 "2014-08-15T05:04:42Z")

</div>

You’re almost there 🙂

![2014-08-15_183028](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/1X/0f8c41c6669581afeb39f37213fa44332169afb7.jpg)

---

<div class="post-metadata">

**Author:** ![Arne\_Bjelland](https://avatars.discourse-cdn.com/v4/letter/a/a5b964/32.png) [@Arne\_Bjelland](https://forum.dynamobim.com/u/Arne_Bjelland)\
**Post date:** [August 15, 2014, 6:05am UTC](https://forum.dynamobim.com/t/filter-lists-by-name/496/5 "2014-08-15T06:05:02Z")

</div>

Great! Thanks for the swift response!

---

<div class="post-metadata">

**Author:** ![William\_Ruffenach](https://avatars.discourse-cdn.com/v4/letter/w/cdc98d/32.png) [@William\_Ruffenach](https://forum.dynamobim.com/u/William_Ruffenach)\
**Post date:** [November 18, 2014, 12:41pm UTC](https://forum.dynamobim.com/t/filter-lists-by-name/496/6 "2014-11-18T12:41:48Z")

</div>

Hello,

How would you do this for Filled Regions? when you try and get “Names” back you would expect solid fill black or diagonal crosshatch etc…what is returned is Filled Region, Mask Region, Detail Filled Region etc…

Thanks

---

<div class="post-metadata">

**Author:** ![David\_Wood3](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/david_wood3/32/31996_2.png) [@David\_Wood3](https://forum.dynamobim.com/u/David_Wood3)\
**Post date:** [November 18, 2014, 1:26pm UTC](https://forum.dynamobim.com/t/filter-lists-by-name/496/7 "2014-11-18T13:26:18Z")

</div>

Hi William,

You need the Name of the Filled Region Type (i.e. the FamilySymbol.Name), not the name of each Filled Region:

[ 

![FamilySymbol.Name](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/2X/9/9bfe598f2b0190a0db7c93d69be504447e854fce.png)

 ](http://dynamobim.com/wp-content/uploads/forum-assets/dwoodchapmantaylor-com/11/18/FamilySymbol.Name_.png)

---

<div class="post-metadata">

**Author:** ![William\_Ruffenach](https://avatars.discourse-cdn.com/v4/letter/w/cdc98d/32.png) [@William\_Ruffenach](https://forum.dynamobim.com/u/William_Ruffenach)\
**Post date:** [November 18, 2014, 3:57pm UTC](https://forum.dynamobim.com/t/filter-lists-by-name/496/8 "2014-11-18T15:57:39Z")

</div>

Thanks David!

Exactly what I wanted.

---

<div class="post-metadata">

**Author:** ![William\_Ruffenach](https://avatars.discourse-cdn.com/v4/letter/w/cdc98d/32.png) [@William\_Ruffenach](https://forum.dynamobim.com/u/William_Ruffenach)\
**Post date:** [November 18, 2014, 6:28pm UTC](https://forum.dynamobim.com/t/filter-lists-by-name/496/9 "2014-11-18T18:28:24Z")

</div>

David,

I can’t seem to find “[Element.Name](http://Element.Name)”, i see that its a custom node, i tired searching Dynamo and Package manager.

Thanks,

---

<div class="post-metadata">

**Author:** ![David\_Wood3](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/david_wood3/32/31996_2.png) [@David\_Wood3](https://forum.dynamobim.com/u/David_Wood3)\
**Post date:** [November 19, 2014, 7:14am UTC](https://forum.dynamobim.com/t/filter-lists-by-name/496/10 "2014-11-19T07:14:23Z")

</div>

My bad.

Element.Type is in the Clockwork package by Andreas Dieckmann, under Clockwork \> Revit \> Elements \> Element \> Query

[Element.Name](http://Element.Name) is built-in, under Revit \> Elements \> Element \> Query

HTH

---

<div class="post-metadata">

**Author:** ![James\_David\_Aguinald](https://avatars.discourse-cdn.com/v4/letter/j/a88e57/32.png) [@James\_David\_Aguinald](https://forum.dynamobim.com/u/James_David_Aguinald)\
**Post date:** [August 2, 2015, 1:19pm UTC](https://forum.dynamobim.com/t/filter-lists-by-name/496/11 "2015-08-02T13:19:31Z")

</div>

Hi,

How do you filter elements by LEVEL and CATEGORY at the same time?

&nbsp;

Thanks

---

<div class="post-metadata">

**Author:** ![Andreas\_Dieckmann](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/andreas_dieckmann/32/365_2.png) [@Andreas\_Dieckmann](https://forum.dynamobim.com/u/Andreas_Dieckmann)\
**Post date:** [August 2, 2015, 11:00pm UTC](https://forum.dynamobim.com/t/filter-lists-by-name/496/12 "2015-08-02T23:00:19Z")

</div>

While all elements in your selection would typically belong to category, the same is not necessarily true for their level property. So you would first create a filter that filters out all elements that do not have a level property. You can then query the remaining elements for their category and level and combine the tow resulting lists of booleans with an AND condition. The resulting list of booleans can serve as a filter to retrieve only the objects that meet your criteria.

![FilterByLevelAndCategory_075](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/2X/1/17c1f1c9d76aa7b07f094fadf15cbf020d1775e2.png)
