endlessurf Posted September 20, 2012 Share 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 Link to comment Share on other sites More sharing options...
endlessurf Posted September 20, 2012 Author Share 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 Link to comment Share on other sites More sharing options...
SLW210 Posted September 20, 2012 Share 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 Link to comment Share on other sites More sharing options...
irneb Posted September 21, 2012 Share 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 Link to comment Share on other sites More sharing options...
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.