Homeโ€บ Blogโ€บ PDEC LISP: Change Text Decimal Precision Free Download
๐Ÿ“ LISP

PDEC LISP: Change Text Decimal Precision Free Download

๐Ÿงฎ 2  |  ๐ŸŸข 2
17 May 2026 Trishunya Team
PDEC LISP: Change Text Decimal Precision Free Download
๐Ÿ“ LISP · CAD UTILITIES

PDEC LISP: Change Text Decimal Precision (Free AutoLISP Download)

๐Ÿ“… 17 May 2026 ๐Ÿท๏ธ CAD BGBgol Global
PDEC AutoLISP routine, Change Text Decimal Precision, shown inside a CAD window

PDEC reformats the numeric value of selected TEXT entities to a fixed number of decimal places (1 through 4, chosen at runtime), giving a drawing uniform decimal precision even when the original text arrived with mixed precision from different sources.

PREC-bgol (Change Text Decimal Precision)

CATEGORY
Text Lisps
COMMAND NAME
PDEC
LISP FILE
PREC-bgol.lsp
LICENSE
Open-source, free

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 fixed-decimal-precision text formatting utilities used in survey/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

PDEC reformats the numeric value of selected TEXT entities to a fixed number of decimal places (1 through 4, chosen at runtime), giving a drawing uniform decimal precision even when the original text arrived with mixed precision from different sources.

How to Use

  1. Load PREC-bgol.lsp into your CAD session (drag-and-drop the file onto the drawing window, or use the APPLOAD command).
  2. Type PDEC at the command line and press Enter.
  3. Enter the desired decimal precision (a whole number from 1 to 4) at the prompt.
  4. Select the numeric TEXT entities to convert, then press Enter to confirm.
  5. Each selected text's numeric value is reformatted to the chosen decimal precision. A small reference tick mark is placed above each updated text on layer BGOL-PDEC (colour magenta) for a quick visual audit.

Why Use It

  • Consistency, ensures all numeric text in a drawing displays the same decimal precision, meeting project drafting standards.
  • Flexibility, one command handles any of the four common precision levels, chosen interactively instead of needing four separate commands.
  • Time Savings, reformats many text entities at once instead of manually editing each one's displayed decimal count.

Where to Use It

  • Standardizing elevation, coordinate, or dimension text precision across a survey or engineering drawing before final submission.
  • Cleaning up numeric text imported or calculated from multiple sources (instruments, spreadsheets, other LISPs) that may carry inconsistent decimal precision.
  • Any drafting task requiring uniform numeric display precision per project specification.

Notes

  • Non-numeric text in the selection set is silently skipped and not counted in the reported total.
  • Values are rounded (not truncated) to the requested precision via standard rtos formatting.
  • 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

What CAD platforms does PDEC work on?

PDEC is a standard AutoLISP routine, so it runs in AutoCAD, BricsCAD, ZWCAD, and most other AutoLISP-compatible CAD platforms without modification.

What should I know before using PDEC?

Non-numeric text in the selection set is silently skipped and not counted in the reported total.

What is the main benefit of using PDEC?

Consistency, ensures all numeric text in a drawing displays the same decimal precision, meeting project drafting standards.

Is PDEC free to use for commercial projects?

Yes. PDEC is fully open-source and free to use, modify, and redistribute for both personal and commercial work, developed and shared by the BGol Community.

How do I load the PDEC command into my drawing?

Drag and drop PREC-bgol.lsp onto your open drawing window, or load it through the APPLOAD command, then type PDEC 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.

Back to all articles