endlessurf Posted September 20, 2012 Posted September 20, 2012 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? Quote
endlessurf Posted September 20, 2012 Author Posted September 20, 2012 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) Quote
SLW210 Posted September 20, 2012 Posted September 20, 2012 I moved this thread to AutoLISP, Visual LISP & DCL forum. Please read the CODE POSTING GUIDELINES and add code tags to your code. Quote
irneb Posted September 21, 2012 Posted September 21, 2012 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: ")) Quote
Recommended Posts
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.