From 962e04b0901198710165107e63b5cade48cded8b Mon Sep 17 00:00:00 2001 From: Bernd Hahnebach Date: Fri, 26 Apr 2019 09:09:32 +0200 Subject: [PATCH] Arch: rebar, make it possible to create a rebar without existence of a Structure --- src/Mod/Arch/ArchRebar.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Mod/Arch/ArchRebar.py b/src/Mod/Arch/ArchRebar.py index d34824e87f..07f3e31b86 100644 --- a/src/Mod/Arch/ArchRebar.py +++ b/src/Mod/Arch/ArchRebar.py @@ -76,6 +76,12 @@ def makeRebar(baseobj=None,sketch=None,diameter=None,amount=1,offset=None,name=" if FreeCAD.GuiUp: sketch.ViewObject.hide() obj.Host = baseobj + elif sketch and not baseobj: + # a rebar could be based on a wire without the existance of a Structure + obj.Base = sketch + if FreeCAD.GuiUp: + sketch.ViewObject.hide() + obj.Host = None if diameter: obj.Diameter = diameter else: