Message 1 of 5

Not applicable
11-29-2018
01:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Dear All,
This is my first trail in Lisp with my own code. I have stucked at the code to update the text colours as per text value. Below is my code. Please help
(defun C:chcolor () (setq cmdold (getvar "cmdecho")) (setvar "cmdecho" 0) (setq sel1 (ssget)) (setq n (sslength sel1)) (setq count 0) (repeat n (setq sel2 (entget (ssname sel1 count))) (setq COLOR (cdr (assoc 1 sel2))) (command "CHPROP" (ssname sel1 count) "" "C" COLOR "") ) (setq count (1+ count)) (setvar "cmdecho" cmdold) (princ) )
Solved! Go to Solution.