Skip to content

Need Assistance in Retrieving Parent GUIDs for IfcTypeObject Entities in IFC4 File Parsing Scrip and creating Hierarchy as first parent being IFCObject entity than IfcTypeObject and them instance while parsing the IFC 4 #3664

Answered by Moult
ashi7upt asked this question in Q&A
Discussion options

You must be logged in to vote

The building storey is a container of the door. You can get it by doing ifcopenshell.util.element.get_container(door). Alternatively you can get all doors in the container by doing ifcopenshell.util.element.get_decomposition(storey).

The door is a single occurrence (Revit would call it an instance) of the door type. You can get the door type from a single occurrence by doing ifcopenshell.util.element.get_type(door). Inversely, you can get all occurrences of a door type by doing ifcopenshell.util.element.get_types(door_type).

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ashi7upt
Comment options

@Moult
Comment options

Answer selected by ashi7upt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants