From 53e42c6bc38da85666acbdeeb23eea8bf6b51e38 Mon Sep 17 00:00:00 2001 From: Paul Wolok Date: Thu, 8 Jan 2026 11:07:08 +0100 Subject: [PATCH] =?UTF-8?q?Korrektur=20verbunden=20mit=20einer=20Gef=C3=A4?= =?UTF-8?q?lle=20von=200=20grad?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/Elemente/Gefaehllestrecke.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/lib/Elemente/Gefaehllestrecke.py b/lib/Elemente/Gefaehllestrecke.py index 14f8a6f..64114d1 100644 --- a/lib/Elemente/Gefaehllestrecke.py +++ b/lib/Elemente/Gefaehllestrecke.py @@ -73,7 +73,7 @@ class Gefaellestrecke(BaseModel): start[1]= start[1] - 500* math.cos(math.radians(3)) start[2] = start[2] - 500* math.sin(math.radians(3)) else: - block.add_blockref("Vario_Motorstation_500mm", (start[0]-x,start[1] -y,start[2] -hoehe_gefaehlle),dxfattribs={"rotation": 270}) + block.add_blockref("Vario_Motorstation_500mm_links", (start[0]-x,start[1] -250 -y,start[2] -hoehe_gefaehlle),dxfattribs={"rotation": 270}) start[1]= start[1] - 500 else: @@ -84,7 +84,7 @@ class Gefaellestrecke(BaseModel): start[1]= start[1] - 500* math.cos(math.radians(3)) start[2] = start[2] - 500* math.sin(math.radians(3)) else: - block.add_blockref("Vario_Motorstation_500mm_links", (start[0]-x,start[1] -y,start[2] -hoehe_gefaehlle),dxfattribs={"rotation": 270}) + block.add_blockref("Vario_Motorstation_500mm", (start[0]-x,start[1]- 250 -y,start[2] -hoehe_gefaehlle),dxfattribs={"rotation": 270}) start[1]= start[1] - 500 if hat_umlenk_0 == True: @@ -97,7 +97,7 @@ class Gefaellestrecke(BaseModel): ende [1]= ende[1] + 500* math.cos(math.radians(3)) ende[2] = ende[2] + 500* math.sin(math.radians(3)) else: - block.add_blockref("Vario_Umlenkstation_500mm", (ende[0]-x,ende[1] + 250-y,ende[2] -hoehe_gefaehlle),dxfattribs={"rotation": 270}) + block.add_blockref("Vario_Umlenkstation_500mm_links", (ende[0]-x,ende[1] + 250-y,ende[2] -hoehe_gefaehlle),dxfattribs={"rotation": 270}) ende [1]= ende[1] + 500 else: @@ -133,6 +133,8 @@ class Gefaellestrecke(BaseModel): tefkurve_0 = gefaellestrecke_nachbarn.get("Tefkurve") x_angetrieben = gefaellestrecke_nachbarn.get("X_angetrieben") y_angetrieben = gefaellestrecke_nachbarn.get("Y_angetrieben") + x_angetrieben_1 = gefaellestrecke_nachbarn.get("X_angetrieben_1") + y_angetrieben_1 = gefaellestrecke_nachbarn.get("Y_angetrieben_1") if (kurvenrichtung == "links" and tefkurve_0 == "außen") or kurvenrichtung == "rechts" and tefkurve_0 == "innen": tefkurve_0 = "rechts" else: @@ -184,9 +186,9 @@ class Gefaellestrecke(BaseModel): rotation_zwischen = rotation if rotation_zwischen == 0.0: rotation_zwischen = -360.0 - if (((-360.0<= rotation_zwischen< -270.0)and y > y_angetrieben) or ((-90.0< rotation< 0.0)and y > y_angetrieben) or + if (((-360.0<= rotation_zwischen< -270.0)and y > y_angetrieben_1) or ((-90.0< rotation< 0.0)and y > y_angetrieben_1) or ((-270.0< rotation_zwischen< -90.0)and y < y_angetrieben) or - (rotation == -90.0 and x < x_angetrieben) or ((rotation == -270.0)and x