Select previous

Select previous

Jendapen
Participant Participant
835 Views
13 Replies
Message 1 of 14

Select previous

Jendapen
Participant
Participant

Hey guys!

 

Is it possible to select previous of previous?

 

 

 

 

0 Likes
836 Views
13 Replies
Replies (13)
Message 2 of 14

ennujozlagam
Mentor
Mentor

hello, you can refer to this LINK. thanks





Remember : without the difficult times in your LIFE, you wouldn't be who you are today. Be grateful for the good and the bad. ANGER doesn't solve anything. It builds nothing, but it can destroy everything...
Please mark this response as "Accept as Solution" if it answers your question. Kudos gladly accepted.
0 Likes
Message 3 of 14

cadffm
Consultant
Consultant

No, not without an extra program.

Not ever the "pre-previous", but one defined selectionset. >> I am sure you will find a program that fit to your wish,

if you are searching for.

 

Basic sample

Command: (setq preprevious (ssget))

 

Whenever you want this selectionset, you can use !preprevious in your commandline as object selection.

Sebastian

0 Likes
Message 4 of 14

Jendapen
Participant
Participant

What kind of program do I need?

0 Likes
Message 5 of 14

ВeekeeCZ
Consultant
Consultant

Not possible. Would you describe your workflow for which you find such feature useful?

We can suggest you some possibilities you might have.

 

I can imagine that the GROUP command might help you.

0 Likes
Message 6 of 14

Jendapen
Participant
Participant

I selected a group of objects, copied and pasted it in another file, but then I remembered I missed a couple of things so I went back to select the remaining objects and did the same thing again. Now I want to erase everything that I copied from the original file that I now already have in the new file. 

0 Likes
Message 7 of 14

Kent1Cooper
Consultant
Consultant

@Jendapen wrote: 

Is it possible to select previous of previous? 


 

You may be able to use SelSetStack.lsp, available >here<.  Read about it on that thread, particularly the details of usage in Message 3, and in comments in the file.  The one "drawback" is that it requires you to know ahead of time  that you're going to want to have access to multiple previous selection sets, and make them "within the system."  But see what you think.

Kent Cooper, AIA
0 Likes
Message 8 of 14

ВeekeeCZ
Consultant
Consultant

I see. Your workflow seem to me little chaotic. I would probably erase those objects right after pasting those to another file while the selection remains "previous".

Or learn how to create a group, named or anonymous... you can create, add objects to existing group.

0 Likes
Message 9 of 14

Jendapen
Participant
Participant

Yeah...

I forgot to do that, seems like I will have to go through all the objects again, select and erase them. Just thought there would be an easy solution.

0 Likes
Message 10 of 14

Jendapen
Participant
Participant

Thanks for the lisp, but I don't think it would be of any use for me. Seems difficult to work like that, much easier to select with the computer mouse as usual.

0 Likes
Message 11 of 14

Kent1Cooper
Consultant
Consultant

@Jendapen wrote:

I selected a group of objects, copied and pasted it in another file, but then I remembered I missed a couple of things so I went back to select the remaining objects and did the same thing again. Now I want to erase everything that I copied from the original file that I now already have in the new file.

[ a n d ]

Thanks for the lisp, but ... Seems difficult to work like that, much easier to select with the computer mouse as usual.


 

Not so very difficult, provided [again] you anticipate the possibility.  For your described process:

 

With the routine loaded, in Drawing 1, type SS, select whatever [including Enter to complete the selection].  Type PP to select/highlight that set, Ctrl+C [or Ctrl+Shift+C] to copy it to the clipboard, get into Drawing 2 and paste it in.  Get back into Drawing 1, type SS again and select other things.  Type PP again to highlight them [they're now the latest set in the "system"], copy those out, get into Drawing 2 again and paste them in.

 

Back in Drawing 1, type PP [for the latest set] and then E [or Delete] to erase them, then PPP [for the set prior to that, i.e. the first one] and then E.  No need to re-select any objects with the mouse.

 

The same can be done with as many sets as you want, not just the two in this description.

Kent Cooper, AIA
0 Likes
Message 12 of 14

Jendapen
Participant
Participant

That wasn't the problem, I already understood the process perfectly fine by reading Message 3 on the other thread. It's just that I don't want to work like that all the time (creating selection sets everytime I select something) since this doesn't happen very often. Just want to be able to select previous of previous in case I need it.

0 Likes
Message 13 of 14

Kent1Cooper
Consultant
Consultant

@Jendapen wrote:

.... Just want to be able to select previous of previous in case I need it.


 

I hear ya....  That does sound like a good idea, if it's something that could be implemented.  You could suggest it over at the Product Feedback page.

Kent Cooper, AIA
0 Likes
Message 14 of 14

ВeekeeCZ
Consultant
Consultant

@Jendapen wrote:

I selected a group of objects, copied and pasted it in another file, .... Now I want to erase everything that I copied from the original file...


 

It seems that would be appropriate to have the CUTBASE command for such job. Not sure why there isn't one... or maybe I just didn't find it... or some hidden option of some other command that I don't know about... (Kent?)

Anyway, it looks like Shift+Ctrl+X shortcut is still free and such tool might come handy...

 

(defun c:CUTBASE (/ cmd)
  (setq cmd (getvar 'CMDECHO)) (setvar 'CMDECHO 0)
  (command-s "_.COPYBASE")
  (setvar 'CMDECHO cmd)
  (command "_.ERASE" "_P" "") 
  (princ)
)