svorgodne Posted June 26, 2019 Share Posted June 26, 2019 Hello everyone, What is the exact use for the system variable "Lastprompt"? I want preciselly its value through autolisp to copy/paste automatically as text somewhere else. Nothing more, nothing less. Any ideas? Thanks in advance Sergio Quote Link to comment Share on other sites More sharing options...
dlanorh Posted June 26, 2019 Share Posted June 26, 2019 (edited) lastprompt : This string is identical to the last line seen at the Command prompt and includes any user input. Test routine (defun c:testLP ( / tmp lp) (setq tmp (getpoint "\nSelect Point : ") lp (getvar 'lastprompt) ) (princ lp) ) This doesn't return "Select Point : (0.0 0.0 0.0)" but "command c:testLP" as this was the last thing run on the command line. If you enter (princ (getvar 'lastprompt)) at the "Command:" prompt it returns "Command: (princ (getvar 'lastprompt))" Edited June 26, 2019 by dlanorh Quote Link to comment Share on other sites More sharing options...
tombu Posted June 26, 2019 Share Posted June 26, 2019 It's not really useful in lisp, but you can display the value you're looking for in the Ribbon using DIESEL for Display Name like : $(getvar,lastprompt) 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.