Jump to content

Recommended Posts

Posted

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

Posted

The title of the thread says "layer color", but your text says "background color". Not sure what you want to change.

Posted

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.

Posted

So you want to change the colors of all the layers in all the XREFS?

 

This will do it:

 

(command "._layer" "_C" "250" "*|*" "")

 

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...

Posted

Awesome I'll give it a go!!! Xref's should work, looking to change the actual background data color, though.

  • 11 months later...
Posted

Is there a way to change the color and preserve the on status of the layers?

Posted
Awesome I'll give it a go!!! Xref's should work, looking to change the actual background data color, though.

 

Not sure if you want to play around with WMFBKGND variable?

Posted
Is there a way to change the color and preserve the on status of the layers?

 

 

Hi Lolcott and welcome to CADTutor,

 

When changing the colour of a layer the original layer stays current, could you elborate on what you mean by "ON STATUS" please :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...