Replies: 1 comment 2 replies
-
For the most part you could use this: https://github.com/IfcOpenShell/IfcOpenShell/blob/v0.7.0/src/ifcopenshell-python/ifcopenshell/util/element.py#L675 But it doesn't seem to include IFCRELVOIDSELEMENT IFCRELFILLSELEMENT (accessed by the inverses IfcFeatureElementSubtraction,VoidsElements IfcElement.FillsVoids) I think it would make a great extension to the get_container() function to include a |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'd like to parse a ifc file using ifcopenshell python library.
As far as I know, ifc uses relationships like IfcRelAggregates and IFCRELCONTAINEDINSPATIALSTRUCTURE to construct a hierarchy tree, what I want is for any entity_instance I get, I can get its location information like which IFCPROJECT/IFCSITE/IFCBUILDING/IFCBUILDINGSTOREY it locates.
And it seems that relationships like IFCRELVOIDSELEMENT and IFCRELFILLSELEMENT also should be taken into account.
Beta Was this translation helpful? Give feedback.
All reactions