BIM: Fixed wall paramerers - fixes #14283 (#14315)

This commit is contained in:
Yorik van Havre
2024-05-28 09:51:52 +02:00
committed by GitHub
parent 524b106ea8
commit f07857e8dc

View File

@@ -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)