[Search tip detail and code files using keywords, tip number, author name, etc ]
 
Paste Objects as Group
Tip# 4556 By Tom Beauford On 02-Nov-2015
0
Rated By 0 users
Categories : Import, Menus
Software type : AutoCAD 2016
Rename File To : No Files to download.
This AutoCAD macro pastes as block, explodes, creates an unnamed group, and purges the block.

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.

 

Average Rating:
0


User comments


Log In