change color lsp

change color lsp

Anonymous
Not applicable
1,406 Views
3 Replies
Message 1 of 4

change color lsp

Anonymous
Not applicable

Hello,

I want to chagne 7(white) color from 250 color upto 255 color (all objects -> text line and so on)

is any lsp?

thank you all.

 

0 Likes
Accepted solutions (1)
1,407 Views
3 Replies
Replies (3)
Message 2 of 4

ВeekeeCZ
Consultant
Consultant

So to all objects that have assigned color 250-255 you want to change the color to 7.

0 Likes
Message 3 of 4

hak_vz
Advisor
Advisor
Accepted solution

Try this

 

(defun c:cclr (/ ss)
(setvar "cmdecho" 0)
(setq ss (ssget "X" '((-4 . "<or")(62 . 250)(62 . 251)(62 . 252)(62 . 253)(62 . 254)(62 . 255)(-4 . "or>"))))
(command "_.chprop" ss "" "C" 7 "")
(setvar "cmdecho" 1)
(princ)
)

Miljenko Hatlak

EESignature

Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
0 Likes
Message 4 of 4

Anonymous
Not applicable

thank you. good work

0 Likes