- (defun c:tt (/ mode p1 tx)
- (or j (setq j 0))
- (setq mode t)
- (while (and mode (setq p1 (getpoint "\n基点<退出>: ")))
- (setq j (1+ j)
- tx (cond ((< j 10) (strcat "L00" (itoa j)))
- ((< j 100) (strcat "L0" (itoa j)))
- ((< j 1000) (strcat "L" (itoa j)))
- (t nil)
- )
- )
- (if tx
- (command "text" "j" "mc" p1 20 0 tx)
- (setq mode nil)
- )
- )
- (princ)
- )
|