 - (defun c:tt ()
- (if (and (setq s1 (entsel "\n选择尺寸: "))
- (setq ent (entget(car s1)))
- (= (cdr(assoc 0 ent)) "DIMENSION")) (progn
- (setq dim (tblsearch "DIMSTYLE" (cdr(assoc 3 ent))))
- (setq txt (cdr(assoc 1 ent)))
- (if (wcmatch txt "*\\H#*x;*")
- (setq h (atof(substr txt (+ (vl-string-position (ascii "H") txt) 2))))
- (setq h 1)
- )
- (* h (cdr(assoc 40 dim)) (cdr(assoc 140 dim)))
- ))
- )
|