;;统计文字
(defun C:TT (/ TT-TEMP LIST-SAME FILE FILENAME
I LEN PRE_LIST RETURN SS STR
TEXT_LIST X
)
(princ "\n统计文字并写入文本文档 ")
(defun TT-TEMP (A B / RETURN I)
(setq I -1)
(repeat (+ (- B A) 1)
(setq RETURN (cons (chr (+ A (setq I (1+ I)))) RETURN))
)
(reverse RETURN)
)
(defun LIST-SAME (LST / A LEN X RETURN)
(while LST
(setq A (car LST))
(setq LEN (length LST))
(setq LST (vl-remove-if '(lambda (X) (= A X)) LST))
(setq RETURN (cons (list A (- LEN (length LST))) RETURN))
)
RETURN
)
有框选的功能,但选择不了对象
;;统计文字
(defun C:TT (/ TT-TEMP LIST-SAME FILE FILENAME
I LEN PRE_LIST RETURN SS STR
TEXT_LIST X
)
(princ "\n统计文字并写入文本文档 ")
(defun TT-TEMP (A B / RETURN I)
(setq I -1)
(repeat (+ (- B A) 1)
(setq RETURN (cons (chr (+ A (setq I (1+ I)))) RETURN))
)
(reverse RETURN)
)
(defun LIST-SAME (LST / A LEN X RETURN)
(while LST
(setq A (car LST))
(setq LEN (length LST))
(setq LST (vl-remove-if '(lambda (X) (= A X)) LST))
(setq RETURN (cons (list A (- LEN (length LST))) RETURN))
)
RETURN
)