From 0cf6c7d61b59f407464cca29228e082be86ac04c Mon Sep 17 00:00:00 2001 From: Roy-043 <70520633+Roy-043@users.noreply.github.com> Date: Fri, 10 Jun 2022 22:32:45 +0200 Subject: [PATCH] Arch: ArchSectionPlane always showed plan symbols of windows --- src/Mod/Arch/ArchSectionPlane.py | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/src/Mod/Arch/ArchSectionPlane.py b/src/Mod/Arch/ArchSectionPlane.py index 89e48edf79..4b3df7f610 100644 --- a/src/Mod/Arch/ArchSectionPlane.py +++ b/src/Mod/Arch/ArchSectionPlane.py @@ -583,20 +583,15 @@ def getSVG(source, if windows: sh = [] for w in windows: - wlo = w.getLinkedObject() # To support Link of Windows(Doors) - if not hasattr(wlo.Proxy,"sshapes"): - wlo.Proxy.execute(wlo) - if hasattr(wlo.Proxy,"sshapes"): - if wlo.Proxy.sshapes and (w.Name in cutwindows): - c = Part.makeCompound(wlo.Proxy.sshapes) - c.Placement = w.Placement - sh.append(c) - # buggy for now... - #if hasattr(w.Proxy,"vshapes"): - # if w.Proxy.vshapes: - # c = Part.makeCompound(w.Proxy.vshapes) - # c.Placement = w.Placement - # sh.append(c) + if w.Name in cutwindows: + wlo = w.getLinkedObject() # To support Link of Windows(Doors) + if hasattr(wlo, "SymbolPlan") and wlo.SymbolPlan: + if not hasattr(wlo.Proxy, "sshapes"): + wlo.Proxy.execute(wlo) + if hasattr(wlo.Proxy, "sshapes") and wlo.Proxy.sshapes: + c = Part.makeCompound(wlo.Proxy.sshapes) + c.Placement = w.Placement + sh.append(c) if sh: if not techdraw: svg += ''