Jump to content

changing (non bylayer) colors of X-ref drawing


freebutterflyx

Recommended Posts

I allways use drawings of other people as Xref and I allways change every color of this Xref to grey so I can draw my own details on top of it in my own colors and use my own plot style table.

 

But often things (and parts of blocks) in the xref are not drawn in a bylayer color. So if I change the layer colors of my xref, the color of this object isn't changed.

 

Sometimes I change the colors in the original file (after exploding blocks). But this is nog very practical because I have to do it again when I receive an updated xref.

 

Is there a way I can change everything in a xref to a certain color (grey), no matter what color it is originaly (bylayer or not). Possible in modelspace or in a viewport.

 

I use acad 2009 but I have acces to acad 2016.

Link to comment
Share on other sites

Try the command SETBYLAYER I have had to do the same as you & most of the time this works. When you start the command if you type S it will let you select what you want to change.

Link to comment
Share on other sites

Try the command SETBYLAYER I have had to do the same as you & most of the time this works. When you start the command if you type S it will let you select what you want to change.

 

I tried it but it doesn't work like I would like to.

 

Currently I have a dwg I use as Xref.

In this xref are a lot of (large) blocks all on layer 0. If I explode these blocks, I see the elements of this blocks are on different layers and the colors are not bylayer.

 

The setbylayer command doesn't work apparently with an xref. I only works within the original drawing but I prefer not to change the original drawing.

Link to comment
Share on other sites

The setbylayer command doesn't work apparently with an xref. I only works within the original drawing but I prefer not to change the original drawing.

 

Do not use the original. Use a copy of it. We've been doing it this way for a long time. SETBYLAYER was a real time saver for us.

Link to comment
Share on other sites

I wrote this simple lisp to combat that prob as I get that a lot here

 

(defun C:CBL () (COMMAND "CHANGE" PAUSE "" "P" "C" "BYLAYER" "")

(PROMPT "nCOLOR CHANGED TO BYLAYER."))

 

after you appload this just type cbl

 

here is another lisp for changing linteypes to by layer

 

 

(defun C:LTBL () (COMMAND "CHANGE" PAUSE "" "P" "LT" "BYLAYER" "")

(PROMPT "nLINETYPE CHANGED TO BYLAYER."))

 

 

type ltbl

Link to comment
Share on other sites

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