From 01bd70631f8e2f93f535e6e529c159f5b0082e8b Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Mon, 8 Jul 2019 19:10:00 -0300 Subject: [PATCH] Arch: Added message to inform user of workaround against non-editable wall baselines --- src/Mod/Arch/ArchWall.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Mod/Arch/ArchWall.py b/src/Mod/Arch/ArchWall.py index 1822b01ff1..b4311b6037 100644 --- a/src/Mod/Arch/ArchWall.py +++ b/src/Mod/Arch/ArchWall.py @@ -761,7 +761,10 @@ class _Wall(ArchComponent.Component): #print "modifying p2" obj.Base.End = p2 elif Draft.getType(obj.Base) == "Sketch": - obj.Base.movePoint(0,2,p2,0) + try: + obj.Base.movePoint(0,2,p2,0) + except: + print("Debug: The base sketch of this wall could not be changed, because the sketch has not been edited yet in this session (this is a bug in FreeCAD). Try entering and exiting edit mode in this sketch first, and then changing the wall length should work.") else: FreeCAD.Console.PrintError(translate("Arch","Error: Unable to modify the base object of this wall")+"\n") self.hideSubobjects(obj,prop)