Jump to content

Space bar during lisp routines - space bar = enter - I want space bar=space bar


endlessurf

Recommended Posts

I am trying to run the following command through a lisp:

(command "_mleader" pnt pause pause)

 

pnt is a user selected x and y. The first pause if for the user to select a landing point. The second pause if for the user to input text. I'm having issues when I am inputting text. I want to enter in "XX XX" but when ever I hit the space bar it acts as a enter and continues with the lisp. How do I get around the space bar = enter?

Link to comment
Share on other sites

To get this to work I ended up having the user input the information before running the mleader command. I had to add the T in the getstring command to allow for spacebar = spacebar.

 

(setq MlederText (getstring T "Enter Leater text:"))

 

(command "_mleader" pnt pause MlederText)

Link to comment
Share on other sites

To get this to work I ended up having the user input the information before running the mleader command. I had to add the T in the getstring command to allow for spacebar = spacebar.

 

(setq MlederText (getstring T "Enter Leater text:"))

 

(command "_mleader" pnt pause MlederText)

You could combine those 2 into one, then have it work similar to a normal MLeader command:
(command "_mleader" pnt pause (getstring T "Enter leader text: "))

Link to comment
Share on other sites

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...