[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.
Label Entity with Mask
Tip# 4329 By Kent Cooper On 29-Jun-2014
5
Rated By 1 users Downloaded : 341
Categories : Linear Objects, Curved Objects, 2D Editing, Single-Line Text
Software type : AutoCAD 2015
Rename File To : LabelTextMask.LSP
Use a wipeout to mask an entity instead of breaking it.

This routine is an alternate to “Label Entity with Break,” also from Kent Cooper. That tip inserts a text string into an entity by physically breaking the entity. This routine, in contrast, uses a wipeout to mask the entity instead of breaking it. Because this routine uses a wipeout, some system variables, such as Wipeoutframe, can affect the final results. If Pickstyle is set to 1 or 3, then you can move the text entity and the wipeout will go along for the ride since the text and wipeout are in a group.

Note that if Transparency is turned on (Transparencydisplay = 1), the wipeout may not work. For other routine details, see “Label Entity with Break,” Cadalyst CAD Tip No. 4328.

 

Average Rating:
5


User comments
Comment by Lowe,T
Posted on 2014-07-07 13:41:31
Very cool, Kent! How about maybe a version that uses MTEXT and a Background Mask? That could be really useful for annotative styles, because the Background Mask on the MTEXT could grow/shrink as necessary with the MTEXT's annotation scale... just a thought....