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"""