From f07857e8dc59adccd8e4a7495d05045805a697be Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Tue, 28 May 2024 09:51:52 +0200 Subject: [PATCH] BIM: Fixed wall paramerers - fixes #14283 (#14315) --- src/Mod/BIM/bimcommands/BimWall.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Mod/BIM/bimcommands/BimWall.py b/src/Mod/BIM/bimcommands/BimWall.py index c3dc4bad7a..aa654e2b95 100644 --- a/src/Mod/BIM/bimcommands/BimWall.py +++ b/src/Mod/BIM/bimcommands/BimWall.py @@ -362,12 +362,16 @@ class Arch_Wall: def setLength(self,d): """Simple callback for the interactive mode gui widget to set length.""" + if isinstance(d, FreeCAD.Units.Quantity): + d = d.Value self.lengthValue = d def setWidth(self,d): """Simple callback for the interactive mode gui widget to set width.""" from draftutils import params + if isinstance(d, FreeCAD.Units.Quantity): + d = d.Value self.Width = d self.tracker.width(d) params.set_param_arch("WallWidth",d) @@ -377,6 +381,8 @@ class Arch_Wall: """Simple callback for the interactive mode gui widget to set height.""" from draftutils import params + if isinstance(d, FreeCAD.Units.Quantity): + d = d.Value self.Height = d self.tracker.height(d) params.set_param_arch("WallHeight",d)