Xref to Xref Layer state overrides

Xref to Xref Layer state overrides

bpizana73
Enthusiast Enthusiast
1,534 Views
6 Replies
Message 1 of 7

Xref to Xref Layer state overrides

bpizana73
Enthusiast
Enthusiast

Hello all I have a big project with lots of different Xrefs and I have a master xref file that I have attached all the xrefs that I need for my DWG background into one file so I can xref One file.

I setup all the colors and Linetypes for the different xrefs in the main xref file with the hopes the layer overrides would hold.

When I xref the file into my dwg all the xref revert back to the original files layer states and not the ones that i set in my main file.

My visretain is set to 1 

Bianca Pizana
Coursen-Koehler Engineering & Associates
0 Likes
1,535 Views
6 Replies
Replies (6)
Message 2 of 7

Vinicius0Henrique
Contributor
Contributor

this will not happen, because its main xref in one file when referenced in another file it will come as a single block, it does not consider as separate layers.

0 Likes
Message 3 of 7

user181
Mentor
Mentor

In your master xref file use the LAYERSTATE command and create a new layer state and name it something you will recognize later. Then hit close and save the drawing. Then go into the drawing you are xrefing that into and use the LAYERSTATE  command and find the later state (it will start with the xref name) and select and hit the restore button. 

0 Likes
Message 4 of 7

Todd_Rogers
Mentor
Mentor
The XREFOVERRIDE system variable affects display and plotting, and works in conjunction with the VISRETAIN system variable. Consider these scenarios:
  • If you want the xref layers to retain their layer settings, it is recommended to set VISRETAIN and XREFOVERRIDE system variables to 0.
  • If you want the xref layers to retain the overrides you made in the current (host) drawing, it is recommended to set VISRETAIN to 1.
This assumes that the visual properties on the external reference objects are set to ByLayer.
  • When XREFOVERRIDE is set to 1, objects on xref layers are treated as if their properties are set to ByLayer.
  • When XREFOVERRIDE is set to 0, objects on xref layers honor their object property assignments.

Todd Rogers
Civil Administration
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

0 Likes
Message 5 of 7

Todd_Rogers
Mentor
Mentor

@Vinicius0Henrique XREFs do have separate layers.

Todd Rogers
Civil Administration
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

Message 6 of 7

brian.strandberg
Advisor
Advisor

Keep in mind with XREFs make sure the layer the xref is inserted on doesn't get frozen.  This can result in the whole xref not getting regenerated because the layer is frozen.  

 

I set the system variable XREFLAYER to "_XREF" so they get inserted on that layer.  This won't retroactively change the layer, only when it is attached or overlaid.  

Check out my Civil 3d blog at: http://c3dk.com/
Favorite Posts: Use Dynamo For Surface Analysis: https://youtu.be/eJNdX6guMP8
Fast Track your site grading with the new Corridor Workflow: https://youtu.be/Gg7u9-LgIL0
0 Likes
Message 7 of 7

ethanRJL26
Contributor
Contributor

I've had similar headaches and only ever found workarounds. I've created a post about this sort of thing on the C3D Idea Board (https://forums.autodesk.com/t5/civil-3d-ideas/layer-states-in-externally-referenced-drawings/idi-p/1...).

0 Likes