[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.
Filtered Text Selection Set
Tip# 3136 By Bill Kramer On 23-Jan-2009
Rated By 2 users Downloaded : 506
Categories : LISP Code Modules
Software type : AutoCAD
Rename File To : ssFilterText.LSP
Create a selection set from text objects given a wild card to match in the text

Programmer utility from Harry's library.

Function (ssFilterText "*filter*") will build a selection set from the TEXT objects found in the drawing. All the text entity objects will be tested against a filter using the (WCMATCH) [Wild Card Match] subr in LISP. For example, to build a selection set of text entity objects containing the character sequence "the" one would code:

(setq mySS (ssFilterText "*the*"))

Do note that this will pick up text with words that contain the character string  THE and not just the word. See the WCMATCH information in the VLIDE help to learn how you can use wild cards string comparisons.

Keep on programmin' - Hot Tip Harry (Bill Kramer)


Average Rating:

User comments

Log In