From 19fd2c3195bc2a6f183b852da408b511055e011c Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Sun, 20 Dec 2015 12:41:25 -0200 Subject: [PATCH] Arch: set the Lenght property of walls automatically when based on baselines --- src/Mod/Arch/ArchWall.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Mod/Arch/ArchWall.py b/src/Mod/Arch/ArchWall.py index 9d20f030b..1f9ab89d7 100644 --- a/src/Mod/Arch/ArchWall.py +++ b/src/Mod/Arch/ArchWall.py @@ -466,6 +466,12 @@ class _Wall(ArchComponent.Component): base = obj.Base.Shape.copy() elif obj.Base.Shape.Edges: # case 3: the base is flat, we need to extrude it + if not obj.Base.Shape.Faces: + # set the length property + if hasattr(obj.Base.Shape,"Length"): + l = obj.Base.Shape.Length + if obj.Length != l: + obj.Length = l profiles = self.getProfiles(obj) if profiles: normal.multiply(height)