ByLayer Color Issue

ByLayer Color Issue

Anonymous
Not applicable
4,449 Views
20 Replies
Message 1 of 21

ByLayer Color Issue

Anonymous
Not applicable

Sometimes when I select all objects or a large number of objects in a drawings and go to change the color setting to "ByLayer", it is the option already selected, even though I know that that is not the setting because the object's color is wrong. Then when I go about selecting fewer numbers of objects, the tab goes blank because there are multiple different color options selected in my selection group.

0 Likes
4,450 Views
20 Replies
Replies (20)
Message 2 of 21

sthompson1021
Advisor
Advisor

Not really an answer to your problem with the properties pallet, but are you familar with the SETBYLAYER command. You can change the settings to choose which properties you want to change.

0 Likes
Message 3 of 21

Anonymous
Not applicable

Lemme show you what I mean:

 

In the accompanying image, the lines towards the left side that are cyan are on a layer whose color is set to green. At the top it says color is ByLayer, but that's obviously not true.

 

0 Likes
Message 4 of 21

sthompson1021
Advisor
Advisor

I can't duplicate the problem. If you select just one line that you know is not the right color, does the properties show it correctly? Are you using vanilla autocad?

0 Likes
Message 5 of 21

Anonymous
Not applicable

If I select a line that, by itself, has a color setting other than ByLayer, it displays the actual color that that line is.

0 Likes
Message 6 of 21

sthompson1021
Advisor
Advisor

If you have everything selected in like in your screen shot and change the color to something else and then right back to bylayer, will it change the color of the lines that are wrong?

0 Likes
Message 7 of 21

dgorsman
Consultant
Consultant

First though, check the PROPOBJLIMIT system variable: https://knowledge.autodesk.com/support/autocad/learn-explore/caas/CloudHelp/cloudhelp/2016/ENU/AutoC...

 

If that doesn't have an effect, then we need to consider the content ie. are those basic AutoCAD entities (lines, arcs, etc.) or something from a vertical or third-party product?

----------------------------------
If you are going to fly by the seat of your pants, expect friction burns.
"I don't know" is the beginning of knowledge, not the end.


0 Likes
Message 8 of 21

pendean
Community Legend
Community Legend
Aren't those blocks? SETBYLAYER command to fix internal block definitions is the way to go (look up usage in HELP), assuming those block internals aren't actually on other layers you have with different color layers.
0 Likes
Message 9 of 21

Anonymous
Not applicable

 

@pendean wrote:
Aren't those blocks? SETBYLAYER command to fix internal block definitions is the way to go (look up usage in HELP), assuming those block internals aren't actually on other layers you have with different color layers.


This command helped, but didn't solve the issue. I set one line to blue, then pressed CTRL + A to select everything. The color tab still says ByLayer, even though I just set a line to be Blue.

0 Likes
Message 10 of 21

pendean
Community Legend
Community Legend
Post that DWG file for everyone here to test for you.
0 Likes
Message 11 of 21

Anonymous
Not applicable

@pendean wrote:
Post that DWG file for everyone here to test for you.

 

0 Likes
Message 12 of 21

pendean
Community Legend
Community Legend

OK, you do know that each one of those objects is on a separate layer, and each of those separate layers is a unique color, which is what they are set to be (color is the layer color, hence "bylayer").

Are you perhaps getting distracted by the fact that when you select many of these objects the color next to the word BYLAYER in the properties palette doesn't change color? It will normally stay whatever color was first there.

0 Likes
Message 13 of 21

Anonymous
Not applicable

@pendean wrote:

OK, you do know that each one of those objects is on a separate layer, and each of those separate layers is a unique color, which is what they are set to be (color is the layer color, hence "bylayer").

Are you perhaps getting distracted by the fact that when you select many of these objects the color next to the word BYLAYER in the properties palette doesn't change color? It will normally stay whatever color was first there.


Yes, I am aware that each layer has a different color. What I'm talking about is that, when you have multiple objects selected, if they're on the same layer, for example, the layer tab in the layer palette says what layer they're on; however, if those objects are on different layers, that tab is now blank. 

 

