From 667e2548b0afd68a3965f49072b9f33f47ad26fe 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 9d20f030b9..1f9ab89d70 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)