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

CAD tip CAD tip # 6678:

Question CAD 
 %  platform  category 
Q - question

Autonumbering of AutoCAD blocks (incremental counter, InsertC)

A - answer Sequential numbering in AutoCAD blocks

If you need to insert blocks with incrementing numbers in attributes, or automatically renumber a sequence of 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 (or multileaders with 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 Download. Load the VLX file with APPLOAD and start it by typing the INSERTC or BLOCKC commands.

See the animated samples (click to enlarge):

100% *  CAD 
17.5.2009    92348×  
Prices - CAD eShop:
applies to: AutoCAD · AutoCAD Architecture ·

See also:
Tip 13766:Edit the Fusion 360 CAM tool library using Excel.
Tip 13408:How to increment the numbers in DWG texts by a specified value, e.g. +1, +10?
Tip 13211:Automatic numbering/renaming of multi-volume bodies in a part.
Tip 12896:How to perform multiple copying with relative offset to the last copy?
Tip 11354:Animate dyn.block parameters and dim.constraints in AutoCAD DWGs.

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   

Publish interactive 3D PDF models from AutoCAD, Inventor or Revit with Share3D 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.