Jump to content

Shortcut/command for re-selecting


Recommended Posts

Posted

Hello, I am wondering if anyone knows what the command or shortcut is for re-selecting the objects that were most recently selected. I cannot remember it.

(Example, when I have selected a bunch of things, then accidently click off of them or go do something else but then want to select those same things again...)

 

Thank you!

  • Replies 24
  • Created
  • Last Reply

Top Posters In This Topic

  • BlackBox

    6

  • javid

    6

  • RobDraw

    3

  • camillastn

    2

Posted

hmm. true. You have to have a completed command before for P to work, you can't Cancel the command and then get back the selection. Then I am stumped :(

Posted

I use "P" all the time. It works with or without completing a command but you have to be in a command to select the previous selection set. Note that if that "something else" that you go and do is in AutoCAD and you select objects that previous set is lost and the objects you just selected become the new previous set.

Posted

Is it possible to name a selection set and save it for future use? I'd like to be able to select a bunch of stuff, do something with it, then perhaps edit a part of it - say move or stretch a portion, and then perform another operation on the whole selection set.

 

I'll look into grouping.

Posted (edited)

Try to use this Lisp routine. you can add it in your acad.lsp file to use it every time you open autocad and work with your Dwgs...

This routine can remember your selection with the names set, sset1, sset2... sset5 and work with these commands.

every time you need to save somthing selected in the memory you must select them with this new commands (sset or sset1...5 insted of select) and do your work continue...

(DEFUN C:[color=red]S[/color]SET ()
(PRINC "\nSELECT A SET OF ENTITY...")
(SETQ [color=red]S[/color]SET (SSGET))
)
(DEFUN C:[color=red]S[/color]SET1 ()
(PRINC "\nSELECT A SET OF ENTITY...")
(SETQ [color=red]S[/color]SET1 (SSGET))
)
(DEFUN C:[color=red]S[/color]SET2 ()
(PRINC "\nSELECT A SET OF ENTITY...")
(SETQ [color=#ff0000]S[/color]SET2 (SSGET))
)
(DEFUN C:[color=#ff0000]S[/color]SET3 ()
(PRINC "\nSELECT A SET OF ENTITY...")
(SETQ [color=#ff0000]S[/color]SET3 (SSGET))
)
(DEFUN C:[color=#ff0000]S[/color]SET4 ()
(PRINC "\nSELECT A SET OF ENTITY...")
(SETQ [color=#ff0000]S[/color]SET4 (SSGET))
)
(DEFUN C:[color=#ff0000]S[/color]SET5 ()
(PRINC "\nSELECT A SET OF ENTITY...")
(SETQ [color=#ff0000]S[/color]SET5 (SSGET))
)

 

as you see the codes are very simple and you can add even more selection set to this routine, just you need to copy and paste one segments for example from (defun c:sset5 () to the end of the last ssget))) After the last Bracket and just rename the number of sset to another number like 6 or etc...

 

hope you can use that easily.

 

****

Forgive me I forgot to explain how this code can use!

Each time you want to select one or more object, you must use "sset" insted select, and for call your selection you must use "!sset" command to use your selection for any command you want to do with your selection...

The other selection like set1 or sset2... etc must use the same as above...

Command: sset1 to select another selection and Command: !sset1 after your command to call the new selection and modiffying or doing any command for that.

please let me know if any question you have about that.

Best regards,

Javid.

Edited by javid
For Dear RenderMan Recommendation
  • 2 weeks later...
Posted

Use the Pselect command to select the previously selected object. It only selects the objects without any command is running.

Posted
P for Previous Select

 

I too am interested in finding a way to do this, however entering "P" into the command line for me enters the "Pan" command!?

Posted
I too am interested in finding a way to do this, however entering "P" into the command line for me enters the "Pan" command!?

 

Using "P" for previous works within another command such as Move, then when it ask you to select objects type "P".

Posted

Unlike what vins1987 said, you need to be in a command.

Posted
I too am interested in finding a way to do this, however entering "P" into the command line for me enters the "Pan" command!?

 

 

Edit: Building on Cat's apt response...

 

For example:

 

(command "._move" "_[color=red]p[/color]" "" pause)

Posted
I resemble that remark.

 

 

Which part...? :P

 

 

:shock: wow!!!! what a tool! :thumbsup:

 

 

Edit: I'm kidding of course.

Posted (edited)
I too am interested in finding a way to do this, however entering "P" into the command line for me enters the "Pan" command!?

 

You can use these codes to do selection insted of select command:

(DEFUN C:[color=red][b]S[/b][/color]SET ()
(PRINC "\nSELECT A SET OF ENTITY...")
(SETQ [color=red][b]S[/b][/color]SET (SSGET))
)

After you run this code you need to use "sset" for selecting objects insted of select commandand then continue your work until you wand to do somthing with your selection set, for example you want to do copy them:

Use copy command at the first and then when you want to select object you must use "!sset" as a command at this time and you will see youe previouse selection is selected.

Aftr you use this command "sset" for selecting objects, these selection will be in the AutoCAD memory until you use this command ("sset") insted of select command again for selecting something else or closeing your AutoCad program.

As you see above of This page I posted this routine in another shape before and that means you can 1: add whatever you want to have selection set to this routine and 2: you can add this routine in to your acad.lsp file (it stored in Support Folder under the AutoCad program subfolder) and every time you open your AutoCad and you want to work, you have these commands in your hands.

Hope you can use and work whit that and can be useful.

Edited by javid
For Dear RenderMan Recommendation
Posted
... 2: you can add this routine in to your acad.lsp file ...

 

 

I would highly recommend that you instead use ACADDOC.lsp

 

(DEFUN C:SET ()
(PRINC "\nSELECT A SET OF ENTITY...")
(SETQ [color=red]SET[/color] (SSGET))
)

 

 

SET cannot be used as a variable name, as it is a LISP function.

 

Also, to add a slight degree of error prevention, consider this:

 

(DEFUN C:SET (/ [color=blue]ss)[/color]
 (PRINC "\nSELECT A SET OF ENTITY...")
 (if (SETQ [color=blue]ss[/color] (SSGET [color=seagreen];| Selection Set Filter Here |;[/color]))
   (progn
   [color=seagreen];; ...Code[/color]
   ))
 (princ)) ;_end defun

Posted
I would highly recommend that you instead use ACADDOC.lsp

 

 

 

 

SET cannot be used as a variable name, as it is a LISP function.

 

Also, to add a slight degree of error prevention, consider this:

 

(DEFUN C:SET (/ [color=blue]ss)[/color]
(PRINC "\nSELECT A SET OF ENTITY...")
(if (SETQ [color=blue]ss[/color] (SSGET [color=seagreen];| Selection Set Filter Here |;[/color]))
(progn
[color=seagreen];; ...Code[/color]
))
(princ)) ;_end defun

Hi and After many thanks for your reply I just wanted to say I'm useing this routine for about 10 years and it works for me without any error...

And I think the codes are very simple for everyone wants to use it, and I do not recommend to make it busy... maybe it will cause misunderstanding for others.

Anyhow Thanks again.

Posted

Please forgive my confusion... do you mean that you have been using ACAD.lsp, or your code for 10 years?

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