diff --git a/lib/getpositions.py b/lib/getpositions.py index cb0f439..b26c8e4 100644 --- a/lib/getpositions.py +++ b/lib/getpositions.py @@ -38,14 +38,15 @@ def merge_two_dicts(x, y): def get_type_of_name(name): - SpecialKeys = ["MB", # Separator + SpecialKeys = ["MB", # Ventil "MA", # Motor "BG", # Stausensor - "BP" # Schalter Druckluft - "QM" # Ventile + "BP", # Schalter Druckluft + "QM", # Ventile + "BX" # Scanner ] - KabelKey = ["WD"] + KabelKey = ["WD", "WF"] DropKeys = [ "FC", # Motorschutzschalter "PF", # Leuchtmelder @@ -233,11 +234,6 @@ def get_subdistributor_positions(msp, dist2sensors): match = re.search("-"+distname, text.dxf.text) if match: ret[distname] = (round(text.dxf.insert[0],1), round(text.dxf.insert[1],1)) #nur x und y Koordinate in Json schreiben - # for mtext in msp.query("MTEXT"): - # print(f"Inhalt: {mtext.text}") - # print(f"Layer: {mtext.dxf.layer}") - # print(f"Einfügepunkt: {mtext.dxf.insert}") - # print("---") return ret def get_subdistributor_positions_iter(dxf_path, dist2sensors):