(defun C:TT (/ E EN I LEN SS)
(if (setq SS (ssget '((0 . "DIMENSION"))))
(progn (setq LEN (sslength SS))
(setq I 0)
(repeat LEN
(setq E (ssname SS I)
EN (entget E)
EN (subst (cons 1 (itoa (fix (cdr (assoc 42 EN)))))
(assoc 1 EN)
EN
)
)
(entmod EN)
(setq I (1+ I))
)
)
)
)