The title of the thread says "layer color", but your text says "background color". Not sure what you want to change.
Registered forum members do not see this ad.
I'm looking to see if there's a routine that will change the background color to a specific color. Would be great if the routine would open up several drawings and do the color in order. Is this even possible? Any help would be appreciated. Working on AutoCAD 2008 right now.
Tricia




The title of the thread says "layer color", but your text says "background color". Not sure what you want to change.
Sorry, should be more specific!I work in the hvac field, and we get architectural backgrounds in. The routine would affect the layer manager though. Sorry for the confusion. It is actual the layer colors that would need globally changed across the board. At times we get in 18 different files that all need converted to a set color.




So you want to change the colors of all the layers in all the XREFS?
This will do it:
That is lisp code. You can put it in a tool palette button, a toolbar button, paste it at the command line, or wrap it in a (defun) so you can type a shortcom...Code:(command "._layer" "_C" "250" "*|*" "")
Last edited by rkmcswain; 9th Jan 2008 at 08:39 pm. Reason: add
Awesome I'll give it a go!!! Xref's should work, looking to change the actual background data color, though.
Is there a way to change the color and preserve the on status of the layers?
Lee Mac Programming
With Mathematics there is the possibility of perfect rigour, so why settle for less?
Just another Swamper
Registered forum members do not see this ad.
Lee Mac Programming
With Mathematics there is the possibility of perfect rigour, so why settle for less?
Just another Swamper
Bookmarks