svorgodne Posted October 15, 2014 Share Posted October 15, 2014 Does anybody know what's the use of the "lastprompt" system variable? Or how to to create a symbol out of the last prompt without bypassing the lastprompt input as it will be really the lastprompt input? Or how to get the "lastprompt" - 1 to get the previous command line before the lastprompt was turned into an input? Thanks in advance Quote Link to comment Share on other sites More sharing options...
RobDraw Posted October 15, 2014 Share Posted October 15, 2014 Maybe for repeating the last command? Quote Link to comment Share on other sites More sharing options...
svorgodne Posted October 15, 2014 Author Share Posted October 15, 2014 that is precisely the point... if you type "lastprompt" at the command line, you get back... Command: lastprompt LASTPROMPT = "Command: lastprompt" (read only) because the last input was "lastprompt" Quote Link to comment Share on other sites More sharing options...
RobDraw Posted October 15, 2014 Share Posted October 15, 2014 You're not being very clear in your first post. Why are you trying to get the value of LASTPROMPT, if all you have to do is look at the command line or hit F2? Quote Link to comment Share on other sites More sharing options...
svorgodne Posted October 15, 2014 Author Share Posted October 15, 2014 I try to make a variable out of the last string on the command line to make it independent from any place from where it is located. It is to install one program I did but without to make it exclusive for every user since I have different clients who may use this program, so what I am looking for is to make a lisp that can read its own location to make it a variable so the rest of the process can be automatically done by the program since "its own location" was already turned into a variable. It is a little complicated to explain, that´s the reason I only asked if it was possible to read the last line, because when u drag and drop an autolisp file into the editor, it loads itself and it produces an input in the command line. From there I would like to make a variable that I can use to install the rest of the program. Thanks anyway .-) Quote Link to comment Share on other sites More sharing options...
RobDraw Posted October 15, 2014 Share Posted October 15, 2014 This topic is probably better suited in this forum: http://www.cadtutor.net/forum/forumdisplay.php?21-AutoLISP-Visual-LISP-amp-DCL A moderator will move it if they see fit. 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.