mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
Fix bug where you could add a filling twice or to multiple openings.
This commit is contained in:
@@ -9,6 +9,13 @@ class Usecase:
|
||||
self.settings[key] = value
|
||||
|
||||
def execute(self):
|
||||
fills_voids = self.settings["element"].FillsVoids
|
||||
|
||||
if fills_voids:
|
||||
if fills_voids[0].RelatingOpeningElement == self.settings["opening"]:
|
||||
return
|
||||
self.file.remove(fills_voids[0])
|
||||
|
||||
self.file.create_entity(
|
||||
"IfcRelFillsElement",
|
||||
**{
|
||||
|
||||
Reference in New Issue
Block a user