XREFOVERRIDE (System Variable)

Controls the display of object properties on referenced layers.

Type:Integer
Saved in:Drawing
Initial value:0

The XREFOVERRIDE system variable affects display and plotting, and works in conjunction with the VISRETAIN system variable. If you want the xref layers to retain their original layer settings, it is recommended to set VISRETAIN and XREFOVERRIDE system variables to 0.

0 When the properties of the objects (such as color, linetype, lineweight, transparency, or plot style) on the external reference drawing are set to ByLayer, any changes to the xref layer properties are displayed in the current drawing (legacy behavior)
1 When the visual properties of the objects on the external reference drawing are not set to ByLayer, objects on xref layers are treated as if their properties are set to ByLayer and every external reference layer can have its own set of layer overrides
Note: The XREFOVERRIDE system variable only applies to DWG xrefs, not to other references such as underlays.