Fix bug where copying a type also copied its type relations which is invalid.

This commit is contained in:
Dion Moult
2021-10-26 20:51:27 +11:00
parent ee308d294f
commit 3406c23f98
8 changed files with 66 additions and 30 deletions
@@ -31,6 +31,8 @@ class Usecase:
continue
elif inverse.is_a("IfcRelContainedInSpatialStructure") and inverse.RelatingStructure == from_element:
continue
elif inverse.is_a("IfcRelDefinesByType") and inverse.RelatingType == from_element:
continue
elif inverse.is_a("IfcRelFillsElement"):
continue
elif inverse.is_a("IfcRelAssociatesMaterial") and "Usage" in inverse.RelatingMaterial.is_a():