Surface and volum of an element

Surface and volum of an element

Anonymous
Not applicable
800 Views
2 Replies
Message 1 of 3

Surface and volum of an element

Anonymous
Not applicable

Hi everybody,

 

I need to get the surface and volum of an irregular element using the list of solids of its geometry. The doubt that I have, if an element whose geometry is done for various solids, an overlap of it can happen.

 

If there is overlap, the volum, as the plus the volum of its solids, would be wrong, but if there is not, it would be a good solution when we don't have a property for it.

 

And for the surface, if there aren't overlap, al least there would be contacts surface which would not be plus. There is some way to find only the outer surface of the geometry.

 

Thanks,

 

Javi

 

 

0 Likes
801 Views
2 Replies
Replies (2)
Message 2 of 3

jeremytammik
Autodesk
Autodesk

Dear Javi,

 

I should think so.

 

Using just the Revit API, I think you can retrieve the solids and create a union of them all via ExecuteBooleanOperation:

 

http://www.revitapidocs.com/2018.1/89cb7975-cc76-65ba-b996-bcb78d12161a.htm

 

With that one solid in hand, query its SurfaceArea and Volume properties:

 

http://www.revitapidocs.com/2018.1/16498219-5449-68e0-1438-8467f4b0fa38.htm

 

Cheers,

 

Jeremy



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

0 Likes
Message 3 of 3

Anonymous
Not applicable

Hi Jeremy,

 

Thanks for your answer. The idea to use "ExecuteBooleanOperation" is useful for me,  because you get a solid, and that I was trying to find out.

 

Thanks again,

 

Javi

 

 

0 Likes