SpecialKeys für Scanner hinzugefügt
This commit is contained in:
+5
-9
@@ -38,14 +38,15 @@ def merge_two_dicts(x, y):
|
|||||||
|
|
||||||
def get_type_of_name(name):
|
def get_type_of_name(name):
|
||||||
|
|
||||||
SpecialKeys = ["MB", # Separator
|
SpecialKeys = ["MB", # Ventil
|
||||||
"MA", # Motor
|
"MA", # Motor
|
||||||
"BG", # Stausensor
|
"BG", # Stausensor
|
||||||
"BP" # Schalter Druckluft
|
"BP", # Schalter Druckluft
|
||||||
"QM" # Ventile
|
"QM", # Ventile
|
||||||
|
"BX" # Scanner
|
||||||
]
|
]
|
||||||
|
|
||||||
KabelKey = ["WD"]
|
KabelKey = ["WD", "WF"]
|
||||||
DropKeys = [
|
DropKeys = [
|
||||||
"FC", # Motorschutzschalter
|
"FC", # Motorschutzschalter
|
||||||
"PF", # Leuchtmelder
|
"PF", # Leuchtmelder
|
||||||
@@ -233,11 +234,6 @@ def get_subdistributor_positions(msp, dist2sensors):
|
|||||||
match = re.search("-"+distname, text.dxf.text)
|
match = re.search("-"+distname, text.dxf.text)
|
||||||
if match:
|
if match:
|
||||||
ret[distname] = (round(text.dxf.insert[0],1), round(text.dxf.insert[1],1)) #nur x und y Koordinate in Json schreiben
|
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
|
return ret
|
||||||
|
|
||||||
def get_subdistributor_positions_iter(dxf_path, dist2sensors):
|
def get_subdistributor_positions_iter(dxf_path, dist2sensors):
|
||||||
|
|||||||
Reference in New Issue
Block a user