PDA

View Full Version : Copy Erase Previous And Paste


omorah
2009-07-14, 07:23 PM
^C^C_copybase;0,0,0;pause;erase;previous;pause;pasteblock;0,0,0;

Could someone please tell me what I am missing here. My goal is to:

1. COPY objects at 0,0,0
2. ERASE PREVIOUS(ly) selected (copied) objects
3. PASTE previously copied objects (in clipboard) at original location (0,0,0) as a block.

It only goes as far as copying, since it is in memory at the 0,0,0 point. I also tried it without the "pause". I don't need this to remain as a block since I usually explode it after I have finished moving it around to any new location. Just for temporary use. Also, I would like to use this since making a block or grouping will take much longer time.

Currently, what I do is use my button to Copy 0,0,0, then manually erase the previous selected objects, then I use another button to paste the object in the memory at 0,0,0.

Thanks in advance.

charlieb
2009-07-15, 03:25 PM
Try this Lisp routine it will do what you are trying to do and is repeatable.

omorah
2009-07-16, 07:42 PM
THANKS A GREAT DEAL FOR YOUR REPLY. HOWEVER, I CAN ONLY SELECT ONE OBJECT, ALSO, IT DOES NOT PASTE BACK THE OBJECT. SINCE I ALREADY HAVE "CE" IN MY SYSTEM, I TRIED CHANGING THE COMMAND TO "CX", BUT THAT WON'T GO. BELOW IS WHAT I GET:


Command: ce
.copy
Select objects: 1 found

Select objects:
Specify base point or [Displacement/Multiple] <Displacement>: 0,0,0 Specify
second point or <use first point as displacement>: 0,0,0
Command: CE Unknown command "CE". Press F1 for help.

Command: .erase
Select objects: P 1 found

Select objects:
Command:

RobertB
2009-07-17, 01:44 AM
"pause" is not a valid way to pause a CUIx command macro.

Also, in a CUIx command macro you can use the Select command with a single pause to gather unlimited objects. So you just need to reorganize the command a bit (untested):

^C^C._Select;\._CopyBase;0,0,0;_si;_p;._Erase;_si;_p;._PasteBlock;0,0,0

omorah
2009-07-17, 02:37 AM
"pause" is not a valid way to pause a CUIx command macro.

Also, in a CUIx command macro you can use the Select command with a single pause to gather unlimited objects. So you just need to reorganize the command a bit (untested):

^C^C._Select;\._CopyBase;0,0,0;_si;_p;._Erase;_si;_p;._PasteBlock;0,0,0

Robert, that IS PERFECT!
Just what I was/am looking for, is going to be a big time saver for me. Thanks for your time on this, well appreciated.
Thanks again.

omorah
2009-07-17, 02:40 AM
Try this Lisp routine it will do what you are trying to do and is repeatable.

CharlieB, Robert just got something setup for me. I really appreciate your time on this.
Thanks

RobertB
2009-07-17, 02:57 AM
Robert, that IS PERFECT!
Just what I was/am looking for, is going to be a big time saver for me. Thanks for your time on this, well appreciated.
Thanks again.I'm happy I could help.