CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products []
CZ | EN | DE
Login or
  Visitors: 3518

CAD tip CAD tip # 12036:

Question CAD 
 %  platform  category 
Q - question

Sel2BlkRef (blockify) - replace repeating objects with block references

A - answer The freeware LISP utility Sel2BlkRef can automatically replace repeating objects (object copies) used in a DWG drawing with references (inserts) of an automatically generated block. This can save both DWG file size and time spent on future modifications of such repeated objects. This is not intended to find and blockify groups of multiple objects.

Download the Sel2BlkRef.vlx file from, load it with APPLOAD and type the SEL2BLKREF command.

Select the objects to be replaced (any object type). The first single object in the selection set will be used to auto-create the block definition. Optionally, you can also select all similar objects (of the same type - e.g. solids, and in the same layer). This "blockify" tool then replaces all individual objects in the selection with a reference (insert) of the generated block. The drawing content will not change visually. The more complicated objects you are processing, the more drawing file size you will save.

The block references are put in the same layers as the original entities. The originals are deleted.


See also QSELECT, SELECTSIMILAR and SolSimilar for selecting same or similar objects.

100% *  CAD 
17.10.2018    4706×  
Prices - CAD eShop:
applies to: AutoCAD ·

See also:
Tip 12279:PropByLayer - an inverse function to SetByLayer.
Tip 12215:How to change truecolor DWG objects to indexed ACI colors?
Tip 12131:Error: no function definition: VLAX-ENAME->VLA-OBJECT or VLAX-VLA-OBJECT->ENAME
Tip 11794:Undocumented code in field expression - MText contents without control characters.
Tip 11289:Adding, multiplying and rounding numbers inside DWG drawing texts - NumInText.

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   

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

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