[Search tip detail and code files using keywords, tip number, author name, etc ]
 
    For tip to function correctly, you must ensure that the downloaded file name matches the file name
    displayed in the Rename File To field. Please rename downloaded files when necessary.
Replace Text with Incremental Value
Tip# 3023 By Eric Brown On 18-Nov-2008
4
Rated By 2 users Downloaded : 1440
Categories : Edit Text, General Text, Tables
Software type : AutoCAD 2008
Rename File To : COUNTER.LSP
AutoLISP routine replaces text strings with an incrementing value for labeling columns and rows in a grid.

Replace Text with Incremental Value replaces text strings with an incrementing value, very useful for labeling columns and rows in a grid. After loading the LSP file, type Counter to activate the text edit tool. Enter an increment value (default value is 1). Next, select a starting base text. If the first character is a number (0 . . . 9), the counter will convert the string to a number. Otherwise, the next character will be used. (For example, if you pick text containing the value A with the default increment of 1, the next text item you pick will be changed to B and then to C and so forth.)

 

Average Rating:
4


User comments