# List.FilterByBoolMask does not work (does not process all elements from lists)

**URL:** <https://forum.dynamobim.com/t/list-filterbyboolmask-does-not-work-does-not-process-all-elements-from-lists/75991>\
**Category:** Uncategorized\
**Created:** [April 29, 2022, 9:51am UTC](https://forum.dynamobim.com/t/list-filterbyboolmask-does-not-work-does-not-process-all-elements-from-lists/75991 "2022-04-29T09:51:00Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![sivin.sivov](https://avatars.discourse-cdn.com/v4/letter/s/977dab/32.png) [@sivin.sivov](https://forum.dynamobim.com/u/sivin.sivov)\
**Post date:** [April 29, 2022, 9:51am UTC](https://forum.dynamobim.com/t/list-filterbyboolmask-does-not-work-does-not-process-all-elements-from-lists/75991/1 "2022-04-29T09:51:00Z")

</div>

Hey Dynamo folks. I’m stuck. I’ve banged my head around it for some time and it’s time to ask for some help. I have this script that gets some pipes from a linked file and places a revision cloud around them. I try to filter them with List.FilterByBoolMask and it works when I mask it with the Revision Comment parameter, but when I mask it a secont time with System abbreviation, it gets only a part of them. I tried connecting the lists in different ways but it never gets all of the abbreviations i’ve fed it. It gets the first from the list and some other ones. Help ☹ Example Element Nr 10 is with abbreviation FVF and is obviously in the list but it goes out as false?!?!?

 ![help](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/f/8f330a6a5f3359be67534edd958b88a484e49cc1.png)

 ![help2](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/8/98b36e32808a3d65563c2bb7b899864d57df7f53.png)

---

<div class="post-metadata">

**Author:** ![sivin.sivov](https://avatars.discourse-cdn.com/v4/letter/s/977dab/32.png) [@sivin.sivov](https://forum.dynamobim.com/u/sivin.sivov)\
**Post date:** [April 29, 2022, 9:51am UTC](https://forum.dynamobim.com/t/list-filterbyboolmask-does-not-work-does-not-process-all-elements-from-lists/75991/2 "2022-04-29T09:51:50Z")

</div>

If I change the list order in Varme abbreviation with FVF being on the top it doesn’t take the FVRs  
;( u y do dis

 ![help3](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/a/daaa7fd4fe51cded317ade3776ddf52c95f46ea1.png)  
 ![help33](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/3/131daf712e65aa52027825264b32feb5200a4dfb.png)

---

<div class="post-metadata">

**Author:** ![Draxl\_Andreas](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/draxl_andreas/32/145744_2.png) [@Draxl\_Andreas](https://forum.dynamobim.com/u/Draxl_Andreas)\
**Post date:** [April 29, 2022, 11:16am UTC](https://forum.dynamobim.com/t/list-filterbyboolmask-does-not-work-does-not-process-all-elements-from-lists/75991/3 "2022-04-29T11:16:25Z")

</div>

Hello @sivin.sivov ,

Could be a list.flatten issue, your listdepth is severial times @3.  
Looks like it is not getting all imputs!

KR

Andreas

 ![2022-04-29_13h13_56](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/6/261ead181ab60d27ab862a4ae89321b28ed229b0.png)

---

<div class="post-metadata">

**Author:** ![sivin.sivov](https://avatars.discourse-cdn.com/v4/letter/s/977dab/32.png) [@sivin.sivov](https://forum.dynamobim.com/u/sivin.sivov)\
**Post date:** [April 29, 2022, 12:10pm UTC](https://forum.dynamobim.com/t/list-filterbyboolmask-does-not-work-does-not-process-all-elements-from-lists/75991/4 "2022-04-29T12:10:14Z")

</div>

The problem is a bit further back. Already at the “Filter elements by System Abbreviation” group. The List.FilterByBoolMask does not read all of the pipes with the parameter names I’ve fed it. It only picks the first one and a few others.

 ![help4](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/0/e054a9ac42fa4e78a7a5b9a5523b5bc65e8ca30f.png)

---

<div class="post-metadata">

**Author:** ![Draxl\_Andreas](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/draxl_andreas/32/145744_2.png) [@Draxl\_Andreas](https://forum.dynamobim.com/u/Draxl_Andreas)\
**Post date:** [April 29, 2022, 1:23pm UTC](https://forum.dynamobim.com/t/list-filterbyboolmask-does-not-work-does-not-process-all-elements-from-lists/75991/5 "2022-04-29T13:23:28Z")

</div>

![2022-04-29_15h22_57](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/3/a383733eaa3e7f94e8410fde02cdeba067845448.png)

---

<div class="post-metadata">

**Author:** ![josipkomadina](https://avatars.discourse-cdn.com/v4/letter/j/e8c25b/32.png) [@josipkomadina](https://forum.dynamobim.com/u/josipkomadina)\
**Post date:** [April 29, 2022, 2:06pm UTC](https://forum.dynamobim.com/t/list-filterbyboolmask-does-not-work-does-not-process-all-elements-from-lists/75991/6 "2022-04-29T14:06:18Z")

</div>

Hopefully I understood what you are looking for. This is one way you could try this way map the function and just use Anytrue from [orchid](https://github.com/erfajo/OrchidForDynamo/issues) or clockwork package.

 ![Image - 29-04-2022](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/b/2b4048a438b3691576229b841c3694f8c3d516c5.png)

---

<div class="post-metadata">

**Author:** ![sivin.sivov](https://avatars.discourse-cdn.com/v4/letter/s/977dab/32.png) [@sivin.sivov](https://forum.dynamobim.com/u/sivin.sivov)\
**Post date:** [May 2, 2022, 7:13am UTC](https://forum.dynamobim.com/t/list-filterbyboolmask-does-not-work-does-not-process-all-elements-from-lists/75991/7 "2022-05-02T07:13:55Z")

</div>

Flattens gives some clarity of the lists, but the problem comes before it. The “==” Node does not give me correct values. for exmaple element 9 and 11 FVR.

 ![help 5](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/6/6623ac02911ce8327829e522ae2e7fb0444dac62.png)  
 ![help 5 2](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/c/6cc67a80a10348e8c104130e543d6677862d36d4.png)

---

<div class="post-metadata">

**Author:** ![jw.vanasselt](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jw.vanasselt/32/133533_2.png) [@jw.vanasselt](https://forum.dynamobim.com/u/jw.vanasselt)\
**Post date:** [May 2, 2022, 7:19am UTC](https://forum.dynamobim.com/t/list-filterbyboolmask-does-not-work-does-not-process-all-elements-from-lists/75991/8 "2022-05-02T07:19:12Z")

</div>

@sivin.sivov

> [@sivin.sivov](#):
>
> for exmaple element 9 and 11 FVR.

This is a lacing problem. You ask to check 7 values and you’re lacing is auto.  
What you want is check you’re 7 values in you’re element values (43), you need to use the cross lacing for that or play with levels. And use an anytrue after that.

---

<div class="post-metadata">

**Author:** ![sivin.sivov](https://avatars.discourse-cdn.com/v4/letter/s/977dab/32.png) [@sivin.sivov](https://forum.dynamobim.com/u/sivin.sivov)\
**Post date:** [May 2, 2022, 9:04am UTC](https://forum.dynamobim.com/t/list-filterbyboolmask-does-not-work-does-not-process-all-elements-from-lists/75991/9 "2022-05-02T09:04:21Z")

</div>

Thanks for that. It was a lacing problem. I’ve apparently forgotten those basics. I’ll go through the primer again. I’m a step forward but my filter still doesn’t give me the true values.

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

---

<div class="post-metadata">

**Author:** ![jw.vanasselt](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jw.vanasselt/32/133533_2.png) [@jw.vanasselt](https://forum.dynamobim.com/u/jw.vanasselt)\
**Post date:** [May 2, 2022, 9:05am UTC](https://forum.dynamobim.com/t/list-filterbyboolmask-does-not-work-does-not-process-all-elements-from-lists/75991/10 "2022-05-02T09:05:54Z")

</div>

Change List.AnyTrue to **@L2**

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/5/753ea138abe1db9b865c14109d8096f7969fd94c.png)

---

<div class="post-metadata">

**Author:** ![sivin.sivov](https://avatars.discourse-cdn.com/v4/letter/s/977dab/32.png) [@sivin.sivov](https://forum.dynamobim.com/u/sivin.sivov)\
**Post date:** [May 2, 2022, 11:45am UTC](https://forum.dynamobim.com/t/list-filterbyboolmask-does-not-work-does-not-process-all-elements-from-lists/75991/11 "2022-05-02T11:45:05Z")

</div>

Alrigh I fixed that up too but now it gives out all of the elements in the “In” output of List.FilterByBoolMask. == is set to cross product. For some reason it does not separate them by the abbreviation and just places a revision cloud on all elements from the original list.

 ![help 7](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/1/31f78d4272eb33bf2a543eb5ede03e49d8a98ad0.png)

---

<div class="post-metadata">

**Author:** ![jw.vanasselt](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jw.vanasselt/32/133533_2.png) [@jw.vanasselt](https://forum.dynamobim.com/u/jw.vanasselt)\
**Post date:** [May 2, 2022, 11:56am UTC](https://forum.dynamobim.com/t/list-filterbyboolmask-does-not-work-does-not-process-all-elements-from-lists/75991/12 "2022-05-02T11:56:36Z")

</div>

I can’t read you’re nodes. please zoom in and use this camerabutton:

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

---

<div class="post-metadata">

**Author:** ![sivin.sivov](https://avatars.discourse-cdn.com/v4/letter/s/977dab/32.png) [@sivin.sivov](https://forum.dynamobim.com/u/sivin.sivov)\
**Post date:** [May 2, 2022, 12:01pm UTC](https://forum.dynamobim.com/t/list-filterbyboolmask-does-not-work-does-not-process-all-elements-from-lists/75991/13 "2022-05-02T12:01:09Z")

</div>

Previous post updated.  
I really appreciate that you are spending time dealing with my noob issues.  
Thanks

---

<div class="post-metadata">

**Author:** ![jw.vanasselt](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jw.vanasselt/32/133533_2.png) [@jw.vanasselt](https://forum.dynamobim.com/u/jw.vanasselt)\
**Post date:** [May 2, 2022, 12:32pm UTC](https://forum.dynamobim.com/t/list-filterbyboolmask-does-not-work-does-not-process-all-elements-from-lists/75991/14 "2022-05-02T12:32:55Z")

</div>

I need some outputs, pls send you’re script and a sample file of rvt.

---

<div class="post-metadata">

**Author:** ![sivin.sivov](https://avatars.discourse-cdn.com/v4/letter/s/977dab/32.png) [@sivin.sivov](https://forum.dynamobim.com/u/sivin.sivov)\
**Post date:** [May 2, 2022, 1:10pm UTC](https://forum.dynamobim.com/t/list-filterbyboolmask-does-not-work-does-not-process-all-elements-from-lists/75991/15 "2022-05-02T13:10:41Z")

</div>

Here’s the script and the link model with the pipes. I letf only the “Varme” pipes on the 3rd floor for building 1244 (the one I was running the script above in the previous attempts).

> **[Automatic revision couds test 02052022.dyn and 1 more file](https://wetransfer.com/downloads/7b4e9dc3e01b5e0b3a016ce4dac0663f20220502130858/8aa38c)**
>
> 2 files sent via WeTransfer, the simplest way to send your files around the world

---

<div class="post-metadata">

**Author:** ![jw.vanasselt](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jw.vanasselt/32/133533_2.png) [@jw.vanasselt](https://forum.dynamobim.com/u/jw.vanasselt)\
**Post date:** [May 2, 2022, 2:05pm UTC](https://forum.dynamobim.com/t/list-filterbyboolmask-does-not-work-does-not-process-all-elements-from-lists/75991/16 "2022-05-02T14:05:35Z")

</div>

Do you have the linked file too?  
I can take a look tomorrow, please use my name as tag.

You need to play with the levels in list any try. you receive 7 items but you need 43 items.  
Maybe you can use a list.flatten at longest and play after that with the list.anytrue (guess @L2)

---

<div class="post-metadata">

**Author:** ![jw.vanasselt](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jw.vanasselt/32/133533_2.png) [@jw.vanasselt](https://forum.dynamobim.com/u/jw.vanasselt)\
**Post date:** [May 2, 2022, 2:30pm UTC](https://forum.dynamobim.com/t/list-filterbyboolmask-does-not-work-does-not-process-all-elements-from-lists/75991/17 "2022-05-02T14:30:53Z")

</div>

> [@sivin.sivov](#):
>
> noob issues.

We are all humans 😉

---

<div class="post-metadata">

**Author:** ![sivin.sivov](https://avatars.discourse-cdn.com/v4/letter/s/977dab/32.png) [@sivin.sivov](https://forum.dynamobim.com/u/sivin.sivov)\
**Post date:** [May 3, 2022, 5:19am UTC](https://forum.dynamobim.com/t/list-filterbyboolmask-does-not-work-does-not-process-all-elements-from-lists/75991/18 "2022-05-03T05:19:37Z")

</div>

In the wetransfer file is the script and the Linked file. You could make any new project and link it in. I could send a copy of the central file as well if needed?

---

<div class="post-metadata">

**Author:** ![jw.vanasselt](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jw.vanasselt/32/133533_2.png) [@jw.vanasselt](https://forum.dynamobim.com/u/jw.vanasselt)\
**Post date:** [May 3, 2022, 7:24am UTC](https://forum.dynamobim.com/t/list-filterbyboolmask-does-not-work-does-not-process-all-elements-from-lists/75991/19 "2022-05-03T07:24:15Z")

</div>

You call an other rvt link in your script… I dont have that file

---

<div class="post-metadata">

**Author:** ![sivin.sivov](https://avatars.discourse-cdn.com/v4/letter/s/977dab/32.png) [@sivin.sivov](https://forum.dynamobim.com/u/sivin.sivov)\
**Post date:** [May 3, 2022, 7:37am UTC](https://forum.dynamobim.com/t/list-filterbyboolmask-does-not-work-does-not-process-all-elements-from-lists/75991/20 "2022-05-03T07:37:17Z")

</div>

The link I’m getting the pipes from is with code block x[3], because I have linked an architectural model and a construction model aswell. The link file with the pipes im trying to get is the one that is in the wetransfer. You could make a new revit file and link in the model I’ve sent and set the codeblock to x[0]

ps: I’ve been playing with levels all mornig, still no sustainable outputs.

[Next page](https://forum.dynamobim.com/t/list-filterbyboolmask-does-not-work-does-not-process-all-elements-from-lists/75991.md?page=2)
