# Obtain Element After Using a Boolean Filter

**URL:** <https://forum.dynamobim.com/t/obtain-element-after-using-a-boolean-filter/41651>\
**Category:** Revit\
**Tags:** revit, dynamo, list-filter\
**Created:** [October 10, 2019, 12:30pm UTC](https://forum.dynamobim.com/t/obtain-element-after-using-a-boolean-filter/41651 "2019-10-10T12:30:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![furkanyildiz](https://avatars.discourse-cdn.com/v4/letter/f/5f8ce5/32.png) [@furkanyildiz](https://forum.dynamobim.com/u/furkanyildiz)\
**Post date:** [October 10, 2019, 12:30pm UTC](https://forum.dynamobim.com/t/obtain-element-after-using-a-boolean-filter/41651/1 "2019-10-10T12:30:05Z")

</div>

Hello,

After I filtered the elements of a category using a certain parameter name, I have used element.byID to obtain the element and to use it to get other parameters. As you can see from the attached screenshot, I am unable to do so. Which node should I use to transform a list of ID’s to elements?

 ![ElementByID](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/7/77196db3d0a2ad80f61bc7dc478af354673d455f.png)

Best,

Hasan Furkan

---

<div class="post-metadata">

**Author:** ![Akli.baliche](https://avatars.discourse-cdn.com/v4/letter/a/9fc29f/32.png) [@Akli.baliche](https://forum.dynamobim.com/u/Akli.baliche)\
**Post date:** [October 10, 2019, 12:49pm UTC](https://forum.dynamobim.com/t/obtain-element-after-using-a-boolean-filter/41651/2 "2019-10-10T12:49:52Z")

</div>

I do not see the usefulness of element ID in your script

 ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/2/526f20b83b3c9ef4b178902144aa479314169517.png)

---

<div class="post-metadata">

**Author:** ![furkanyildiz](https://avatars.discourse-cdn.com/v4/letter/f/5f8ce5/32.png) [@furkanyildiz](https://forum.dynamobim.com/u/furkanyildiz)\
**Post date:** [October 12, 2019, 2:45pm UTC](https://forum.dynamobim.com/t/obtain-element-after-using-a-boolean-filter/41651/3 "2019-10-12T14:45:53Z")

</div>

Thank you Akli. Now I do not see the usefulness as well.

---

<div class="post-metadata">

**Author:** ![SeanP](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/seanp/32/42560_2.png) [@SeanP](https://forum.dynamobim.com/u/SeanP)\
**Post date:** [October 12, 2019, 4:39pm UTC](https://forum.dynamobim.com/t/obtain-element-after-using-a-boolean-filter/41651/4 "2019-10-12T16:39:39Z")

</div>

I don’t think you need the Cross Product lacing either since the lists are the same length.

---

<div class="post-metadata">

**Author:** ![Marcel\_Rijsmus](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/marcel_rijsmus/32/8539_2.png) [@Marcel\_Rijsmus](https://forum.dynamobim.com/u/Marcel_Rijsmus)\
**Post date:** [October 12, 2019, 6:32pm UTC](https://forum.dynamobim.com/t/obtain-element-after-using-a-boolean-filter/41651/5 "2019-10-12T18:32:06Z")

</div>

in a code block  
ElementSelectorBy.Id(Id,true)

---

<div class="post-metadata">

**Author:** ![yessicabarbosa](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/yessicabarbosa/32/82689_2.png) [@yessicabarbosa](https://forum.dynamobim.com/u/yessicabarbosa)\
**Post date:** [October 13, 2019, 10:04am UTC](https://forum.dynamobim.com/t/obtain-element-after-using-a-boolean-filter/41651/6 "2019-10-13T10:04:50Z")

</div>

You can try the following two options:

1. try Use String.Contains Node and after the FilterByBoolMask delete yout flatten node

2. If you don’t need the Id Element, you can obtain directly the element with the FilterByBoolMask Node

 ![Select_ByElementId](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/5/d5443d048ec565095e34da1c6bcfe27be770c565.png)  
I hope either of these two options can solve your problem!
