mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 18:16:40 +00:00
Minor fix to accommodate null descriptions and parents with no attributes
# Conflicts: # src/ifcopenshell-python/ifcopenshell/util/doc.py
This commit is contained in:
@@ -376,6 +376,7 @@ def get_decomposition(element):
|
||||
results.append(rel.RelatedBuildingElement)
|
||||
return results
|
||||
|
||||
|
||||
def get_grouped_by(element):
|
||||
"""
|
||||
Retrieves all subelements of an element based on the group.
|
||||
@@ -396,7 +397,8 @@ def get_grouped_by(element):
|
||||
queue.extend(rel.RelatedObjects)
|
||||
results.extend(rel.RelatedObjects)
|
||||
return results
|
||||
|
||||
|
||||
|
||||
def get_aggregate(element):
|
||||
"""
|
||||
Retrieves the aggregate of an element.
|
||||
|
||||
Reference in New Issue
Block a user