这
- (defun addtreelabel (/ s p)
- (if (not (tblsearch "LAYER" "lm-label"))
- (command "_.-layer" "_m" "lm-label" "" "")
- )
- (command "_.-layer" "s" "lm-label" "")
- (if (and (/= "" (setq s (getstring "\n Enter tree number: "))) (numberp (read s)))
- (while (setq p (getpoint "\n Specify leader start point:"))
- (command "leader" "_non" p "_non" pause "" (strcat "T" s) "")
- (setq s (itoa (1+ (atoi s))))
- )
- )
- (princ)
- )
|