Box around a Text (TFRM)
eplisp, the free multilingual LISP library
| Openly licensed; the original file is hosted here together with its license. | |
… Rate this tool: | |
| Commands | TFRM |
|---|---|
| Category | Text Tools |
| Author | BGol Community |
| Source | thevijayparmar/bgol-cad-lisps |
| License | MIT |
| Requirements | AutoCAD (full version; uses ActiveX, so not AutoCAD LT), BricsCAD |
| Prompt language | English |
| Files | TXTFR-bgol.lsp (4 KB) |
| Added | 2026-10-26 |
| Download the original fileSource repository | |
TFRM draws a closed rectangular polyline around each selected TEXT or MTEXT, sized to that text's own extents plus a small margin.
TFRM is a simple tool for drawing frames around labels, room names or note texts. It saves drawing each frame by hand when texts have different lengths, because every text gets a box sized to itself.
Overview
For each selected text the command reads its bounding box, adds a margin of 1 drawing unit on every side and creates a closed LWPOLYLINE from the corners. The frames go on the layer BGOL-TXTFRAME, which is created in blue if it does not exist.
How to use it
- Load TXTFR-bgol.lsp with APPLOAD.
- Type TFRM at the command line.
- Select the TEXT/MTEXT objects to frame.
- Press Enter to finish the selection; a rectangle is drawn around each text.
Notes and limitations
- Creates the layer BGOL-TXTFRAME and draws the new polylines on it.
- The margin is fixed at 1.0 drawing unit; change the margin value in the code to adjust it.
- The bounding box is axis-aligned, so rotated text gets a larger upright box rather than a rotated one.
- The repository is new (2026); try it 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.
- TXTFR-bgol.lsp (4 KB)
- License text
References
- Source repository: thevijayparmar/bgol-cad-lisps – https://github.com/thevijayparmar/bgol-cad-lisps
- 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