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.094.000 registered users (EN+CZ). AutoCAD tips, Inventor tips, Revit tips. Try the new precise Engineering calculator. New AutoCAD 2026 commands and variables.

CAD tip CAD tip # 14285:

Question

CAD 
 %  platform  category 
A
Using the freeware utility SelDupBlk you can interactively select blocks (block references, instances) that occur duplicated, multiple times in a given drawing. Both the block name (even dynamic) and the matching values of the selected block attribute set are compared. You can also use the "Blind" option to select duplicate blocks with any matching value of the specified attributes (e.g. the same door number or pin number inserted twice by mistake).

Download the app from DL Download, load it into your AutoCAD with APPLOAD and start it by typing the SELDUPBLK command.

You can specify the block to be compared by pointing to or typing a name, a list of names, or a name mask wildcard. You can specify the list of attributes to be compared and their specified values for comparison by simply pointing to them or again by using a name, list, or mask. When you enter an attribute name, you also manually specify the attribute value to be searched for - again, you can use a list or mask.

For match detection, you can choose exact match, case-insensitive match (a=A), or broad accent-independent match (hachecks, umlauts, ß, etc.), or substring match (e.g. first 4 characters).

Found duplicate blocks are pre-selected by node editing - so you can easily move them to another layer, change their color, etc.

See video examples:

Blind select:

You can add a conversion table for the broad match - e.g. to add V=5, VII=7, X=10 - using the LISP variable:

(setq _SelDupPairs '( ("ae" . "ä")("oe" . "ö")("ue" . "ü")("ss" . "ß") ("a" . "á")("c" . "è")("d" . "ï")("e" . "é")("e" . "ì")("i" . "í")("l" . "å")("l" . "¾")("n" . "ò")("o" . "ó")("r" . "ø")("s" . "š")("t" . "")("u" . "ú")("u" . "ù")("y" . "ý")("z" . "ž") ))

ACADACADMPlantCivil3DACADEACLT
100% *CAD
21.10.2024    2699×  
Share the tip:
Digg it! Del.icio.us Facebook Twitter Google bookmark Technorati StumbleUpon

See also:
Tip 14537:Automation of AutoCAD drawing texts using fields.
Tip 14402:What is the difference between the BLOCKREPLACE, BREPLACE, REPLACEBLOCK, RIBLOCK and BLKREDEF commands?
Tip 14386:Visual catalog of blocks defined in a DWG drawing.
Tip 14304:How to generate a report of used blocks including their visibility status in AutoCAD LT?
Tip 14280:How to add elevation value (Z-coordinate) to texts with point numbers?


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:
Generate hatch patterns automatically from your DWG drawings with
HGEN 2006 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