RNDV LISP: Round Off Text Values (Free AutoLISP Download)
RNDV rounds the numeric value held in each selected TEXT entity to the nearest multiple of a user-specified increment, typically 0.005, matching common survey-instrument precision or a project specification requiring elevations to always end in 0 or 5 at the third decimal place. Excel has built-in rounding functions for this; AutoCAD does not, RNDV fills that gap directly inside the drawing.
RNDVAL-bgol (Round Off Text Values)
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 nearest-increment rounding utilities used in CAD/survey 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
RNDV rounds the numeric value held in each selected TEXT entity to the nearest multiple of a user-specified increment, typically 0.005, matching common survey-instrument precision or a project specification requiring elevations to always end in 0 or 5 at the third decimal place. Excel has built-in rounding functions for this; AutoCAD does not, RNDV fills that gap directly inside the drawing.
How to Use
- Load
RNDVAL-bgol.lspinto your CAD session (drag-and-drop the file onto the drawing window, or use theAPPLOADcommand). - Type
RNDVat the command line and press Enter. - Select the numeric text entities (e.g. elevation labels) you want to round.
- Enter the rounding increment when prompted (defaults to
0.005). - Each selected text's value is replaced with its nearest multiple of the increment, formatted to 3 decimal places. Any non-numeric text in the selection is skipped and the count reported.
Why Use It
- Matches instrument precision, ensures elevation text reflects the real precision of the survey instrument rather than an arbitrary interpolated value.
- Meets specification requirements, directly satisfies project specs requiring all elevations to be multiples of a fixed increment.
- Time savings, rounds directly inside the drawing, avoiding an export-to-Excel-round-reimport workflow.
Where to Use It
- Standardizing interpolated elevation text to match survey instrument precision (commonly 0.005).
- Meeting project or client specifications requiring all elevation values to end in 0 or 5 at the third decimal place.
- Any drafting task needing quick in-drawing rounding of numeric text to a fixed increment.
Notes
- The rounding increment is fully user-adjustable at run time, not fixed to 0.005, though that is the default.
- Text that doesn't parse as a plain number (letters, mixed content, etc.) is safely skipped rather than corrupted; the command's final report tells you how many were skipped.
- Rounded values are always written back formatted to 3 decimal places.
- 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
RNDV is a standard AutoLISP routine, so it runs in AutoCAD, BricsCAD, ZWCAD, and most other AutoLISP-compatible CAD platforms without modification.
The rounding increment is fully user-adjustable at run time, not fixed to 0.005, though that is the default.
Matches instrument precision, ensures elevation text reflects the real precision of the survey instrument rather than an arbitrary interpolated value.
Yes. RNDV 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 RNDVAL-bgol.lsp onto your open drawing window, or load it through the APPLOAD command, then type RNDV 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.