mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 23:36:20 +00:00
Minor fix to loading nested ports
This commit is contained in:
@@ -1675,7 +1675,7 @@ class IfcImporter:
|
|||||||
elif getattr(element, "Decomposes", None):
|
elif getattr(element, "Decomposes", None):
|
||||||
aggregate = ifcopenshell.util.element.get_aggregate(element)
|
aggregate = ifcopenshell.util.element.get_aggregate(element)
|
||||||
return self.collections[aggregate.GlobalId].objects.link(obj)
|
return self.collections[aggregate.GlobalId].objects.link(obj)
|
||||||
elif getattr(element, "Nests", None):
|
elif getattr(element, "Nests", None) and not element.is_a("IfcPort"):
|
||||||
nest = ifcopenshell.util.element.get_nest(element)
|
nest = ifcopenshell.util.element.get_nest(element)
|
||||||
return self.collections[nest.GlobalId].objects.link(obj)
|
return self.collections[nest.GlobalId].objects.link(obj)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user