CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products []
Cesky English Deutsch
 Visitors: 5478 

CAD tip CAD tip # 7082:

Question CAD 
 %  platform  category 
Q - question

Selecting block objects by name.

A - answer In order to quickly select block references from a DWG drawing and first of all to perform block selections from AutoCAD script files, you may need a useful tool for selection of blocks by their name.

This function can be performed in two simple ways. E.g. if you need to erase (delete) all blocks named "MYBLOCK" from your drawing, use one of the following methods (menu-macro format used for readability, for scripts replace the semicolons by spaces):

  • _ERASE;(ssget "_X" '((0 . "INSERT")(2 . "MYBLOCK")))
The first method uses the LISP object selection function. The second method uses the command SSX from Express Tools.

None of these methods can be used in AutoCAD LT.

100% *  CAD 
27.11.2009    9990×  
Comments   Tell a friend
applies to: AutoCAD ·

See also:
Tip 11776:Export XYZ coordinates of DWG objects from AutoCAD LT.
Tip 11751:toMulti converts polylines to multi-lines driven by a definition table.
Tip 11729:Select objects by annotation scale.
Tip 11714:How to assign a RAL color to a DWG object and get its ACI equivalent?
Tip 11708:How to convert texts to block attributes (references)?

Back   All CAD Tips All CAD tips&tricks

Error: expected font (xxxx) is not available. « | » How to display 4 grips in the corners of MText?

Have we helped you? If you want to support the CAD Forum web service, consider buying one of our CAD applications, or our custom software development offerings, or donating via PayPal (see above). You may also add a link to your web - like this "fan" link: CAD Forum - tips, utilities, blocks for Autodesk products
CAD:    OS:    Categ: 
Text:  FAQ glossary   

Export 3D VRML scenes from AutoCAD and Inventor 2015
VRMLout More info

Please use these tips at your own risk.
CAD Studio (Xanadu) is not responsible for possible problems that may occur as a result of using any of these tips.