# Filtering only EXT walls by python!

**URL:** <https://forum.dynamobim.com/t/filtering-only-ext-walls-by-python/53112>\
**Category:** Revit\
**Tags:** revit, python\
**Created:** [July 19, 2020, 6:41am UTC](https://forum.dynamobim.com/t/filtering-only-ext-walls-by-python/53112 "2020-07-19T06:41:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sajjadbakhshiArch](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sajjadbakhshiarch/32/98334_2.png) [@sajjadbakhshiArch](https://forum.dynamobim.com/u/sajjadbakhshiArch)\
**Post date:** [July 19, 2020, 6:41am UTC](https://forum.dynamobim.com/t/filtering-only-ext-walls-by-python/53112/1 "2020-07-19T06:41:57Z")

</div>

More precisely, I want to know how can i use Python to output all the walls in WallType node except the interior partitions !

 ![wall filtering](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/d/ed7b3058a40d52a31d371bb0b4afd1af3dcbf639.png)

---

<div class="post-metadata">

**Author:** ![Paolo\_Emilio\_Serra1](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/paolo_emilio_serra1/32/12902_2.png) [@Paolo\_Emilio\_Serra1](https://forum.dynamobim.com/u/Paolo_Emilio_Serra1)\
**Post date:** [July 19, 2020, 7:53am UTC](https://forum.dynamobim.com/t/filtering-only-ext-walls-by-python/53112/2 "2020-07-19T07:53:02Z")

</div>

you don’t need Python, you can filter for the Function parameter and take only those that have a value equal to 1.

See reference  
[https://www.revitapidocs.com/2020/ccafc685-892f-511b-1db6-e7bf1116268d.htm](https://www.revitapidocs.com/2020/ccafc685-892f-511b-1db6-e7bf1116268d.htm)

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

If you want to use Python:

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

---

<div class="post-metadata">

**Author:** ![sajjadbakhshiArch](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sajjadbakhshiarch/32/98334_2.png) [@sajjadbakhshiArch](https://forum.dynamobim.com/u/sajjadbakhshiArch)\
**Post date:** [July 20, 2020, 5:33am UTC](https://forum.dynamobim.com/t/filtering-only-ext-walls-by-python/53112/3 "2020-07-20T05:33:18Z")

</div>

Wow this is awesome, thank you sooo much 😍
