Jump to content

Recommended Posts

Posted

I want to share a code I found in theswamp.org

 

Request: Hi is it possible to get in lisp the menu like in pedit command? see atach.

 

Reply: yep the [ ... ] does the trick

 

(initget "Left Right Up Down Sideways Insideout Forwatd Backwards")
 (setq direction
        (getkword
          "\nElbow direction [Left/Right/Up/Down/Sideways/Insideout/Forward/Backwards ] <Right>: "
        )
 )

 

to have the prompt display

you will need the

DYNMODE variable set to 1, 2, or 3

and

DYNPROMPT variable set to 1

001.JPG

002.png

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...