早就在用了- (defun C:++( / ss i txt txt1)
- (setvar "cmdecho" 0)
- (setq ss (ssget '((0 . "text"))))
- (setq i (sslength ss))
- (setq txt "0")
- (if (> i 0)
- (progn
- (while (> i 0)
- (setq i (- i 1))
- (setq txt1 (cdr (assoc 1 (entget (ssname ss i)))))
- (setq txt (strcat txt1 "+" txt))
- ))
- )
- (prin1 txt)
- (arxload "geomcal")
- (setq txt1 (getpoint""))
- (entmake
- (list '(0 . "TEXT")
- (cons 1 (rtos (cal txt) 2 2))
- (cons 10 txt1)
- (cons 40 0.8)
- (cons 11 txt1)
- (cons 72 1)
- (cons 73 2)
- (cons 7 "宋体")
- (cons 62 1)
- ))
- (princ)
- )
|