From 0680ca95e235bd13140c30d7a76f7fca48647cc5 Mon Sep 17 00:00:00 2001 From: alafr Date: Thu, 13 Feb 2020 08:00:22 +0100 Subject: [PATCH] Fix use of Sketch as a Base for Arch Structure extruded along a Tool See: https://forum.freecadweb.org/viewtopic.php?f=23&t=43228 It fixes the following issue: Allow the use of sketches for Structure which follow a Tool. Currently, sketches are only accepted as structure Base when there is no Tool set. If I select the sketch and press the Structure button, the structure is computed correctly. But when I set the Tool property, the message "Structure has no solid" is reported and the Structure is not updated. --- src/Mod/Arch/ArchStructure.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Arch/ArchStructure.py b/src/Mod/Arch/ArchStructure.py index 4a5f09e954..32fc97823e 100644 --- a/src/Mod/Arch/ArchStructure.py +++ b/src/Mod/Arch/ArchStructure.py @@ -672,7 +672,7 @@ class _Structure(ArchComponent.Component): extv = pla[0].Rotation.multVec(evi) if obj.Tool: try: - shi = obj.Tool.Shape.copy().makePipe(obj.Base.Shape.copy()) + shi = obj.Tool.Shape.copy().makePipe(shi) except Part.OCCError: FreeCAD.Console.PrintError(translate("Arch","Error: The base shape couldn't be extruded along this tool object")+"\n") return