mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-23 08:52:43 +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):
|
def get_elements(ifc_file):
|
||||||
elements = set()
|
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))
|
elements.update(ifcopenshell.util.element.get_types(element_type))
|
||||||
return elements
|
return elements
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user