eplisp

Box around a Text (TFRM)

eplisp, the free multilingual LISP library

Box around a Text (TFRM)
Openly licensed; the original file is hosted here together with its license.
…
Rate this tool:
CommandsTFRM
CategoryText Tools
AuthorBGol Community
Sourcethevijayparmar/bgol-cad-lisps
LicenseMIT
RequirementsAutoCAD (full version; uses ActiveX, so not AutoCAD LT), BricsCAD
Prompt languageEnglish
FilesTXTFR-bgol.lsp (4 KB)
Added2026-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

  1. Load TXTFR-bgol.lsp with APPLOAD.
  2. Type TFRM at the command line.
  3. Select the TEXT/MTEXT objects to frame.
  4. 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.

References

  1. Source repository: thevijayparmar/bgol-cad-lisps – https://github.com/thevijayparmar/bgol-cad-lisps
  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