eplisp

Round Numeric Text (RNDV)

eplisp, the free multilingual LISP library

Round Numeric Text (RNDV)
Openly licensed; the original file is hosted here together with its license.
…
Rate this tool:
CommandsRNDV
CategoryText Tools
AuthorBGol Community
Sourcethevijayparmar/bgol-cad-lisps
LicenseMIT
RequirementsAutoCAD (including LT 2024 and later), BricsCAD and other CAD programs with AutoLISP. No Express Tools needed.
Prompt languageEnglish
FilesRNDVAL-bgol.lsp (3 KB)
Added2026-10-26
Download the original fileSource repository

Rounds the value of selected numeric TEXT objects to the nearest multiple of a step such as 0.005 and writes the result back with three decimals.

RNDV is a BGol Community routine for bringing numeric labels, such as spot elevations, to a fixed precision. If a specification wants levels to be multiples of 0.005, it rounds all of them in one pass instead of editing each label by hand.

Overview

It selects TEXT objects only. After leading and trailing spaces are trimmed, only strings made of digits, the decimal point, minus and plus signs are processed; anything else is skipped and counted. Each value is rounded to the nearest multiple of the step you enter, and the existing text is overwritten with the new value at three decimals. The command line reports how many labels were rounded and how many were skipped.

How to use it

  1. Load RNDVAL-bgol.lsp with APPLOAD.
  2. Type RNDV at the command line.
  3. Select the numeric TEXT objects to round.
  4. Enter the rounding step, or press Enter for the default 0.005.

Notes and limitations

  • Overwrites the content of the selected text; use U to undo if needed.
  • The result is always written with three decimals, whatever the step.
  • Labels with units or prefixes (e.g. "+12.35 m", "EL 12.30") are not treated as numbers and are skipped. MTEXT and block attributes are not supported.
  • The repository is new (2026); test the routine 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/tree/3acbe32f71b489f4c81dcd9372f989591a9be858/Text%20Lisps/Round%20off%20Values
  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