Similarly, when I have different objects selected, if they all have the same color setting, such as "ByLayer", it should display in the color tab, whereas if they have different color settings, the tab goes blank. The problem is, sometimes when I select a group of objects, the color setting says "ByLayer" even when not every object in that selection is set to the "ByLayer". Then when I select a smaller group of objects, the tab goes blank.

0 Likes
Message 14 of 21

pendean
Community Legend
Community Legend

BYLAYER is a universal setting: that entry does not go blank if all the objects are set BYLAYER. Actual colors are ignored since they are all set to the color BYLAYER.

BYLAYER is the color (wrap your head around that): it's that simple. LAYER command controls them, they are a LAYER command setting, not a PROPERTIES setting. They are all color=bylayer.

BYLAYER is the color.

BYLAYER can also be a linetype.
BYLAYER can also be an Lweight setting.

You were taught wrong: now you know better.

0 Likes
Message 15 of 21

sthompson1021
Advisor
Advisor

I understand what you are talking about, I just can't reproduce it. You haven't answered some of the questions asked. Are you using vanilla autocad or a verticle like electrical? When I opened your dwg I did not see any of the lines that you said were cyan when the layer they are on is set to green. Were they still in the dwg you posted? Were they created with a plugin app or are they just plain autocad objects.

0 Likes
Message 16 of 21

Anonymous
Not applicable

@pendean wrote:

BYLAYER is a universal setting: that entry does not go blank if all the objects are set BYLAYER. Actual colors are ignored since they are all set to the color BYLAYER.

BYLAYER is the color (wrap your head around that): it's that simple. LAYER command controls them, they are a LAYER command setting, not a PROPERTIES setting. They are all color=bylayer.

BYLAYER is the color.

BYLAYER can also be a linetype.
BYLAYER can also be an Lweight setting.

You were taught wrong: now you know better.


First off, to clarify, I've been saying palette when I mean panel. My apologies.

 

But what happens when you select multiple objects that aren't all set to ByLayer?

 

On a side note, I just ran a test: I changed a line to be Blue, then selected all objects. The color tab in the Properties panel still said "ByLayer", but when I opened the the Properties palette, it said *VARIES*

0 Likes
Message 17 of 21

Anonymous
Not applicable

 


@sthompson1021 wrote:

I understand what you are talking about, I just can't reproduce it. You haven't answered some of the questions asked. Are you using vanilla autocad or a verticle like electrical? When I opened your dwg I did not see any of the lines that you said were cyan when the layer they are on is set to green. Were they still in the dwg you posted? Were they created with a plugin app or are they just plain autocad objects.


Regular AutoCAD 2013. 

 

The lines weren't cyan because I've been working on the drawing as I've been posting about it. The issue still exists no matter the specific color of the object.

 

I guess I never posted my main actual problem: On some drawings, when I select all objects, even if I've exploded the blocks, if I click "ByLayer" in the color tab of the Properties Panel, it doesn't change all objects' color to "ByLayer". I have to select groups of objects at a time and change them manually. the SETBYLAYER command may help in the future, but I don't think it solves the initial issue.

0 Likes
Message 18 of 21

pendean
Community Legend
Community Legend

 

HA! you have PICKFIRST variable turned off. Look it up in HELP and turn it back on.

 

 

Otherwise... when all objects are set to BYLAYER, the color entry only shows bylayer when you select them all, even if they are different colors. See below.

Capture.PNG

 

 

 

 

When the objects are NOT set to Bylayer, those entries are blank. I'm using one of my files in this screenshot to lessen your confusion

 

Capture2.PNG

 

That's it.

 

Good luck.

0 Likes
Message 19 of 21

Anonymous
Not applicable

Sorry, PICKFIRST was set to 1. I tried the same test: set a line to Blue, CTRL + A, this is the result:

0 Likes
Message 20 of 21

pendean
Community Legend
Community Legend
Is PICKADD on as well? Otherwise I cannot replicate your issue here at all: you saw my screenshots, they act normal.
0 Likes