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

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 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 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    63560×  
applies to: AutoCAD · AutoCAD Architecture ·

See also:
Tip 11354:Animate dyn.block parameters and dim.constraints in AutoCAD DWGs.
Tip 11295:Iterative Move, Scale and Rotate - till boundary touch.
Tip 11244:Labels with incrementing numbers - assembly with numbered labels for laser cutting.
Tip 9855:Overview of postprocessors available in the CAM software Inventor HSM and Fusion 360.
Tip 8654:Free text counter AutoLISP utility.

Back   All CAD Tips All CAD tips&tricks

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.