View Full Version : Select last object selection.
bskripac
2005-02-09, 09:46 PM
When you mirror an object, don't delete source object, then initiate another command, and select last it will select the newly created object. If there are multiple object selected in the mirror and you go through the same process it does not work, it only pick one object, not the entire mirrored set. The same is true when working with copy and multiple items. Is this just how it works or is there an option to grab the whole last set?
Mike.Perry
2005-02-09, 10:06 PM
Hi
Are you meaning "_P" for Previous Selection Set?
AutoCAD Online Help File [F1] -> Contents tab -> AutoCAD Help -> Command Reference -> Commands -> S Commands -> Select
Have a good one, Mike
bskripac
2005-02-10, 12:57 PM
Mike,
Thanks for the reference page, but I still had no luck. From where you pointed me to I assume that there is now way to do what I am looking for. I had already tried previous and began to look around which is where i found select last.
When you mirror an object, don't delete source object, then initiate another command, and select previous it grabs the original selection set not the newly mirrored group of objects like I am trying to select.
Mike.Perry
2005-02-10, 01:38 PM
Hi
Ok! I now see what you are after....
Have a browse of the following thread -
Create selection set of newest entities created by copy command (http://forums.augi.com/showthread.php?t=10205)
+
The below is from an old LISP Guild post by Darren Young -
<snip>
One of the easier "low tech" ways is to do the following.
Assume you have a selection set "A" with a bunch of stuff in it.
Now, you want to mirror or some other operation that creates several new entities that would be a pain to grab using (entlast)/(entnext).
Before performing the mirror or other operation make a selection set of everything.
(command "select" "all" "")
(setq remove-ss (ssget "p"))
This grabs everything that's currently drawn.
Now do your mirror or other operation. Then do this....
(command "select" "all" "remove" remove-ss "")
(setq new-ss (ssget "p"))
All you are doing is selecting everything after the mirror, and then removing everything from before the mirror using the "select" command and then grabbing the previous selection set.
Not to high tech but fast to code and easy to understand. Without having to mark the last entity and then loop through with (entnext) getting all the new ones.
</snip>
Have a good one, Mike
bskripac
2005-02-10, 02:22 PM
Thanks Mike I will try it out.
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.