I like this approach that Dlanor provided me a while back where the block names appear as "dynprompt" on screen.
Mind you, blk1, blk2 and blk3 are really named...
STA_BORD_CTL_STD
STA_BORD_CTL_MAX
STA_BORD_CTL_PLO
If I replace blk1, blk2, blk3 with the above block names, I get an "Invalid option keyword" when I run it.
At the command line the "STA" for each block name in the list is blue (keyword ?), while the rest of the text is black.
[[color=blue]STA[/color]_BORD_CTL_STD/[color=blue]STA[/color]_BORD_CTL_MAX/[color=blue]STA[/color]_BORD_CTL_PLO]
If I change my blk_list to...
(setq blk_lst '
("STD" "MAX" "PLO"))
All works...
The block gets inserted and each option is blue at the command line for selecting, while also being able
to select on screen from the dynprompt.
[STD/MAX/PLO]STD
In this code below I see Dlanor using
I toyed with some simple "vl-string-trim" from one string of my block options "STA_BORD_CTL_STD" and was able to get it down to just STD as the return string.
How do I apply that result to each block name?
Orrrr, how do I resolve the "Invalid option keyword" when using the full block name in my blk_list"?
(defun c:test
( / blk_lst bname
)
)
(setq blk_lst '
("blk1" "blk2" "blk3"))
;;reset sysvars
);end_defun