I have added some text to lines and polylines as extended data (Properties -> Extended data -> Notes). Is there some lisp or command with which I could export that data into txt file? Including the coordinates of the line.
Just do the inverse of your add xdata and "get" data, you have picked the line so its properties include a wealth of stuff including start and end points. really need your dwg to comment further need stuff like your dictionary name.