mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 02:02:22 +00:00
Minor fix in IfcFM to derive occurrences from types (and make it easier to override)
This commit is contained in:
@@ -50,7 +50,7 @@ def get_element_types(ifc_file):
|
||||
|
||||
def get_elements(ifc_file):
|
||||
elements = set()
|
||||
for element_type in ifcopenshell.util.fm.get_fmhem_types(ifc_file):
|
||||
for element_type in get_element_types(ifc_file):
|
||||
elements.update(ifcopenshell.util.element.get_types(element_type))
|
||||
return elements
|
||||
|
||||
|
||||
Reference in New Issue
Block a user