To get some closure here I'll provide a sample for the mentioned script turning the copied text into a txt-file as well:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
fCPY=open("/home/your/path/to/copy.txt")
lines=fCPY.readlines()
AnzL=0
PNr=0
fTXT=open("/home/your/desired/output/path/to/pyTest.txt","w")
for lines in lines:
AnzL=AnzL + 1
lc=lines.find("im Punkt:")
if lc > 0:
PNr=PNr + 1
eol=len(lines)
sx=lines.find("X=")
sy=lines.find("Y=")
x=lines[sx + 2:sy - 1]
y=lines[sy + 2:eol]
wLine=str(PNr) + "," + x + "," + y
fTXT.write(wLine)
fTXT.close
fCPY.close
As mentioned before you should copy the output from the 'list entities' into a file named 'copy.txt' and run the script.
It creates a file 'pyTest.txt'
You'd have to adjust the path for both the 'copy.txt' and the 'pyTest.txt' and might change the file names as well.
Depending on the language your using you might have to change the search string "im Punkt:" into the apropriate one.
If it is some Linux you're using you'd have to make the script executable by 'chmode -x' via terminal.
Some feedback would be appreciated.
Frank