eplisp

Select Text by Pattern (SLTC)

eplisp, the free multilingual LISP library

Select Text by Pattern (SLTC)
Openly licensed; the original file is hosted here together with its license.
…
Rate this tool:
CommandsSLTC
CategoryText Tools
AuthorBGol Community
Sourcethevijayparmar/bgol-cad-lisps
LicenseMIT
RequirementsAutoCAD, AutoCAD LT 2024 and later, BricsCAD, ZWCAD. Uses plain AutoLISP only.
Prompt languageEnglish
FilesTXTFIND-bgol.lsp (4 KB)
Added2026-10-26
Download the original fileSource repository

Finds every single-line TEXT whose content starts with, ends with or contains a given string and leaves the matches selected for editing.

SLTC is a text search tool from the BGol Community library. Instead of replacing text, it builds a selection: every TEXT object in the drawing whose string matches the pattern ends up gripped and highlighted, so you can change its layer, color, height or content with the usual commands or the Properties palette.

Overview

You type the search string and choose Starts, Ends or Contains (Contains is the default). The routine scans all TEXT objects in the drawing, compares each string with wcmatch and reports how many matched. It does not modify anything itself.

How to use it

  1. Load TXTFIND-bgol.lsp with APPLOAD.
  2. Type SLTC and press Enter.
  3. Type the text to search for and press Enter (spaces are allowed).
  4. Choose Starts, Ends or Contains, or press Enter for Contains.
  5. The matching texts stay selected; run an editing command or use the Properties palette on them.

Notes and limitations

  • Only single-line TEXT is searched; MTEXT, attributes and dimension text are not.
  • Matching is case-sensitive.
  • Characters such as # @ * ? ~ [ ] , and . have wildcard meanings in wcmatch, so a search string containing them may match more or less than expected.
  • The scan covers text in model space and all layouts.
  • The repository was published in 2026; test on a copy of the drawing first.

Source and license

This tool is not made by eplisp. The file is published unchanged under its author's license; copyright stays with the author.

References

  1. Source repository: thevijayparmar/bgol-cad-lisps – https://github.com/thevijayparmar/bgol-cad-lisps/tree/3acbe32f71b489f4c81dcd9372f989591a9be858/Text%20Lisps/Select%20Texts%20Containing
  2. Author: BGol Community – https://bgol.in/
  3. License: MIT – https://github.com/thevijayparmar/bgol-cad-lisps/blob/3acbe32f71b489f4c81dcd9372f989591a9be858/LICENSE

Found a mistake, or are you the author of this tool? Request a correction or removal