I am trying to get the area of wall faces inside Python script.
The input for Python node are all walls instances selected by Dynamo nodes.
In Python script I retrieve geometry (solids) of each wall instance.
Then I get faces of each solid.
What I want to do is get the area of each face of each wall.
However, I keep getting an error: ‘Face’ object has no attribute ‘Area’.
Revit API states that the Face class has an “Area” property, so I don’t know what I’m doing wrong here.
I would appreciate any help a lot.
import clr clr.AddReference('ProtoGeometry') from Autodesk.DesignScript.Geometry import * clr.AddReference("RevitNodes") import Revit clr.ImportExtensions(Revit.Elements) clr.ImportExtensions(Revit.GeometryConversion) clr.AddReference('RevitAPI') import Autodesk from Autodesk.Revit.DB import * from Revit.Elements import * clr.AddReference("RevitServices") import RevitServices from RevitServices.Persistence import DocumentManager from RevitServices.Transactions import TransactionManager from System.Collections.Generic import * import sys doc = DocumentManager.Instance.CurrentDBDocument uiapp = DocumentManager.Instance.CurrentUIApplication app = uiapp.Application adoc = doc.ActiveView wallsWrapped = IN OUT =  wallsGeometry =  wallFaces =  wallFacesAreas =  for w in wallsWrapped: wallsGeometry.append(w.Geometry()) for i in wallsGeometry: wallFaces = i.Faces for singleFace in wallFaces: wallFacesAreas.append(singleFace.Area) OUT = wallFaces, wallFacesAreas