mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 17:58:20 +00:00
Fix #2296. Bug where material and profile psets couldn't be removed.
This commit is contained in:
@@ -41,6 +41,8 @@ class Usecase:
|
||||
properties = self.settings["pset"].HasProperties or []
|
||||
elif self.settings["pset"].is_a("IfcQuantitySet"):
|
||||
properties = self.settings["pset"].Quantities or []
|
||||
elif self.settings["pset"].is_a() in ("IfcMaterialProperties", "IfcProfileProperties"):
|
||||
properties = self.settings["pset"].Properties or []
|
||||
for prop in properties:
|
||||
self.file.remove(prop)
|
||||
self.file.remove(self.settings["pset"])
|
||||
|
||||
Reference in New Issue
Block a user