Check out the variable VISRETAIN. Type in on the command line. It most likely is set to “1” which means retain the XREF layer settings. This is a good thing and it should be set to “1”.
But if there are visibility problems – it may have become corrupted. You may start getting layers not showing up, or layers that are the wrong color. Detach the offending xref. Set VISRETAIN to “0” (off). Purgeall. Then reattach the XREF. See if that fixes it. Be sure to set VISRETAIN back to “1”.
By the way, when you set it to “0” – you will loose all of your layer ON/Off settings for all xrefs, not just the one that was not working right.
If you enjoyed this post, make sure you subscribe to my RSS feed!


February 10th, 2005 at 1:41 pm
I don’t think you have to detach and reattach to reset the layer properties - I think a reload will do it. I used to have to do this a lot in earlier versions of Autocad - if you changed a layer linetype in a xref’d file, the parent file would become “confused”. This doesn’t seem to happen with the 2000+ versions - I can’t even remember when I last had to do it.
May 1st, 2008 at 11:56 am
In production (or sheet) drawings visretain can cause some real problems. One of my users is finshed with a 200 sheet roadway improvement plan set and the Illinois DOT says although it is not required to be in microstation, they want the line types to look like theirs. Now he has to detach, set vretain to 0, re-attach, reestablish all layer states, etc.