[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.
Tip 2227: Incrementing Text Label
Tip# 2227 By Julio Monge On 01-Aug-2007
Rated By 2 users Downloaded : 860
Categories : Points, Single-Line Text
Software type : AutoCAD
Rename File To : Tip 2227: count.lsp
Automatically label a series of points with numbers.

Tip 2227: Incrementing Text Label
Incrementing Text Label by Julio Monge is a handy tool for labeling a series of points with numbers. After loading the LISP code, type Count at the Command line. The function will ask you to select an existing text object. If the text object selected can be converted to a numeric value, then the converted value will be used to seed the number generator. Otherwise, the function will start with a value of 1. After obtaining the text entity details, the original text object selected remains untouched as the program prompts you for more points. As you select more points, a text object will be inserted that has the same properties as the one originally selected with an incrementing number value for the text. This utility is an excellent productivity tool for those needing to place a large number of numeric labels on a drawing. The code itself is a good example for those learning LISP.



Average Rating:

User comments

Log In