Gross area calculation

Gross area calculation

dmitriQ6XQN
Contributor Contributor
805 Views
2 Replies
Message 1 of 3

Gross area calculation

dmitriQ6XQN
Contributor
Contributor

Dear Sirs,
Currently, I am working on a project, and to get the price estimation I need to get gross area of walls. Revit automatically excludes the area of openings - NETTO. Thus, I have created a simple script that allows getting the calculated gross area of walls plus openings.   Even though, it runs perfectly, the main issue that instead of showing the value in all walls, it appears to show only walls with openings and doesn`t show the same thing for walls without openings.
I wonder if it is possible to sort or filter walls that includes openings and then somehow display ones that do not contain it?
Through Dyno Browser I managed to run 2 different scripts, but at some point it`s just overwriting the value.

 

I look forward hearing from you soon.
Yours faithfully, 

Dmitri 


P.S I have attached some snips to get better view of what is going on.

0 Likes
Accepted solutions (2)
806 Views
2 Replies
Replies (2)
Message 2 of 3

jeremy_tammik
Alumni
Alumni
Accepted solution

Interesting question with numerous possible approaches.

 

Here are a few of them, discussed by The Building Coder:

 

 

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes
Message 3 of 3

dmitriQ6XQN
Contributor
Contributor
Accepted solution

Dear @jeremy_tammik ,
Thanks again for your time, I have managed to solve this problem by using Element.GetHostedElements. Previously, I was not so watchful and missed the right string. 

My appreciations!

Yours Sincerely, 
Dmitri

dmitriQ6XQN_0-1647240631896.png

 

0 Likes