CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]
CZ | EN | DE
Login or
registration
  Visitors: 5591

CAD tip CAD tip # 6678:

   
Question CAD 
 %  platform  category 
Q - question

Autonumbering of AutoCAD blocks and OD (incremental counter, InsertC)

A - answer Sequential numbering in AutoCAD blocks and Object Data

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 ARKANCE InsertC utility. InsertC contains three commands - InsertC and BlockC and ODataC (plus InscOpt for setting options).

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.

The ODataC command (since V1.13) works similarly as BlockC but processes the selected Object Data field (Map or Civil 3D object data, OD).

All 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)

Since version 1.12 you can use the replacement pattern to display also the previous/next value, e.g. "TRM $ to $+" displays "TRM 74 to 75". You can also preset it with the LISP command - e.g.:

(setq insertc:RegEx "Terminal $ (from $- to $+)")

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):

ACADADT
100% *  CAD 
17.5.2009    100385×   FAQ  
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   



Featuring:
Increase your productivity with our set of add-on functions for AutoCAD Civil 3D
CADstudio Civil Tools 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.
TOPlist