 - (defun acal (str)
- (if (null (type c:cal))
- (and (or
- (and (findfile "GEOMCAL.CRX") (ARXLOAD "GEOMCAL.CRX"))
- (and (findfile "GEOMCAL.ARX") (ARXLOAD "GEOMCAL.ARX"))
- )
- (princ "\n**LOAD:CAL**")
- )
- )
- (c:cal str)
- )
- (defun c:tt (/ en en_data i num ss str)
- (setq ss (ssget '((0 . "text")(1 . "~*[~--9]*"))))
- (setq i 0)
- (setq str "0")
- (repeat (sslength ss)
- (setq en_data (entget (setq en (ssname ss i))))
- (setq num (cdr (assoc 1 en_data)))
- (setq str (strcat str "+" num))
- (setq i (1+ i))
- )
- (setq txt_add (acal str))
- (command "text" "non" pause "" "" (vl-princ-to-string txt_add) )
- (prin1)
- )
|