Fix bug in ExtractElements recipe adding a lot unrelated products

if you'd add a type product and it had material that were used in bunch of ther products
example - https://community.osarch.org/discussion/1965/error-extracting-ifcslab-or-ifccolumn
This commit is contained in:
Andrej730
2024-02-14 14:15:02 +05:00
parent 8a48769760
commit a33a1700dc
2 changed files with 21 additions and 0 deletions
@@ -261,6 +261,8 @@ class Usecase:
return True
elif self.target_class == "IfcProduct" and element.is_a("IfcTypeProduct"):
return True
elif self.target_class == "IfcTypeProduct" and element.is_a("IfcProduct"):
return True
return False
def reuse_existing_contexts(self):