Tipster Richard Paquette shares a LISP routine called Swap that he has been using for a long time in AutoCAD. He has had it so long that he doesn’t know where he got it, but he loves it.
"The Swap routine does exactly as its name implies: It swaps one selection set with another. If its two lines of text you want to swap, just press Enter when it asks for the reference point; it uses the text object’s insertion point as the reference point. I use this routine often when I have to arrange items on my drawings. I can select a whole detail and swap places with another detail. It saves me from moving and moving and moving."
Notes from Cadalyst Tip Reviewer Brian Benton: Cadalyst CAD Tip No. 1932 is a routine by Leonid Nemirovsky called SWAP.LSP; it works like this routine does, but only with text. This tip is easy enough to use. Load the routine and type SW on the Command line to start it. Select your first object (or objects) and press Enter. Next, select a reference point (similar to the Move command, this is the point where the objects will be moved from). Press Enter. Choose your second set of objects and their reference point. Both sets will be swapped and inserted according to the selected reference points. |