[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.
Text Alignment
Tip# 2014 By Alexander Smirnov On 01-Feb-2005
Rated By 1 users Downloaded : 243
Categories : Notes/Text
Software type : AutoCAD
Rename File To : Tip2014: Dali.lsp
Dali.lsp by Alexander Smirnov uses Visual LISP to align text in a drawing.

Three Charmers
Our next tipster, Alexander Smirnov, supplied three wonderful functions that demonstrate the power of Visual LISP object handling. The first, Text Alignment (Tip #2014), is for aligning text in a drawing. Load the LSP file and then type in the command Dali. Supply answers to prompts about the spacing factor to use, then select text objects. The text objects will be lined up under the top-most (greatest y-value). This utility uses object references for all the text manipulations and is an excellent example of advanced Visual LISP programming.



Average Rating:

User comments

Log In