第1个回答 2020-09-27
;;获取当前图档中所有文字样式的列表
;;(get-style)
(defun get-style ( / list-sty key data-sty name-sty)
(setq list-sty nil)
(setq key T)
(while (setq data-sty (tblnext "style" key))
(setq name-sty (cdr (assoc 2 data-sty)))
(setq list-sty (cons name-sty list-sty))
(setq key nil)
)
(reverse list-sty)
)