Didn't validate your data, but functionally this should work:
(defun c:DDimscale ( / desc )
(princ
(strcat "Dimscale is "
(if
(setq desc
(cadr
(assoc (getvar "dimscale")
'(
( 1 "12\" = 1'")
( 2 "6\" = 1'")
( 3 "4\" = 1'")
( 4 "3\" = 1'")
( 6 "2\" = 1'")
( 8 "1-1/2\" = 1'")
( 12 "1\" = 1'")
( 16 "3/4\" = 1'")
( 24 "1/2\" = 1'")
( 32 "3/8\" = 1'")
( 48 "1/4\" = 1'")
( 64 "3/16\" = 1'")
( 96 "1/8\" = 1'")
(128 "3/32\" = 1'")
(192 "1/16\" = 1'")
(384 "1/32\" = 1'")
)
)
)
)
desc
"NOT STANDARD"
)
"\n"
)
)
(princ)
)
I see CAB posted near verbatim code; sweet.