# Filter internal wall surfaces

**URL:** <https://forum.dynamobim.com/t/filter-internal-wall-surfaces/3826>\
**Category:** Packages\
**Created:** [April 23, 2016, 5:44am UTC](https://forum.dynamobim.com/t/filter-internal-wall-surfaces/3826 "2016-04-23T05:44:37Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alejandro\_Mata](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alejandro_mata/32/17290_2.png) [@Alejandro\_Mata](https://forum.dynamobim.com/u/Alejandro_Mata)\
**Post date:** [April 23, 2016, 5:44am UTC](https://forum.dynamobim.com/t/filter-internal-wall-surfaces/3826/1 "2016-04-23T05:44:37Z")

</div>

Hi guys,

I’m trying to get the internal surfaces of a group of walls as a list.

My first approach was to use the node “SelectFaces” from revit and it worked great. However the problem is that you have to select manually one by one the surfaces that you want to get into dynamo and this is quite time consuming specially in large models. That’s why, I tried to use the node “Element.Faces” instead. As an output, I got all the surfaces of each wall but only I’m interested in getting the internal ones. Do you have any recommendations about how this approach could be done? So far, I’ve been checking the revit API and unfortunately the only property attached to surfaces is “IsValidObject” which I can’t use for anything in my case.

 ![Internal wall surfaces](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/9/90791f13be3a2f009dffcf5e01f2674bfb22d8ec.jpg) Thanks in advanced.

Kind regards,

Alejandro Mata

---

<div class="post-metadata">

**Author:** ![Vikram\_Subbaiah](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/vikram_subbaiah/32/50797_2.png) [@Vikram\_Subbaiah](https://forum.dynamobim.com/u/Vikram_Subbaiah)\
**Post date:** [April 23, 2016, 6:34am UTC](https://forum.dynamobim.com/t/filter-internal-wall-surfaces/3826/2 "2016-04-23T06:34:56Z")

</div>

If you can consider introducing a _Room_ the you could use the below workflow…

File: [WallInnerFace.dyn](http://dynamobim.org/wp-content/uploads/forum-assets/testingwaters/04/23/WallInnerFace.dyn)

![20160423-3](http://dynamobim.org/wp-content/uploads/forum-assets/testingwaters/04/23/20160423-3.png)

---

<div class="post-metadata">

**Author:** ![Alejandro\_Mata](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alejandro_mata/32/17290_2.png) [@Alejandro\_Mata](https://forum.dynamobim.com/u/Alejandro_Mata)\
**Post date:** [April 23, 2016, 10:33am UTC](https://forum.dynamobim.com/t/filter-internal-wall-surfaces/3826/3 "2016-04-23T10:33:36Z")

</div>

Hi Vikram,

Thanks a lot for your help. It worked great even though that it’s a little bit a work around. But workflows like this are required when revit api is not power full enough 🙂

Kind regards,

Alejandro Mata

 ![Room filtering solution](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/8/822a278578c37fdaf3dc1ac623e14850bd7f3960.jpg)

---

<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:** [April 23, 2016, 9:49pm UTC](https://forum.dynamobim.com/t/filter-internal-wall-surfaces/3826/4 "2016-04-23T21:49:55Z")

</div>

Hi Alejandro,

You can also look at the custom node “Surface.FilterByOrientation”.

 ![Untitled](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/d/d11dc87f2fd30cffc3255e292b46b1fa85c5fa61.png)

---

<div class="post-metadata">

**Author:** ![Alejandro\_Mata](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alejandro_mata/32/17290_2.png) [@Alejandro\_Mata](https://forum.dynamobim.com/u/Alejandro_Mata)\
**Post date:** [April 24, 2016, 4:54am UTC](https://forum.dynamobim.com/t/filter-internal-wall-surfaces/3826/5 "2016-04-24T04:54:09Z")

</div>

Hi Kulkul,

Thanks a lot. It’s really exciting to learn how to achieve the same approach in different ways with dynamo 🙂

I’ve taken your script to a step further for trying to get the internal faces of the walls with some openings. However I didn’t work as it was supposed.

 ![Kuljul1](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/e/ebd7b64a1e774a237111f32168828c73c87fc26d.jpg)

 ![Kuljul2](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/e/e246ea4707ba60f5b9c24908c82332260858bb94.jpg)

&nbsp;

As you can see the custom node “Surface.FilterByOrientation” works great. It filtered out all the vertical faces both external and internal faces of the walls and the side jamb faces as well. The challenge is coming afterwards to filter interior wall faces out propertly by using “List.FilterByBoolMask” node. As you can see the filtering is working a little bit weird.

Therefore I tried to combine your workflow with Vikram one. As you can see in this scenario with opening is working a little bit better than before. However, I didn’t manage to get rid off the side jambs in the opening.

 ![Kulkul3](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/1/100859a1dbc290d9a00132bac490e20199693676.jpg)

 ![Kulkul4](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/f/f7d77800287a99b04ce5c80ac07093b0f1932ee5.jpg)

Best regards,

Alejandro

---

<div class="post-metadata">

**Author:** ![Organon](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/organon/32/161404_2.png) [@Organon](https://forum.dynamobim.com/u/Organon)\
**Post date:** [April 24, 2016, 11:16am UTC](https://forum.dynamobim.com/t/filter-internal-wall-surfaces/3826/6 "2016-04-24T11:16:34Z")

</div>

![Room Faces](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/2X/9/9924bd59112eae15fa2ab4b817d306a30a68bd07.png)

---

<div class="post-metadata">

**Author:** ![Organon](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/organon/32/161404_2.png) [@Organon](https://forum.dynamobim.com/u/Organon)\
**Post date:** [April 26, 2016, 1:44am UTC](https://forum.dynamobim.com/t/filter-internal-wall-surfaces/3826/7 "2016-04-26T01:44:32Z")

</div>

![Room Faces](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/5/501766f293a7a3f8fd4b0bc033a96d8a77c62267.png)
