Vorbereitung für neue Elemente

This commit is contained in:
2025-12-02 11:49:05 +01:00
parent 726ca87e96
commit 805213dd7f
+40 -3
View File
@@ -1519,14 +1519,51 @@ def handle_ils_2_0_kurve_angetrieben(msp, teileid, merkmale, x, y, doc, lib_doc,
def handle_ils_2_0_kurve(msp, teileid, merkmale, x, y, doc, lib_doc, verbose, symbols, strecken_nachbarn,config,config_allgemein): def handle_ils_2_0_kurve(msp, teileid, merkmale, x, y, doc, lib_doc, verbose, symbols, strecken_nachbarn,config,config_allgemein):
rotation= float(merkmale.get("Drehung"))
h0 = float(merkmale.get("Höhe Anfang")) * 1000
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) import_block("AN8",lib_doc,doc)
msp.add_blockref("AN8",(x,y)) msp.add_blockref("AN8",(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): def handle_bt___beladung(msp, teileid, merkmale, x, y, doc, lib_doc, verbose, symbols, strecken_nachbarn,config,config_allgemein):
rotation = None
hight = None
if "Drehung" in merkmale:
rotation= float(merkmale.get("Drehung"))
if "Höhe in M" in merkmale:
hight = float(merkmale.get("Höhe in M")) * 1000
import_block("AN8",lib_doc,doc) import_block("AN8",lib_doc,doc)
msp.add_blockref("AN8",(x,y)) if hight == None and rotation == None:
msp.add_blockref("AN8",(x,y))
elif hight != None and rotation == None:
msp.add_blockref("AN8",(x,y,hight))
elif hight == None and rotation != None:
msp.add_blockref("AN8",(x,y),dxfattribute={"rotation": rotation})
else:
msp.add_blockref("AN8",(x,y,hight),dxfattribute={"rotation": rotation})
def handle_bt___entladung(msp, teileid, merkmale, x, y, doc, lib_doc, verbose, symbols, strecken_nachbarn,config,config_allgemein): def handle_bt___entladung(msp, teileid, merkmale, x, y, doc, lib_doc, verbose, symbols, strecken_nachbarn,config,config_allgemein):
rotation = None
hight = None
if "Drehung" in merkmale:
rotation= float(merkmale.get("Drehung"))
if "Höhe in M" in merkmale:
hight = float(merkmale.get("Höhe in M")) * 1000
import_block("AN8",lib_doc,doc) import_block("AN8",lib_doc,doc)
msp.add_blockref("AN8",(x,y)) if hight == None and rotation == None:
msp.add_blockref("AN8",(x,y))
elif hight != None and rotation == None:
msp.add_blockref("AN8",(x,y,hight))
elif hight == None and rotation != None:
msp.add_blockref("AN8",(x,y),dxfattribute={"rotation": rotation})
else:
msp.add_blockref("AN8",(x,y,hight),dxfattribute={"rotation": rotation})
def handle_omniflo(msp, teileid, merkmale, x, y, doc, lib_doc, verbose, symbols, strecken_nachbarn,config,config_allgemein): def handle_omniflo(msp, teileid, merkmale, x, y, doc, lib_doc, verbose, symbols, strecken_nachbarn,config,config_allgemein):
""" """
Für Omniflo Gerade: zeichnet eine Linie (Mitte = Koordinate, Länge und Winkel aus Merkmale). Für Omniflo Gerade: zeichnet eine Linie (Mitte = Koordinate, Länge und Winkel aus Merkmale).