Hi, I am trying to extract the volume (and ideally area) of all ifcElements from my model. For ifcElements that don't consist of multiple parts this is going rather well with the get_psets() function, however this does not provide any information on volume of IfcBuildingElementPart components. That means I can extract a volume of an entire composite wall, but I cannot get the volume of each individual sub-part.
Is there a way to obtain these quantities with ifcopenshell?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, I am trying to extract the volume (and ideally area) of all ifcElements from my model. For ifcElements that don't consist of multiple parts this is going rather well with the get_psets() function, however this does not provide any information on volume of IfcBuildingElementPart components. That means I can extract a volume of an entire composite wall, but I cannot get the volume of each individual sub-part.
Is there a way to obtain these quantities with ifcopenshell?
At the very bottom there is PythonOCC code for calculating volume https://academy.ifcopenshell.org/posts/using-ifcopenshell-and-pythonocc-to-construct-new-geometry/ off of IFC element shapes provided by ifcopenshell
Thanks a lot Thomas - this is great.