In AutoLisp, is there a way to replicate the new 2013 command line behavior that lets you click on on option rather than using the keyboard? I've always tried to make my routines look and act just like built-in commands, but I don't see how to do this now.
@Ian_Bryant wrote:
(initget "Yes No Maybe")
(getkword "\nDoes this work? [Yes/No/Maybe]: ")
It is the same as for getting the options to list in the right click menu.
Ian
Remember to set to Dynmode 1 or 3
@Ian_Bryant wrote:
Hi pbejse
using 2013 you can click on the command line to select highlighted options
regardless of the setting of the Dynmode or Dynprompt variables.
Ian
Oh i see,Now ihe need to upgrade to a more recent version would be on my to-do-list . I always end up with a no-nonsense suggestion
Thank you for the info Ian_Bryant
Cheers
I see now that wherever I've used (initget)-(get*) it works fine. But where I have prompts using (princ), it doesn't.
I saw your post and thought that was the case.
But not so.
I'm not sure what you have after those princ statements, but it works for me for all our grread calls.
Simply as:
(progn (princ "\ndo this [Option 1/oPtion 2]") (grread))
--J