Bugfix MTEXT statt Text durchlaufen um die Unterverteiler zu finden

This commit is contained in:
2025-04-30 14:55:05 +02:00
parent 8a124f370c
commit 2a43bc208f
+1 -1
View File
@@ -129,7 +129,7 @@ def get_subdistributor_positions(msp):
ret = dict()
# Alle Texte auf Layer "xy"
for text in msp.query('TEXT[layer=="Busverteiler-Kennzeichnung"]'):
for text in msp.query('MTEXT[layer=="Busverteiler-Kennzeichnung"]'):
print(f"Text auf Layer 'Busverteiler-Kennzeichnung': {text.dxf.text}")
match = re.search(r"UC\w+", text.dxf.text)
if match: