This seems to work for me, in a quick test.
(vl-load-com)
(vlax-map-collection
(vla-get-layers
(vla-get-activedocument
(vlax-get-acad-object)))
'(lambda (x)
(if
(and
(= :vlax-true (vla-get-freeze x))
(= :vlax-false (vla-get-layeron x))
)
(vla-put-color x 9)
)
)
)
--
Autodesk Discussion Group Facilitator
"KDispoto" wrote in message
news:5782018@discussion.autodesk.com...
What would the lisp be to turn all "frozen and off " layers to color 9?
thanks!