eplisp

Interchange Texts (TXSW)

eplisp, the free multilingual LISP library

Interchange Texts (TXSW)
Openly licensed; the original file is hosted here together with its license.
…
Rate this tool:
CommandsTXSW
CategoryText Tools
AuthorBGol Community
Sourcethevijayparmar/bgol-cad-lisps
LicenseMIT
RequirementsAutoCAD, AutoCAD LT 2024 or later, BricsCAD (no ActiveX calls)
Prompt languageEnglish
FilesTXTSWAP-bgol.lsp (3 KB)
Added2026-10-26
Download the original fileSource repository

TXSW exchanges the content of two picked TEXT or MTEXT objects while their position, height, layer and rotation stay exactly as they were.

TXSW is a small text tool for fixing two labels that were written in each other's place. If two room names or two level values are swapped, you only need to exchange their contents instead of moving the texts.

Overview

The command asks for two texts in turn and writes the first one's string into the second and vice versa. Placement, style, height and layer are unchanged. If the same object is picked twice or either object is not a text, nothing is changed.

How to use it

  1. Load TXTSWAP-bgol.lsp with APPLOAD.
  2. Type TXSW at the command line.
  3. Pick the first text.
  4. Pick the second text; the contents are exchanged.

Notes and limitations

  • Changes the text contents directly; use U to undo.
  • For MTEXT longer than 250 characters only the first chunk is swapped and the continuation chunks are not; avoid it on long MTEXT.
  • Block attributes are not supported.
  • 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