Select Text by Pattern (SLTC)
eplisp, the free multilingual LISP library
| Openly licensed; the original file is hosted here together with its license. | |
… Rate this tool: | |
| Commands | SLTC |
|---|---|
| Category | Text Tools |
| Author | BGol Community |
| Source | thevijayparmar/bgol-cad-lisps |
| License | MIT |
| Requirements | AutoCAD, AutoCAD LT 2024 and later, BricsCAD, ZWCAD. Uses plain AutoLISP only. |
| Prompt language | English |
| Files | TXTFIND-bgol.lsp (4 KB) |
| Added | 2026-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
- Load TXTFIND-bgol.lsp with APPLOAD.
- Type SLTC and press Enter.
- Type the text to search for and press Enter (spaces are allowed).
- Choose Starts, Ends or Contains, or press Enter for Contains.
- 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.
- TXTFIND-bgol.lsp (4 KB)
- License text
References
- Source repository: thevijayparmar/bgol-cad-lisps – https://github.com/thevijayparmar/bgol-cad-lisps/tree/3acbe32f71b489f4c81dcd9372f989591a9be858/Text%20Lisps/Select%20Texts%20Containing
- Author: BGol Community – https://bgol.in/
- 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