Jump to content

LASTPROMPT


svorgodne

Recommended Posts

Hello everyone,

 

I would like to know exactly what is the use of the LASTPROMPT system variable. I was trying to find a use for it. For example, to copy to the clipboard the complete path of the current drawing...

(progn
  (princ 
    (strcat 
      (getvar 'dwgprefix)
      (getvar 'dwgname)
    )
  )
  (princ)
)

Many times I have faced the need to copy right away the path of the drawing I am working, to pass it to some other user right away. I think the correct use of the LASTPROMPT variable could be helpful if it would store on the clipboard the result of the little program above.

 

Thanks in advance

Sergio

Link to comment
Share on other sites

We often have to email the path of drawing X to another user so they can find a related drawing.

Digging down into deep directories can be a pain vs clicking on a simple path link.. (IMHO)

 

>>LASTPROMPT

 

While I don't think that there isn't an "exact" proper use of the LASTPROMPT value, there are many instances where it may be of value..

Also good for copying coordinates or other LIST returned data.

Beats writing it down.

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