Get Specific surface area from an element

Get Specific surface area from an element

Anonymous
Not applicable
2,262 Views
6 Replies
Message 1 of 7

Get Specific surface area from an element

Anonymous
Not applicable

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

0 Likes
Accepted solutions (2)
2,263 Views
6 Replies
Replies (6)
Message 2 of 7

jeremytammik
Autodesk
Autodesk

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

0 Likes
Message 3 of 7

Anonymous
Not applicable

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 

 

 

 

 

 

 

0 Likes
Message 4 of 7

Anonymous
Not applicable

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

0 Likes
Message 5 of 7

jeremytammik
Autodesk
Autodesk

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

Anonymous
Not applicable
Accepted solution

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?

0 Likes
Message 7 of 7

jeremytammik
Autodesk
Autodesk
Accepted solution

2 x yes.



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

0 Likes