eplisp

Text Case Tools (TITLECASE, MAKEUPPER, MAKELOWER)

eplisp, the free multilingual LISP library

Text Case Tools (TITLECASE, MAKEUPPER, MAKELOWER)
Openly licensed; the original file is hosted here together with its license.
…
Rate this tool:
CommandsTITLECASEMAKEUPPERMAKELOWER
CategoryText Tools
AuthorMichael Flynn
Sourcemf4633/C3D-AutoCAD
LicenseMIT
Version1.2
Updated2026-07-07
RequirementsAutoCAD (full version; not LT), Civil 3D; should also work in BricsCAD, which supports ActiveX.
Prompt languageEnglish
Filestitlecase.lsp (2 KB), makeupper.lsp (2 KB), makelower.lsp (2 KB), _utils.lsp (5 KB)
Added2026-10-26
Download the original fileSource repository

Three commands that change selected text to Title Case, UPPERCASE or lowercase while keeping MText formatting codes such as fonts and line breaks.

These three commands from Michael Flynn's C3D-AutoCAD library fix inconsistent capitalization in sheet titles, notes and labels. TITLECASE capitalizes the first letter of every word, MAKEUPPER converts everything to capitals and MAKELOWER to small letters.

Overview

For MText a shared helper in _utils.lsp skips inline formatting codes (for example \P line breaks, \f font changes and braces), so only the visible characters change and the formatting survives. Plain TEXT is converted directly. MAKEUPPER also handles attribute definitions (ATTDEF), and both MAKEUPPER and MAKELOWER process all text in the drawing if you press Enter instead of selecting.

How to use it

  1. Load _utils.lsp with APPLOAD first, then titlecase.lsp, makeupper.lsp and/or makelower.lsp.
  2. Type TITLECASE, MAKEUPPER or MAKELOWER and press Enter.
  3. Select the text objects and press Enter; with MAKEUPPER and MAKELOWER you can press Enter without selecting to process the whole drawing.
  4. Check the result and use U to undo if needed.

Notes and limitations

  • _utils.lsp must be loaded before these commands are used on MText; otherwise they stop with an undefined function error.
  • In MText, and in TITLECASE generally, only the ASCII letters A-Z are converted; Turkish letters such as ç, ğ, ı, ö, ş, ü are left as they are. For plain TEXT, MAKEUPPER and MAKELOWER use AutoLISP's strcase, whose handling of non-ASCII letters depends on the CAD program.
  • TITLECASE capitalizes every word, including short words such as of or and, and lowercases the rest of each word, so an acronym like NCS becomes Ncs.
  • TITLECASE treats space, tab, hyphen, underscore, period and slash as word separators.
  • Pressing Enter in MAKEUPPER or MAKELOWER changes all text in model space and all layouts; text on locked layers can make the command stop with an error.
  • 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: mf4633/C3D-AutoCAD – https://github.com/mf4633/C3D-AutoCAD/tree/eeeda7b7b3ffe98917d4b2b3d329d6b84a966035
  2. Author: Michael Flynn – https://github.com/mf4633
  3. License: MIT – https://github.com/mf4633/C3D-AutoCAD/blob/eeeda7b7b3ffe98917d4b2b3d329d6b84a966035/LICENSE

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