CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]
CZ | EN | DE
Login or
registration
  Visitors: 3539

CAD tip CAD tip # 13337:

   
Question CAD 
 %  platform  category 
Q - question

How to select blocks by attribute values? (SelByAttr)

A - answer Using the freeware LISP utility SelByAttr, you can easily bulk select blocks determined by the existence or value of a particular attribute or by a range of attribute values.

You can download the SelByAttr app from Download, load it into your AutoCAD using APPLOAD and launch by typing the command SELBYATTR (or -SELBYATTR as the commandline version, or (C:SELBYATTR) directly on the Select objects prompt).

In the dialog box or in successive prompts, specify the name, list (enumeration), or mask of the block names (e.g. Door*,Sliding*), the name, list, or mask of the layers in which the blocks are inserted, the name, list, or mask of the attribute names/tags (e.g., Width), and then the attribute values, if any. You can also pick the names from the drawing with the "Pick" button - by selecting a sample block, resp. attribute.

The searched attribute values can either be entered as text (again, a specific value, enumeration, or mask) or as a number or range of numeric values. This can be specified either by a range from-to or by specifying a value and a tolerance (allowable deviation from this value).

Using the Recalc button, you can view the number of blocks to be selected, a preview of the list of selected blocks and their attribute values. You need to specify at least one search parameter - e.g. "*" as the block name.

The application also supports dynamic blocks. See also the related SelDB application for selecting blocks according to dyn.block parameters.

ACADACADMPlant3DCivil3DMap
100% *  CAD 
21.5.2022    553×  

See also:
Tip 13340:Where is a given font used in my drawing?
Tip 13220:RangeSel - select blocks by the range of their attribute values
Tip 13156:Insert or update a specific block from another DWG drawing.
Tip 13000:Labels of dimensional parameter values in dynamic blocks (parameters->attributes)
Tip 12685:ReLinkField - re-link fields to source objects.


Back   All CAD Tips



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   



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


Please use these tips at your own risk.
Arkance Systems is not responsible for possible problems that may occur as a result of using any of these tips.
TOPlist