when dimensioning circles, the dimensions come in as mtext
(i hate mtext) so i wrote this to explode the mtext however, it leaves behind the diameter symbol in the text. (I asked this at the autodesk forum but ill ask here also as this place gets faster responses.) is there a way to eliminate or suppress that symbol from the text?
(defun C:EXPDIM ( / ss xy pt1 pt2 C ent elist )
(Command "_dimdiameter" pause "" pause "exit")
(setq xy (getvar "lastpoint"))
(setq pt1 (list (- (car xy) 0.50)(- (cadr xy) 0.50)))
(setq pt2 (list (+ (car xy) 0.50)(+ (cadr xy) 0.50)))
(setq ss (ssget "c" pt1 pt2))
(if ss
(progn
(setq ent (ssname ss 0))
(setq elist (entget ent))
(if (= (cdr (assoc 0 elist)) "MTEXT")
(command "explode" ent)
); if
); progn
); if
(princ)
); function