Flatten all walls faces visible in view to collect area

Hi all

I am working on problem statement wherein I have building elevations and I have to pull up the wall faces perpendicular to the view plane and collect a cumulative area for each wall type.

The major issue I am facing is the AllElementsOfCategoryInView node collects all the walls that come in the view’s far clip offset.

Has anyone worked on similar kind of problem?

Thanks in advance

I’d start with the all elements of category in view.

Then filter out types which you don’t care about - i.e. if you’re working on exterior walls filter out interior partitions.

Then extract all the surfaces of the walls with Element.Faces and flatten the list.

Then filter out faces which have a normal that isn’t 180 degrees from the view’s facing direction.

Then sum the area of the remaining surfaces.