From 4eb574b39cfc27f8a74a251664e065a345b85c51 Mon Sep 17 00:00:00 2001 From: lertlmaier Date: Wed, 11 Jun 2025 11:39:32 +0200 Subject: [PATCH] =?UTF-8?q?SpecialKeys=20f=C3=BCr=20Scanner=20hinzugef?= =?UTF-8?q?=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/getpositions.py | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) 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):