ifcopenshell.api.type.get_related_objects
#
Module Contents#
- class ifcopenshell.api.type.get_related_objects.Usecase(file, related_object=None, relating_type=None)#
Gets all the related occurrences of a type
Do not use this function. It will be removed. Use ifcopenshell.util.element.get_type or ifcopenshell.util.element.get_types instead.
- Parameters
related_object (ifcopenshell.entity_instance.entity_instance) – The IfcElement occurrence.
relating_type (ifcopenshell.entity_instance.entity_instance) – The IfcElementType type.
- Returns
A list of occurrences of the type.
- Return type
- execute(self)#