Bugfix MTEXT statt Text durchlaufen um die Unterverteiler zu finden
This commit is contained in:
+1
-1
@@ -129,7 +129,7 @@ def get_subdistributor_positions(msp):
|
|||||||
|
|
||||||
ret = dict()
|
ret = dict()
|
||||||
# Alle Texte auf Layer "xy"
|
# 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}")
|
print(f"Text auf Layer 'Busverteiler-Kennzeichnung': {text.dxf.text}")
|
||||||
match = re.search(r"UC\w+", text.dxf.text)
|
match = re.search(r"UC\w+", text.dxf.text)
|
||||||
if match:
|
if match:
|
||||||
|
|||||||
Reference in New Issue
Block a user