Community
AutoCAD Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

A question about colors

6 REPLIES 6
Reply
Message 1 of 7
Anonymous
361 Views, 6 Replies

A question about colors

Anonymous
Not applicable

1. I have a file A and set the color of a layer01 to RED.

2. Then I draw a line on layer01 and set it to Bylayer.

3. I use this file A as an xref in file B. I xref it in a layer02 in file B, and layer02 has been set to color YELLOW.

4. Then, I click the xref and set the color of it to BLUE.

question:

what is the color of the line I draw in step 2?

The color is Bylayer originally, which should be RED.

but I insert xref into layer02 in file B, so Bylayer should make the line to YELLOW.

Finally, I select the xref and set color to BLUE from the property panel, which should make lines from xref to BLUE.

 

Could anyone explain this confusing example for me?  Thanks!!!

0 Likes

A question about colors

1. I have a file A and set the color of a layer01 to RED.

2. Then I draw a line on layer01 and set it to Bylayer.

3. I use this file A as an xref in file B. I xref it in a layer02 in file B, and layer02 has been set to color YELLOW.

4. Then, I click the xref and set the color of it to BLUE.

question:

what is the color of the line I draw in step 2?

The color is Bylayer originally, which should be RED.

but I insert xref into layer02 in file B, so Bylayer should make the line to YELLOW.

Finally, I select the xref and set color to BLUE from the property panel, which should make lines from xref to BLUE.

 

Could anyone explain this confusing example for me?  Thanks!!!

6 REPLIES 6
Message 2 of 7
Kent1Cooper
in reply to: Anonymous

Kent1Cooper
Consultant
Consultant

Nested objects with ByLayer color [or linetype, or...] carry the properties of the nested Layer they were drawn on, not of Layers or Xrefs they're nested in.  Try giving such objects ByBlock color, rather than ByLayer.  Or, drawing them on Layer 0 should result in their being yellow [taking the properties of the Layer the Xref is on, but not the override color applied to the Xref].  Or, in file B, you can change the color of the nested-in-file-A layer01 if you want -- set the VISRETAIN System Variable appropriately if you want that color to "stick."

Kent Cooper, AIA
0 Likes

Nested objects with ByLayer color [or linetype, or...] carry the properties of the nested Layer they were drawn on, not of Layers or Xrefs they're nested in.  Try giving such objects ByBlock color, rather than ByLayer.  Or, drawing them on Layer 0 should result in their being yellow [taking the properties of the Layer the Xref is on, but not the override color applied to the Xref].  Or, in file B, you can change the color of the nested-in-file-A layer01 if you want -- set the VISRETAIN System Variable appropriately if you want that color to "stick."

Kent Cooper, AIA
Message 3 of 7
RobDraw
in reply to: Anonymous

RobDraw
Mentor
Mentor

@Anonymouswrote:

2. Then I draw a line on layer01 and set it to Bylayer.

what is the color of the line I draw in step 2?


ByLayer

 


@Anonymouswrote:

1. I have a file A and set the color of a layer01 to RED.

2. Then I draw a line on layer01 and set it to Bylayer.

3. I use this file A as an xref in file B. I xref it in a layer02 in file B, and layer02 has been set to color YELLOW.

4. Then, I click the xref and set the color of it to BLUE.

 

Could anyone explain this confusing example for me?


 


The display color of that line will be the color assigned to the layer in the XREF file until you change the properties of the corresponding XREF layer in your referencing file. If you want that layer to permanently have a different color than the one assigned in the XREF file, you will have to set VISRETAIN to 1.

 

Good luck!


Rob

Drafting is a breeze and Revit doesn't always work the way you think it should.
0 Likes


@Anonymouswrote:

2. Then I draw a line on layer01 and set it to Bylayer.

what is the color of the line I draw in step 2?


ByLayer

 


@Anonymouswrote:

1. I have a file A and set the color of a layer01 to RED.

2. Then I draw a line on layer01 and set it to Bylayer.

3. I use this file A as an xref in file B. I xref it in a layer02 in file B, and layer02 has been set to color YELLOW.

4. Then, I click the xref and set the color of it to BLUE.

 

Could anyone explain this confusing example for me?


 


The display color of that line will be the color assigned to the layer in the XREF file until you change the properties of the corresponding XREF layer in your referencing file. If you want that layer to permanently have a different color than the one assigned in the XREF file, you will have to set VISRETAIN to 1.

 

Good luck!


Rob

Drafting is a breeze and Revit doesn't always work the way you think it should.
Message 4 of 7
Anonymous
in reply to: RobDraw

Anonymous
Not applicable

It should be RED because I set its property to Bylayer, which is the same as the color of Layer01.

So what is you answer for this question? 😛

0 Likes

It should be RED because I set its property to Bylayer, which is the same as the color of Layer01.

So what is you answer for this question? 😛

Message 5 of 7
RobDraw
in reply to: Anonymous

RobDraw
Mentor
Mentor

What is the question?


Rob

Drafting is a breeze and Revit doesn't always work the way you think it should.
0 Likes

What is the question?


Rob

Drafting is a breeze and Revit doesn't always work the way you think it should.
Message 6 of 7
cadffm
in reply to: Anonymous

cadffm
Consultant
Consultant
All answers of your first question is: RED
Except you manipulated the Xref-Layer color of the Layer01 of this External reference.
Except you manipulated the display color via pagesetup and plostyletable.

Sebastian

0 Likes

All answers of your first question is: RED
Except you manipulated the Xref-Layer color of the Layer01 of this External reference.
Except you manipulated the display color via pagesetup and plostyletable.

Sebastian

Message 7 of 7
cadffm
in reply to: Anonymous

cadffm
Consultant
Consultant
Line color is ByLayer
The Layer of line is Layer01
Layer01 color is RED.

The Layer of line is every time Layer01..
Except fileA is attached as Xref, then the layer is <referencename>|Layer01
Which have color RED if you dont manipulate the color in fileB.

I had forgotten the third EXCEPT:
Except you dont manipulate the <referencename>|Layer01 color in Layout or Layout-Vieport (overwrite Layer properties in current viewport)

Sebastian

0 Likes

Line color is ByLayer
The Layer of line is Layer01
Layer01 color is RED.

The Layer of line is every time Layer01..
Except fileA is attached as Xref, then the layer is <referencename>|Layer01
Which have color RED if you dont manipulate the color in fileB.

I had forgotten the third EXCEPT:
Except you dont manipulate the <referencename>|Layer01 color in Layout or Layout-Vieport (overwrite Layer properties in current viewport)

Sebastian

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report