Distributoren werden wieder an richtigen Punkt von Kabel geschrieben
This commit is contained in:
+2
-2
@@ -172,7 +172,7 @@ def draw_subdists(plines, doc):
|
|||||||
subdist_positions = set()
|
subdist_positions = set()
|
||||||
|
|
||||||
for pl in plines.kabel:
|
for pl in plines.kabel:
|
||||||
pt1 = pl.coords[0] # Startposition = UV-Position
|
pt1 = pl.coords[1] # Startposition = UV-Position
|
||||||
pos = (pt1.x, pt1.y)
|
pos = (pt1.x, pt1.y)
|
||||||
|
|
||||||
if pos in subdist_positions:
|
if pos in subdist_positions:
|
||||||
@@ -181,7 +181,7 @@ def draw_subdists(plines, doc):
|
|||||||
|
|
||||||
subdist_name = pl.id.split('-')[0]
|
subdist_name = pl.id.split('-')[0]
|
||||||
|
|
||||||
pt2 = pl.coords[1]
|
pt2 = pl.coords[0]
|
||||||
placement_info = _calculate_text_placement(pt1, pt2, 'subdist')
|
placement_info = _calculate_text_placement(pt1, pt2, 'subdist')
|
||||||
|
|
||||||
text = msp.add_text(subdist_name, dxfattribs=dxfattribs_subdists)
|
text = msp.add_text(subdist_name, dxfattribs=dxfattribs_subdists)
|
||||||
|
|||||||
Reference in New Issue
Block a user