From c3887e2269483e7f912cddcdc7474ccccbd016e7 Mon Sep 17 00:00:00 2001
From: Paul Wolok
Date: Tue, 16 Dec 2025 07:54:47 +0100
Subject: [PATCH] =?UTF-8?q?Name=20der=20Gef=C3=A4lle=20Kurve=20Festgelegt?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
lib/plant2dxf.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/lib/plant2dxf.py b/lib/plant2dxf.py
index c69ff3b..3bbd068 100644
--- a/lib/plant2dxf.py
+++ b/lib/plant2dxf.py
@@ -1133,10 +1133,10 @@ def handle_ils_2_0_kurve(msp, teileid, merkmale, x, y, doc, lib_doc, verbose, sy
h1 = float(merkmale.get("Höhe Ende")) * 1000
hz = (h0 + h1)/2
kurvenrichtung = merkmale.get("Kurvenrichtung")
- kurvenwinkel = merkmale.get("Kurvenwinkel")
- blockname = (f"")
- import_block("AN8",lib_doc,doc)
- msp.add_blockref("AN8",(x,y,hz),dxfattribs={"rotation": rotation})
+ kurvenwinkel =int(merkmale.get("Kurvenwinkel"))
+ blockname = (f"Kurve_{kurvenrichtung}_{kurvenwinkel}°_R500_Gefälle")
+ import_block(blockname,lib_doc,doc)
+ msp.add_blockref(blockname,(x,y,hz),dxfattribs={"rotation": rotation})
def handle_bt___beladung(msp, teileid, merkmale, x, y, doc, lib_doc, verbose, symbols, strecken_nachbarn,config,config_allgemein):
"""Erstellt ein BT Element in der neuen Dxf"""