This AutoCAD macro pastes as block, explodes, creates an unnamed group, and purges the block. Groups are much easier to work with than blocks.
I use this almost every day.
Command Name: Paste as Group
Description: Pastes objects from the Clipboard into the current drawing as a group
Macro:
^C^C_pasteblock;(setq LstBlk(vla-get-Name (vlax-ename->vla-object (entlast))));_explode;_last;_
-group;_create;*;;_previous;;(command "-purge" "B" LstBlk "N")(setq LstBlk nil)
Image: RCDATA_16_NEWGROUP
Notes from Cadalyst tip reviewer R.K. McSwain: A very clever way to add another option with pasting in objects from the clipboard. Thanks Tom! If you are looking for an enchanced way to paste as a block, see Tip #4366. |