• Skip to main content
  • Skip to primary sidebar
  • Skip to footer
blog.draftsperson.net

blog.draftsperson.net

the art of technical drawing

blog.draftsperson.net

EPU LISP: Change One Dimension’s Precision in AutoCAD

September 18, 2020

Last updated July 28, 2026

EPU changes the decimal precision of a single dimension. Pick the dimension, type the number of decimal places you want, and that one dimension is overridden — without touching your dimension style or any other dimension on the drawing.

That is a narrow job, and a genuinely awkward one to do otherwise. Changing precision through the dimension style changes everything using that style; doing it through the properties palette means finding the right field in a long list. This is two picks.

It is by Ade Suharna, dated 4 September 2004, and carries a note that it was later edited by Rick Keller.

This one will not run on AutoCAD LT

Worth stating clearly, because almost everything else in this library will. Most of these routines are plain AutoLISP and stand a reasonable chance on LT 2024 or later, the first releases with AutoLISP support.

This one is different. It reaches the dimension’s precision setting through ActiveX — the object-property interface that lets AutoLISP talk to AutoCAD’s drawing objects as programmable objects rather than as raw entity data. ActiveX is not available on AutoCAD LT at any release, so a routine built on it cannot run there. The give-away is the ActiveX loading call on the second line and the property calls that follow it.

See what runs on AutoCAD LT for the wider picture. On full AutoCAD there is no issue.

What it does in practice

It asks you to select a dimension, reads its current precision, and offers that back as the default in the prompt — so you can see what it is now before deciding what it should be. Type a new number and the override is applied.

Then it asks again. The routine loops, so a run of dimensions that all need the same treatment is a sequence of picks rather than a sequence of commands.

The property it sets is the primary units precision, which is the decimal places on the main measurement. It does not touch alternate units or tolerance precision, which are separate settings.

Command reference

The file defines a single command, EPU — the author’s own abbreviation for edit precision units, spelled out in the first line of the file.

How to load it

Unzip Epu.zip and load epu.lsp with APPLOAD, or add it to the Startup Suite. No support files. Our AutoLISP guide covers loading.

Step-by-step usage

  1. Type EPU.
  2. At “Select Dimension.” click the dimension you want to change.
  3. The prompt shows the current precision in angle brackets. Type the number of decimal places you want.
  4. It asks for another dimension. Carry on, or escape to finish.

Because the loop has no tidy exit, escaping is how you stop. That is normal for routines of this shape but worth knowing so it does not look like a fault.

Compatibility notes

2004, which makes it one of the newer routines here, and the ActiveX approach it uses is the modern way of doing this kind of work rather than an old one. On full AutoCAD it should be sound. On LT it will not run at all, as covered above.

It applies a dimension override, which is a normal, reversible thing to do — the dimension can be reset to its style later if you change your mind. Even so, try it on a copy the first time so you can see exactly what it changes.

Download

Name: EPU
Description: Edit precision units.
Type: AutoCAD AutoLISP Routine
Author: Ade Suharna
File Size: 1 Kb
Cost: Free
Worked on: AutoCAD
Download File: Epu.zip

Related routines

  • DIMROTATE — flip dimensions that read upside down.
  • SPER — the other ActiveX routine in this library, with the same LT limitation.
  • LLP Suite — a set of dimension checking and fitting commands.

References

  • AutoLISP: the complete guide
  • Free LISP routines library
  • AutoLISP on AutoCAD LT

Filed Under: AutoLISP Routines

Primary Sidebar

Subscribe to our Youtube Channel

Post CAD drafting jobs on Freelancer.com. and get some free money to do this.

Categories

  • American Steel Industry (4)
  • AutoCAD Articles & Reference (30)
  • AutoCAD Bugs & Problems (19)
  • AutoCAD Tips (29)
  • AutoCAD Tutorials (54)
  • AutoLISP Routines (328)
  • AutoLISP Tutorials (15)
  • CAD Standards (7)
  • Civil 3D (7)
  • Civil Drafting (4)
  • Dimensions (2)
  • Drafting Funnies (71)
  • Drafting History (9)
  • Drafting Standards (84)
  • Electrical Drafting (2)
  • General IT reference (7)
  • Geometry (15)
  • GIS (2)
  • Hatch Patterns (12)
  • Office Life Hacks (3)
  • PT (1)
  • Revit Tutorials (54)
  • Steel Detailing (14)
  • Structural Drafting (26)
  • Technical Dictionary (61)
  • Useful Website Links (19)

Footer

Free downloads

  • Free AutoLISP routines
  • Free hatch patterns
  • SHX fonts & text styles
  • Numbering LISP collection
  • ISO 3098B font

Reference charts

  • AWS weld symbols chart
  • Steel detailing chart
  • Hole & slot sizes
  • Bolt edge distance
  • ANSI & ARCH paper sizes
  • How to fold an A1 drawing

Useful links

  • CAD blocks (DWG)
  • Revit families
  • structuraldrafter.com
  • cad-corner.com
  • About
  • Privacy policy

Provided for free with no warranty · Log in