Distributoren werden wieder an richtigen Punkt von Kabel geschrieben

This commit is contained in:
2025-06-30 16:49:04 +02:00
parent e5ca9561dd
commit affc98d907
+2 -2
View File
@@ -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)