Community
Civil 3D Forum
Welcome to Autodesk’s Civil 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Civil 3D topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Cannot Change Color of XREF Layers

12 REPLIES 12
SOLVED
Reply
Message 1 of 13
mmbruce
34395 Views, 12 Replies

Cannot Change Color of XREF Layers

I am referencing a survey file in my site plan.  Both were created using Civil 3D.  I want to change the color of all of the reference files' layers to 250, so I selected them all in the layer properties manager and did so.

 

However, some layers are not changing colors.  One layer is red in the reference file, but comes through on the site plan as magenta.  Some Civil3D structures are also refusing to change colors.

 

I selected all of the objects in the reference file and made sure their colors were "by layer," but it did not completely fix the problem.

 

What am I missing?

 

Thank you for your help.

12 REPLIES 12
Message 2 of 13
dniehaus
in reply to: mmbruce

A couple of things to check: if the objects are blocks the entities within the blocks may have colors assigned. This would go for any 3d objects in the subject drawing as well. Entities may have layer and colors assigned within the properties of the object. Something else, is your xref inserted on layer 0. Makes a difference. Over the years I have run into similar issues many times with drawings that come from out of house or that do not follow sensible layer/color/linetype standards. You may just have to drill down on the offending entities till you find the problem.

Message 3 of 13
AlmasSuljevic
in reply to: mmbruce

Just an idea to try. There is a VISRETAIN system variable. You may want to give it a try. 

0=The layer table, as stored in the reference drawing (xref), takes precedence.

1=Xref-dependent layer changes made in the current drawing take precedence.



Almas Suljevic
Product Support Specialist
Autodesk Global Subscription and Support
Autodesk, Inc.

Please click on "Accept as Solution" if post helped you resolve the issue.
Message 4 of 13
mmbruce
in reply to: mmbruce

My VISRETAIN is set to 1, that's not an issue.

Message 5 of 13
Sinc
in reply to: mmbruce

If the color of an object is set in a C3D Style, you can't change it by changing layer colors.

Sinc
Message 6 of 13
gccdaemon
in reply to: Sinc

Sinc is right, you'll have to change the colors in your styles to byblock or bylayer.

Andrew Ingram
Civil 3D x64 2019
Win 10 x64 Pro
Intel Xeon E5-1620
32 GB Ram
Message 7 of 13
Hidden_Brain
in reply to: mmbruce

try commandline SETBYLAYER in the actual xref drawing, and include the blocks as well. this may help finding "offenders" to some extent.

Message 8 of 13
kruzcad
in reply to: mmbruce

VISRETAIN may be the answer you are looking for.

 

If I'm understanding you correctly, it sounds like you have an Xref  that you changed in terms of layer color and it's not reflecting in your associated drawings.  So, you went into your original file (the one acting as the "mother" xref) and changed a layer color through your LAYERS PROPERTY MANAGER; saved it, and went back into your drawing files which contain that Xref, expecting it to change in your host drawings, but the layer color did not change!

Perhaps you even tried reloading it in the INSERT-EXTERNAL REFERENCES, yet to no avail.

 

Solutions:

Set the VISRETAIN to (0) zero in your host files, and RELOAD the Xref in INSERT-EXTERNAL REFERENCES.  You will finally see your drawing taking on the layer color change you made in your original Xref.

 

A second work-around is to go into your LAYERS PROPERTY MANAGER of those host drawings and change the color of the layer there.  This works fine if you have only one or two files that rely on that particular Xref...

 

A third (and perhaps obvious) work-around would be to delete the Xref, DETACH it in INSERT-EXTERNAL REFERENCES, and re-insert the "newly-revised" Xref.  This of course, is more of an inconvenience, plus it sort of defeats the whole idea of relying on the attributes of what an Xref is all about, doesn't it?

 

So, setting your VISRETAIN to (0) is probably the best solution for this particular circumstance.

 

 

However, that being said, I usually set my VISRETAIN to (1) one.  The reason is,  I like being able to change (or customize) the pen color of a layer(s) to reflect the work I do in other drawing files.  For example, I like toning down the overall floor plan color when I do electrical plans so the electrical symbols can really stand out; that's just one example.

 

To me, VISRETAIN is all about layer manipulation in Xrefs:  VISRETAIN (1) allows for that kind of layer color flexibility in the host drawings, whereas VISRETAIN (0) carries-over and maintains - the layer color change you make in the original drawing being used as the Xref.

 

WARNING:  If your VISRETAIN is set to (0) in a host drawing, and you start customizing your layers of that Xref in your host drawing, those changes will not be maintained when you SAVE it.  You will need to set your VISRETAIN to (1) if you want those color changes you made in that session to remain.

Message 9 of 13
StoneGoose
in reply to: mmbruce

I realise this is an old thread but I encountered a similar problem and then realised what the issue was myself. 

 

Some people make the mistake of drawing lines in a drawing in a certain layer, but then when they want to draw a new line, instead of creating a new layer and drawing it with this, they simply keep using the same layer and change the line colour from "By Layer" to the colour of their choice.

 

This means then that although you load the x-ref in and then change the colour of the x-ref layers, because some of the lines are not drawn with the colour selected "By Layer", you can change the colours in your drawing to whatever you want but they wont change these lines.

 

The way to fix it is to open the x-ref itself and find the lines that have had colours defined different to the their Layer colour. Either change these to be colour "By Layer" or put them in a new layer and define it as the colour they have been drawn as and then change these lines' colours to "By Layer".

 

Now when you re-attach the x-ref with this all fixed you will be able to choose the x-ref layer colours and they will change properly.

 

Hope this helps someone.

Message 10 of 13
Yunlena
in reply to: StoneGoose

I just did this and came to the same conclusion.... 

Best,
Christina
-------
Map 3D 2019 | Civil 3D 2019
Windows 10 | Lenovo P50S
Message 11 of 13
sndbMA885
in reply to: mmbruce

Hello,

After changing Xref layers to By layer then 

You can use below AutoCAD commend 

XREFOVERRIDE

make it its value to 1

Hope it will help you

 

Cheers 

Message 12 of 13
amaljacob
in reply to: AlmasSuljevic

This worked, Many thx

Message 13 of 13
dani.aarons
in reply to: kruzcad

The LAYER PROPERTY MAMAGER solution worked!
Thank you.

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

Post to forums  

Rail Community


Autodesk Design & Make Report