From d6479d055d4d7305b00703e155718ccc8df48652 Mon Sep 17 00:00:00 2001 From: Roy-043 <70520633+Roy-043@users.noreply.github.com> Date: Tue, 17 Feb 2026 18:27:20 +0100 Subject: [PATCH] BIM: change TD BIMView linecaps to square --- src/Mod/BIM/ArchSectionPlane.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/Mod/BIM/ArchSectionPlane.py b/src/Mod/BIM/ArchSectionPlane.py index cfc608093a..006a3ab78a 100644 --- a/src/Mod/BIM/ArchSectionPlane.py +++ b/src/Mod/BIM/ArchSectionPlane.py @@ -471,7 +471,11 @@ def getSVG( if vshapes: baseshape = Part.makeCompound(vshapes) - style = {"stroke": "SVGLINECOLOR", "stroke-width": "SVGLINEWIDTH"} + style = { + "stroke": "SVGLINECOLOR", + "stroke-linecap": "SVGLINECAP", + "stroke-width": "SVGLINEWIDTH", + } svgcache += TechDraw.projectToSVG( baseshape, direction, @@ -486,6 +490,7 @@ def getSVG( hshapes = Part.makeCompound(hshapes) style = { "stroke": "SVGLINECOLOR", + "stroke-linecap": "SVGLINECAP", "stroke-width": "SVGLINEWIDTH", "stroke-dasharray": "SVGHIDDENPATTERN", } @@ -522,7 +527,11 @@ def getSVG( ) svgcache += "\n" sshapes = Part.makeCompound(sshapes) - style = {"stroke": "SVGLINECOLOR", "stroke-width": "SVGCUTLINEWIDTH"} + style = { + "stroke": "SVGLINECOLOR", + "stroke-linecap": "SVGLINECAP", + "stroke-width": "SVGCUTLINEWIDTH", + } svgcache += TechDraw.projectToSVG( sshapes, direction, @@ -547,6 +556,7 @@ def getSVG( ] svgcache = svgcache.replace("SVGLINECOLOR", svgLineColor) + svgcache = svgcache.replace("SVGLINECAP", "square") svgcache = svgcache.replace("SVGLINEWIDTH", svgLineWidth) svgcache = svgcache.replace("SVGHIDDENPATTERN", svgHiddenPattern) svgcache = svgcache.replace("SVGCUTLINEWIDTH", svgCutLineWidth)