# 'Wall' object has no attribute 'Faces'

**URL:** <https://forum.dynamobim.com/t/wall-object-has-no-attribute-faces/97180>\
**Category:** Uncategorized\
**Created:** [January 16, 2024, 8:40am UTC](https://forum.dynamobim.com/t/wall-object-has-no-attribute-faces/97180 "2024-01-16T08:40:50Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![semih.topcu94](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/semih.topcu94/32/175207_2.png) [@semih.topcu94](https://forum.dynamobim.com/u/semih.topcu94)\
**Post date:** [January 16, 2024, 8:40am UTC](https://forum.dynamobim.com/t/wall-object-has-no-attribute-faces/97180/1 "2024-01-16T08:40:50Z")

</div>

Hello. I am new to using revit api in python. One of the points I do not understand is that the walls I list with Filtered Element Collector do not have Faces attribute. But the walls I listed from Dynamo have the Faces attribute. Both wall\_element\_lists have the same IDs. Can you help me?

```auto
# Load the Python Standard and DesignScript Libraries
import math
import clr
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *

clr.AddReference("RevitNodes")
import Revit
clr.ImportExtensions(Revit.Elements)
clr.ImportExtensions(Revit.GeometryConversion)

clr.AddReference('ProtoGeometry')
import Autodesk.DesignScript.Geometry as DSG

clr.AddReference("RevitServices")
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
doc = DocumentManager.Instance.CurrentDBDocument

# The inputs to this node will be stored as a list in the IN variables.
dataEnteringNode = IN

# Place your code below this line
all_wall_element_list = FilteredElementCollector(doc).OfCategory(BuiltInCategory.OST_Walls).WhereElementIsNotElementType().ToElements()
wall_element_list = []
for wall_element in all_wall_element_list:
    if getattr(wall_element, "CurtainGrid", None) == None:
        wall_element_list.append(wall_element)

faces_list = [wall.Faces for wall in wall_element_list]

# Assign your output to the OUT variable.
OUT = faces_list

```

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

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [January 16, 2024, 9:50am UTC](https://forum.dynamobim.com/t/wall-object-has-no-attribute-faces/97180/2 "2024-01-16T09:50:20Z")

</div>

The “Faces” attribute is associated to the Dynamo object, not the Revit one.

The content gathered with a filtered element collector is pulled as a Revit element, while the content gathered by a AllElementsOfCategory node is a Dynamo reference to a Revit Element. The former is direct access to the full Revit API, while the later is just what Dynamo has a wrapper for - be they indirect Revit API calls or Dynamo specific API calls. Element.Faces is a Dynamo specific one, and as such is not available on the native Revit API.

Look into the getting the geometry in the native Revit API if you want to use the filtered element collector, as shown here: [Geometry Property](https://www.revitapidocs.com/2024/d8a55a5b-2a69-d5ab-3e1f-6cf1ee43c8ec.htm)

Note that you’ll have to extract the surfaces from the solid once attained.

---

<div class="post-metadata">

**Author:** ![semih.topcu94](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/semih.topcu94/32/175207_2.png) [@semih.topcu94](https://forum.dynamobim.com/u/semih.topcu94)\
**Post date:** [January 16, 2024, 11:50am UTC](https://forum.dynamobim.com/t/wall-object-has-no-attribute-faces/97180/3 "2024-01-16T11:50:09Z")

</div>

Thank you for the explanation. I only know the way to access the surfaces from the dynamo reference. Is there a way to wrap it to access the dynamo reference? Or is there a way to access all surfaces from the Revit reference? Sorry I’m trying to read the API but it seems a bit strange for me at the moment.

---

<div class="post-metadata">

**Author:** ![semih.topcu94](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/semih.topcu94/32/175207_2.png) [@semih.topcu94](https://forum.dynamobim.com/u/semih.topcu94)\
**Post date:** [January 16, 2024, 12:02pm UTC](https://forum.dynamobim.com/t/wall-object-has-no-attribute-faces/97180/4 "2024-01-16T12:02:07Z")

</div>

I found a way “ToDSType(element)”.

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [January 16, 2024, 5:55pm UTC](https://forum.dynamobim.com/t/wall-object-has-no-attribute-faces/97180/5 "2024-01-16T17:55:38Z")

</div>

Yes, that will work. Generally speaking g though you’re better off staying in the Revit API once you go there. You’re adding a new dependency and it’s a slow conversion. While it might not feel that way yet - trust me on this one the bouncing back and forth between libraries is a killer.

What have you tried in the Revit API context?

---

<div class="post-metadata">

**Author:** ![semih.topcu94](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/semih.topcu94/32/175207_2.png) [@semih.topcu94](https://forum.dynamobim.com/u/semih.topcu94)\
**Post date:** [January 17, 2024, 8:41pm UTC](https://forum.dynamobim.com/t/wall-object-has-no-attribute-faces/97180/6 "2024-01-17T20:41:29Z")

</div>

Thank you for explanation. I am using Filtered Element Collector, Room Boundary Segments, element parameter works. I have to use ProtoType() because I can’t do simple geometry operations like 3D Boolean operations, Element surfaces and Curve extrude.

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [January 17, 2024, 9:50pm UTC](https://forum.dynamobim.com/t/wall-object-has-no-attribute-faces/97180/7 "2024-01-17T21:50:31Z")

</div>

> [@semih.topcu94](#):
>
> 3D Boolean operations

Sure can - there is an entire class called BooleanOperationUtilities to help with this. [BooleanOperationsUtils Class](https://www.revitapidocs.com/2024/a7be98f3-9e8a-ee51-f46c-2479cb72c598.htm)

> [@semih.topcu94](#):
>
> Element surfaces

These are extracted from the solid in both the Dynamo node and the Revit API, Dynamo just hides a step. This is the Revit API call. [Faces Property](https://www.revitapidocs.com/2024/b45fa881-3077-409c-0ef1-5d42744e7429.htm)

> [@semih.topcu94](#):
>
> Curve extrude

Also doable: [CreateExtrusionGeometry Method (IList(CurveLoop), XYZ, Double)](https://www.revitapidocs.com/2024/2dd1de2f-b8fc-60d6-30d8-46810f79c3fc.htm)

Or maybe you want this: [CreateLoftGeometry Method](https://www.revitapidocs.com/2024/9f58eb60-84cb-4c6b-9b06-1df8007b12e0.htm)

Hard to see without seeing your code.

---

<div class="post-metadata">

**Author:** ![semih.topcu94](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/semih.topcu94/32/175207_2.png) [@semih.topcu94](https://forum.dynamobim.com/u/semih.topcu94)\
**Post date:** [January 18, 2024, 7:19am UTC](https://forum.dynamobim.com/t/wall-object-has-no-attribute-faces/97180/8 "2024-01-18T07:19:50Z")

</div>

these are great guides, thank you 🙂
