CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT - CZ | SK | EN | DE
Over 1.096.000 registered users (EN+CZ). AutoCAD tips, Inventor tips, Revit tips. Try the new precise Engineering calculator and the updated Barcode generator. New AutoCAD 2026 commands and variables.

CAD tip CAD tip # 13337:

Question

CAD 
 %  platform  category 
A
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 DL 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    24480×  

See also:
Tip 14630:Extended ASCPOINT - import coordinates from CSV file, including blocks with attributes, GPS coordinates, etc.
Tip 14604:QRcode - dynamically generated QR codes in AutoCAD.
Tip 14537:Automation of AutoCAD drawing texts using fields.
Tip 14446:Undocumented options in AutoCAD FIELDs - hyperlinks, hexadecimal or binary format
Tip 14402:What is the difference between the BLOCKREPLACE, BREPLACE, REPLACEBLOCK, RIBLOCK and BLKREDEF commands?


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
  



Featuring:
Use Google Earth images in your AutoCAD projects with the Plex.Earth Tools More info


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