Batch Numeric Text Calculator (NSCL)
eplisp, the free multilingual LISP library
| Openly licensed; the original file is hosted here together with its license. | |
… Rate this tool: | |
| Commands | NSCL |
|---|---|
| Category | Text Tools |
| Author | BGol Community |
| Source | thevijayparmar/bgol-cad-lisps |
| License | MIT |
| Requirements | AutoCAD, AutoCAD LT 2024 or later, BricsCAD (no ActiveX calls) |
| Prompt language | English |
| Files | NUMSC-bgol.lsp (3 KB) |
| Added | 2026-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
- Load NUMSC-bgol.lsp with APPLOAD.
- Type NSCL at the command line.
- Select TEXT/MTEXT objects that contain only numbers.
- Choose the operation (Multiply/Add/Subtract/Divide) or press Enter for multiply.
- 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.
- NUMSC-bgol.lsp (3 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