From bcff2ab97cb23bb5e9efbb31512ac02210c52a92 Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Wed, 9 Aug 2017 10:27:45 -0300 Subject: [PATCH] TechDraw: DraftView now renders Arch Rebars as wireframes --- src/Mod/Draft/Draft.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Mod/Draft/Draft.py b/src/Mod/Draft/Draft.py index e42b2e6596..64332e4ad6 100644 --- a/src/Mod/Draft/Draft.py +++ b/src/Mod/Draft/Draft.py @@ -2405,6 +2405,15 @@ def getSVG(obj,scale=1,linewidth=0.35,fontsize=12,fillstyle="shape color",direct if len(f.Edges) == 1: if isinstance(f.Edges[0].Curve,Part.Circle): svg += getCircle(f.Edges[0]) + + elif getType(obj) == "Rebar": + fill = "none" + lstyle = getLineStyle() + if obj.Proxy: + if not hasattr(obj.Proxy,"wires"): + obj.Proxy.execute(obj) + if hasattr(obj.Proxy,"wires"): + svg += getPath(wires=obj.Proxy.wires) elif getType(obj) == "PipeConnector": pass