Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

2013 Command Line Behavior in AutoLisp?

6 REPLIES 6
Reply
Message 1 of 7
JackNC
452 Views, 6 Replies

2013 Command Line Behavior in AutoLisp?

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.

6 REPLIES 6
Message 2 of 7
Ian_Bryant
in reply to: JackNC

(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
Message 3 of 7
pbejse
in reply to: Ian_Bryant


@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

 

 

 

Message 4 of 7
Ian_Bryant
in reply to: JackNC

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
Message 5 of 7
pbejse
in reply to: Ian_Bryant


@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   Smiley Very Happy

 

Thank you for the info Ian_Bryant

 

Cheers

Message 6 of 7
JackNC
in reply to: JackNC

I see now that wherever I've used (initget)-(get*) it works fine.  But where I have prompts using (princ), it doesn't.

Message 7 of 7
honkinberry
in reply to: JackNC

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost