 - (defun c:tt ()
- (setq e1 (nentsel "\n选择: ")
- s1 (car e1)
- )
- (if (= (xyp-get-dxf 0 s1) "ATTRIB")
- (progn
- (setq tx (xyp-get-dxf 1 s1)
- lst (xyp-Get-HzEngNum tx 0)
- )
- (if (setq a (distof (cadr lst)))
- (xyp-SubUpd s1 1 (strcat (car lst) (rtos (+ a 1) 2 0)))
- )
- )
- )
- (princ)
- )
|