- ;;;;;功能注填充图案的面积
- ;;;;;制作者逆流而上的鱼QQ:736188807
- (defun c:tt ()
- (vl-load-com)
- (setq txgdlst (list "1" "2" "3" "4" "5" "6" "7" "8" "9" "10"))
- (setq
- txgc (atof
- (xlr_dcl_textlst "文字高度选择" "文字高度" "1" txgdlst)
- )
- )
- (setq ss (ssget (list (cons 0 "HATCH"))))
- (setq k -1)
- (if (/= ss nil)
- (progn
- (repeat (sslength ss)
- (setq ent (ssname ss (setq k (1+ k))))
- (setq obj (vlax-ename->vla-object ent))
- (setq mj (vla-get-area obj))
- (setq pt1 (cdr(car(reverse(entget ent)))))
- (command "TEXT" "MC" pt1 txgc 0 (strcat "S="(rtos mj 2 3)))
- )
- )
- )
- )
|