SpecialKeys für Scanner hinzugefügt

This commit is contained in:
2025-06-11 11:39:32 +02:00
parent 89932f6436
commit 4eb574b39c
+5 -9
View File
@@ -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):