AutoCAD/Autocad 2012


Using autocad 2012. I've been trying to find a way to change the architectural dimension format of feet-inches-fractions, to show the distance in inches and fractions only. Meaning, rather than, for example-- 7'3-3/8," to 87-3/8." I had hoped it was a system variable, or something that didn't require scripting to accomplish.
I've looked in the "Units" setting, in "Options," and "Autodesk Exchange." So far nothing. Can you please help?

(defun dnerr (msg)
  (if msg (princ msg))
  (if os (setvar "osmode" os))
  (if post (setvar "dimpost" post))
  (if dlun (setvar "dimlunits" dimlun))
  (setq *error* olderr)
(defun c:diminch (/ os post dlun)
  (command "_.undo" "_g")
  (setq olderr *error* *error* dnerr)
  (setq post (getvar "dimpost"))
  (setq dlun (getvar "dimlunit"))
  (setq os (getvar "osmode"))
  (prompt "\nPick Dimension:  ")
  (setvar "osmode" 512)
  (command "" pause)
  (command "dim1" "_.restore" "" "@" "_.dimpost"
    (chr 34) "dimlunit" "5"  "dim1" "_.update" "@" "")
  (setvar "osmode" os)
  (setvar "dimpost" post)
  (setvar "dimlunit" dlun)
  (if c:r (c:r))
  (setq *error* olderr)
  (command "_.undo" "_end")

Coppy the above code to a text file and save it as DIMINCH.lsp.
Place the LSP file in the Support File Search Path and then load it.  (Type in at the command line: (load "DIMINCH").  Then select a dimension to convert it.

If this doesn't work for you, then, let me know, and we'll work on another solution.
Bill DeShawn


All Answers

Answers by Expert:

Ask Experts


Bill DeShawn


I can address all 2-D questions and some 3-D questions. I do programming in AutoLISP if it doesn`t involve solid modeling. I can also address menu customization issues and can help you find answers to questions I can`t answer by taking your question directly to Autodesk via their newsgroups.


I used to do electronic and mechanical design for a flat panel monitor manufacturer, and now I do architectural drafting for an architect. I did and do AutoLISP and menu customization and take pride in making my lisp routines to do the work exactly the way the client likes them done.

I had a routine published in CADENCE magazine (no longer in publication and taken over by CADALYST). Some of my routines are published on my website at

Certified completion of AutoCAD courses, AutoCAD employment experience since 1992

©2017 All rights reserved.