[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.
Dynamic Text Curve Align
Tip# 3428 By Lee McDonnell On 15-May-2010
5
Rated By 4 users Downloaded : 2150
Categories : Multiline Text, Single-Line Text
Software type : AutoCAD 2011
Rename File To : DTCurve V2.9.lsp
Place text along a curve object that will adjust automatically if the curve adjusts.

First-time contributor Lee submits a LISP routine that allows you to dynamically place text or mtext along a curve object, which in this context refers to a spline, arc, circle, or LWpolyline. Load the LISP file, then start the routine by entering DTCurve at the Command line. You are first prompted to pick an existing text or mtext object, or enter a new text string. Then you are prompted to select a curve object. At this point, the text string is attached to your cursor and as you move the cursor along the curve, the text moves with it. During the command before you decide on final placement of the text, there are options to change the offset, change the textstyle, mirror the text, and/or add background mask, in the case of mtext. Once you choose a point to place the text, it is associated with the curve object. If you change the curve, the text adjusts automatically. A separate command, DTRemove, is used to remove this associativity. Lee's routine is a great example of LISP coding, with plenty of comments.

 

Average Rating:
5


User comments
Comment by Anonymous
Posted on 2010-05-18 08:53:32
I've been using TALIGN & MALIGN from Lee's site, thanks for combining and improving on this great tool
Comment by Anonymous
Posted on 2010-05-24 16:08:26
Great tool! What would make it even better is if the text string would curve to match the curve of the object. It would make long text strings look better.
Comment by McDonnell,Lee
Posted on 2010-06-11 13:06:54
Thanks Guys I understand your point about the text curving around the object - but the only way this could be achieved without using ArcAligned Text would be to create the text object from the individual letters and rotate each accordingly. Not impossible - but not ideal for the user. Lee