Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Gross area calculation

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
dmitriQ6XQN
546 Views, 2 Replies

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

Gross area calculation

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.

2 REPLIES 2
Message 2 of 3
jeremy_tammik
in reply to: dmitriQ6XQN

jeremy_tammik
Autodesk
Autodesk
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

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
Message 3 of 3
dmitriQ6XQN
in reply to: jeremy_tammik

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

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

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report