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: 

Get Specific surface area from an element

6 REPLIES 6
SOLVED
Reply
Message 1 of 7
jasonkhc
1434 Views, 6 Replies

Get Specific surface area from an element

hi,

 

i have an issue of getting specific surface area of the an element.

 

I have attached a screenshot for my reference for explaining the issue

I am able to get the side surface area of the column and now i can determine which elements are joining with the column.

And now I want to deduct the clashed/joined surface area of the beam and the floor (red highlighted Box)

However, the floor has 20 faces and this causes me that i cannot determine which surface area to get.  

Any idea on how i can achieve this? SurfaceArea.JPG

6 REPLIES 6
Message 2 of 7
jeremytammik
in reply to: jasonkhc

Dear Jasonkhc,

 

Query the element geometry just like you are doing now, and than use the Element.GetGeneratingElementIds method to determine where those small faces are coming from. I would expect the floor to be reported as the generating element:

 

 

I hope this helps.

 

Best regards,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Message 3 of 7
jasonkhc
in reply to: jeremytammik

GetGeneratingElementIds does not work to floor and column, and it is not really consistent when i use GetGeneratingElementIds.

 

I test it using beam and we can see it is not consistent like 

The first beam can detect all the columns and floor attached to it but the second only only can detect one column but not the other column

 

firstTest.png secondTest.png 

 

 

 

 

 

 

Message 4 of 7
jasonkhc
in reply to: jeremytammik

i try use the method FaceIntersectionFaceResult.. still cannot be done.. 

Message 5 of 7
jeremytammik
in reply to: jasonkhc

Then I suggest you explore the purely geometry based approaches I describe in the links above.

 

They seem to be garbled in my first answer, so I am adding them here again:

 

http://thebuildingcoder.typepad.com/blog/2011/07/top-faces-of-wall.html
http://thebuildingcoder.typepad.com/blog/2012/01/opening-geometry.html
http://thebuildingcoder.typepad.com/blog/2013/03/supporting-columns.html
http://thebuildingcoder.typepad.com/blog/2013/05/couchdb-implementation-and-github-repository.html

 

Best regards,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Message 6 of 7
jasonkhc
in reply to: jeremytammik

so revit do not provide the method to determine size of surface area of floor that is touches the column selected right?

 

we have to do manual calculation in the geometry right?

Message 7 of 7
jeremytammik
in reply to: jasonkhc

2 x yes.



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

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

Post to forums  

Autodesk DevCon in Munich May 28-29th


Rail Community