Jump to content

Select previous


barristann

Recommended Posts

  • barristann changed the title to Select previous
5 hours ago, barristann said:

Anyone knows how long do I have to wait for my confirmation email from augi.com? It's been 24 hours. I'm trying to access this lisp

 

https://forums.augi.com/showthread.php?81175-select-result-lisp-modification&p=1310162&viewfull=1#post1310162

 

We could download it for you, but that wouldn't be proper is it. Be patient @barristann.

Let us know what you need and we will build the code for you from ground up, otherwise wait for the confirmation.

 

Cheers

 

Link to comment
Share on other sites

This is what I use. this gives me the option to select something or right click/enter to select the last thing modified. tho its kind of backwards with copied items it will select what you made a copy of rather then the copied items made.

 

;;----------------------------------------------------------------------------;;
;; Select or Previous
(defun SoP ()
  (prompt "\nSelect Objects or [Previous]:")
  (if (not (setq SS (ssget)))
    (setq SS (ssget "_P"))
  )
)

 

-Edit

This is my move command using it.

 

;;----------------------------------------------------------------------------;;
;; Move Previous if nothing is slected.
(defun C:M (/ SS)
  (SoP)
  (if SS 
    (vl-cmdf "._Move" SS "")
    (princ "\nNo previous selection set!")
  )
  (princ)
)

 

Edited by mhupp
  • Like 3
Link to comment
Share on other sites

Wonderful codes as always mhupp! Those are explanations are very helpful on how to get that working tombu. Thank you mhupp and tombu!

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