Get the area of a wall plus the area of the wall openings

How can i get the area of the wall opening. What I need to do is get the area of the wall + the area of the opening
I tackeld the m2 of the wall, I picked the face of the wall x thickness.
The only thing left is plus the area of the opening

Is it sketch based opening or hosted Opening family?

it’s a hosted opening family

then you can get the hosted element and get its width & height property.

1 Like

it’s not possible to get the area only from this wall?

Element.Faces and List.MaximumItemByKey will get you the area of the wall for most walls.

For the opening elements like doors and windows the easiest method will be getting the hosted elements, filtering out categories you aren’t interested in, querying the area of the hosted elements and summing the result.

but the hosted opject is the front wall