eplisp

Batch Numeric Text Calculator (NSCL)

eplisp, the free multilingual LISP library

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

NSCL multiplies, divides, adds to or subtracts from the value of selected numeric texts and writes the result back in place with 4 decimals.

NSCL performs batch arithmetic on texts that contain numbers. It is useful for adding a constant to levels, multiplying values by a factor after a scale change, or converting units, without recalculating and editing each text by hand.

Overview

The command first asks you to select TEXT/MTEXT objects, then for the operation (Multiply, Add, Subtract, Divide; multiply is the default) and the operand. Each text's content is converted to a number, the operation is applied and the result replaces the text with 4 decimals. Dividing by zero leaves the value unchanged.

How to use it

  1. Load NUMSC-bgol.lsp with APPLOAD.
  2. Type NSCL at the command line.
  3. Select TEXT/MTEXT objects that contain only numbers.
  4. Choose the operation (Multiply/Add/Subtract/Divide) or press Enter for multiply.
  5. Enter the operand.

Notes and limitations

  • Changes the content of the selected texts directly; use U to undo.
  • Non-numeric texts are not skipped: a text without digits is treated as 0 and becomes, for example, 0.0000. Select numeric texts only.
  • In a text such as "12.50 m" only the leading number is read and the unit is dropped; the result always has 4 decimals.
  • MTEXT formatting codes are not handled; results on formatted MTEXT may be wrong.
  • 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