just outside my experience, bet this one is a chestnut.
I have my own leader routine that sets lst_txt to be a variable so that when I repeat a note, the last text I used is the default, and I don't have to retype it. I also have a simple routine that picks a text entity already in the drawing and matches the text portion of selected entities.
I want to select a piece of text on screen and force that to the default text variable.
I could just make a new routine that picks that text, and then executes the leader routine.
But that would be ugly. I think I should be able, at the point when I can choose to enter new text or accept the default that I should be able to use a mouse button to pick with.
(setq str (strcase (getstring T (strcat "Text <" (eval lst_txt) "> :"))))
Maybe I need to make a dialog box and select the method for what text to use there.
Any bright ideas?