CAD Forum
Cesky English Deutsch
Login:
 Visitors: 1251 

WWW server of the XANADU company (formerly: CAD Studio) Become a fan of CADforum on Facebook

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 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")))
  • SSX;;B;MYBLOCK;;_ERASE;_P;;
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.

ACAD
100% *  CAD 
27.11.2009    878x  
Comments   Tell a friend
Share tip: Digg it! Del.icio.us Facebook Technorati StumbleUpon
applies to: AutoCAD ·

See also:
Tip 7214:Batch replace different blocks with a single block.
Tip 7174:Convert Civil 3D COGO points to blocks with attributes.
Tip 7145:Replace points with blocks.
Tip 7023:Section modulus of 2D profiles in AutoCAD.
Tip 6718:How to select all blocks with the same name?


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. 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   



Featuring:
Make your drawings dynamic - change text, attribute or color when other entity changes.
With LiveLabel 2007 More info


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