CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor and other Autodesk products []
Cesky English Deutsch
 Visitors: 2909 

CAD tip CAD tip # 6678:

Question CAD 
 %  platform  category 
Q - question

Autonumbering of AutoCAD blocks (incremental counter)

A - answer Sequential numbering in AutoCAD blocks

If you need to insert blocks with incrementing numbers in attributes, or automatically renumber existing blocks in your DWG drawing, you can use the free CADstudio InsertC utility. InsertC contains two commands - InsertC and BlockC.

The InsertC command is a "counting" version of the INSERT command. It inserts a specified block and automatically fills its first (resp. specified) attribute with an increasing number in a series. You can either specify the block by picking an existing reference, or by entering its name.

The BlockC command takes the selection set of existing blocks and fills (renumbers) their first (resp. specified) attributes with a series of incrementing numbers. You can sort the blocks (influence the numbering order) by their selection order, or by their X- or Y- coordinates.

Both autonumbering commands allow to specify the starting value of the counter, the prefix (you can also add leading zeroes) and the postfix for the generated number. You can also use the insertc:Inc LISP variable to set the increment (if other than +1), insertc:Prec for decimal precision (for decimal increments) and insertc:AttNo to specify the attribute number. E.g. (setq insertc:AttNo 2)

The LISP utility InsertC is available for download on

100% *  CAD 
17.5.2009    40196x  
Comments   Tell a friend
applies to: AutoCAD · AutoCAD Architecture ·

See also:
Tip 9855:Overview of postprocessors available in the CAM software Inventor HSM 2015.
Tip 8654:Free text counter AutoLISP utility.
Tip 8361:Automatic vertex labels with autonumbering and coordinates.
Tip 5111:FlexLM (FlexNet) error code list.
Tip 4586:How to create a row or table with incrementing numbers?

Back   All CAD Tips All CAD tips&tricks

Highlighting object extents by bounding-boxes. « | » How to delete an object only in a single viewport?

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   

Publish interactive 3D PDF models from AutoCAD, Inventor or Revit with Share3D More info

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