mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user