From affc98d907b4bfa2fb34d64b4b65816fe0f8a537 Mon Sep 17 00:00:00 2001 From: lertlmaier Date: Mon, 30 Jun 2025 16:49:04 +0200 Subject: [PATCH] Distributoren werden wieder an richtigen Punkt von Kabel geschrieben --- lib/drawdxf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/drawdxf.py b/lib/drawdxf.py index 314af8c..1ccbf76 100644 --- a/lib/drawdxf.py +++ b/lib/drawdxf.py @@ -172,7 +172,7 @@ def draw_subdists(plines, doc): subdist_positions = set() for pl in plines.kabel: - pt1 = pl.coords[0] # Startposition = UV-Position + pt1 = pl.coords[1] # Startposition = UV-Position pos = (pt1.x, pt1.y) if pos in subdist_positions: @@ -181,7 +181,7 @@ def draw_subdists(plines, doc): subdist_name = pl.id.split('-')[0] - pt2 = pl.coords[1] + pt2 = pl.coords[0] placement_info = _calculate_text_placement(pt1, pt2, 'subdist') text = msp.add_text(subdist_name, dxfattribs=dxfattribs_subdists)