NSCL LISP: Batch Numeric Text Scaler (Free AutoLISP Download)
NSCL selects multiple text entities holding numeric values and applies the same arithmetic operation to all of them in a single command run, multiply, add, subtract, or divide by a value you choose.
NUMSC-bgol (Batch Numeric Text Scaler)
Command Type: AutoLISP routine (works in AutoCAD, BricsCAD, ZWCAD and most AutoLISP-compatible CAD platforms)
Developed by: BGol Community, bgol.in
Inspired by the general concept of batch numeric-text calculators used in CAD drafting. This is an original, independently written routine, new file name, new command name, new source code, created so the CAD community has a free, editable, open-source alternative.
Overview
NSCL selects multiple text entities holding numeric values and applies the same arithmetic operation to all of them in a single command run, multiply, add, subtract, or divide by a value you choose.
How to Use
- Load
NUMSC-bgol.lspinto your CAD session (drag-and-drop the file onto the drawing window, or use theAPPLOADcommand). - Type
NSCLat the command line and press Enter. - Select one or more TEXT/MTEXT entities containing numeric values.
- Press Enter to finish selection.
- Choose an operator at the prompt:
Multiply/Add/Subtract/Divide(default is Multiply). - Enter the operand (the number to apply).
- Every selected text's numeric value is recalculated and updated in place, to 4 decimal places.
Why Use It
- Batch calculation, applies the same operation to many text values at once, instead of manually recalculating and retyping each one.
- Accuracy, removes manual arithmetic errors when applying a common adjustment across multiple values.
- Flexible, one command covers multiply, add, subtract, and divide, chosen at run time.
Where to Use It
- Scaling elevation, dimension, or measurement values by a conversion or correction factor.
- Applying a uniform offset (add/subtract) to a batch of survey readings.
- Any batch numeric text-editing task needing the same operation applied consistently across many values.
Notes
- Non-numeric or blank text entities in the selection are silently skipped.
- Output precision is fixed at 4 decimal places; edit the
decimalsvariable inC:NSCLto change it. - Division by zero is guarded, the original value is kept unchanged.
- Source code is fully open, feel free to study, modify, and redistribute it under the same open, free-for-all spirit.
Credits
Developed and shared for the CAD community by BGol Community. Website: https://bgol.in/ Free and open-source, use it, modify it, share it, for personal or commercial work alike.
Frequently Asked Questions
NSCL is a standard AutoLISP routine, so it runs in AutoCAD, BricsCAD, ZWCAD, and most other AutoLISP-compatible CAD platforms without modification.
Non-numeric or blank text entities in the selection are silently skipped.
Batch calculation, applies the same operation to many text values at once, instead of manually recalculating and retyping each one.
Yes. NSCL is fully open-source and free to use, modify, and redistribute for both personal and commercial work, developed and shared by the BGol Community.
Drag and drop NUMSC-bgol.lsp onto your open drawing window, or load it through the APPLOAD command, then type NSCL at the command line to run it.
๐ค About BGol Community
BGol Community of Advanced Surveying builds and shares free, open-source tools for the survey and CAD drafting community.
๐ Made with โค๏ธ by BGol Community of Advanced Surveying
Free, open-source, and built for the CAD community, for personal or commercial use, always.