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: 

Base DWG Layer Overrides Wont XREF

2 REPLIES 2
Reply
Message 1 of 3
Baker_ADG
220 Views, 2 Replies

Base DWG Layer Overrides Wont XREF

I have a base drawing with several attached, full pathed dwgs in it. I have changed all the layer colors, line types, and line weights to the exact way i want them. 

2023-12-14_14-43-39.jpg

 

I then XREF attach that "master" drawing into my sheet/production dwgs. The "master" xref layer states all revert back to their original state. 

 

I have have changed the following variables: 

(setvar "VISRETAINMODE" 2047)
(setvar "VISRETAIN" 1)
(setvar "XREFOVERRIDE" 1)

 

I am working on Civil 3D 2023.3.1

 

I want the layer overrides I make in the "master" base file to retain throughout all attachments of that file into my production drawings. 

I do not remember this ever happening in the past. I would set the master base dwg and the layer overrides would stay.

 

TIA.

***edit***

I followed this help article 

Xref layer properties lost or reset when reopening a drawing in AutoCAD (autodesk.com) 

Jon Baker | Land Development & Infrastructure Design Manager
Alignment Design Group | Denver | Colorado
Civil 3D 2021 | Windows 10
Labels (1)
2 REPLIES 2
Message 2 of 3

This is exactly how layering has always worked. Source file layer settings are always utilized when xrefs are attached, even when nested.  If you go to the help articles on it, it explains your scenario and how the layers react with nested xrefs
https://www.autodesk.com/support/technical/article/caas/sfdcarticles/sfdcarticles/Maintaining-layer-...

Basic summary is that you should create a layerstate in your master file, export it, and then import it into your child files and apply it if you want to transfer the layer settings from the master file.

I wish it could work differently, perhaps a variable similar to VISRETAIN that if an xref is attached and nested, the original layers are ignored, and the layers from the intermediate file are what are held.


Christopher T. Cowgill, P.E.

AutoCAD Certified Professional
Civil 3D Certified Professional
Civil 3D 2022 on Windows 10

Please select the Accept as Solution button if my post solves your issue or answers your question.

Message 3 of 3
Neilw_05
in reply to: Baker_ADG

You have to understand the layer states in your master file will only apply in that file. They will not be dynamic when the master file is xref'd into other files. That is the way visretain works. It only applies to the individual source files, not a host file. If you xref the master file into other files with visretain=0, the layer states will be controlled by the files attached to the master file, not by the master file itself. You cannot make Autocad do what you are wanting. Microstation does work that way but not Autocad. I wish it did because it would greatly simplify our workflows.

Neil Wilson (a.k.a. neilw)
AEC Collection/C3D 2024, LDT 2004, Power Civil v8i SS1
WIN 10 64 PRO

http://www.sec-landmgt.com

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

Post to forums  

Rail Community


 

Autodesk Design & Make Report