有大佬帮忙改一下 真彩色>>>索引色 吗
;; (RGB2Index '(255 15 15))
(defun RGB2Index (rgb / co)
(setq co (vla-get-truecolor (vla-get-ActiveLayer (vla-get-ActiveDocument (vlax-get-acad-object)))))
(vla-setRGB co (car rgb) (cadr rgb) (caddr rgb))
(vla-get-ColorIndex co)
) 为何要改真彩色? xyp1964 发表于 2024-3-15 13:43
;; (RGB2Index '(255 15 15))
(defun RGB2Index (rgb / co)
(setq co (vla-get-truecolor (vla-get-A ...
直接帮忙直接发个完整版LISP吗 :loveliness:
页:
1
[2]