Lisp to set layers to true color

Lisp to set layers to true color

Anonymous
Not applicable
1,644 Views
2 Replies
Message 1 of 3

Lisp to set layers to true color

Anonymous
Not applicable

im having trouble setting this lisp to change the needed layer to true color. it works for index colors but just not true color. Can someone please help me out. not sure what im missing. thanks

 

 

 

(and (setq w (car (entsel "\nPick an xref: ")))
(setq x (cdr (assoc 2 (entget w))))
(setq p (tblobjname "block" x))
(findfile (cdr (assoc 1 (entget p))))
(if (= (cdr (assoc 410 (entget w))) (getvar 'ctab) "Model")
(vl-cmdf "_.layer" "_COLOR" 0,0,255 (strcat x "|*") "")
(vl-cmdf "_.vplayer" "_color" 11 (strcat x "|*") "_Current" "")
)

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

rkmcswain
Mentor
Mentor
Accepted solution

Everything you need should be right here.

R.K. McSwain     | CADpanacea | on twitter
0 Likes
Message 3 of 3

Anonymous
Not applicable

perfect thank you