VISRETAIN system variable

Visibility retain

Controls the visibility, color, linetype and lineweight of an XRef, and if path changes to nested XRefs are saved. If the PSTYLEPOLICY system variable is off (0), also controls the plotstyles of XRef-dependent layers.

  • If Off (0): Changes made to XRefs-dependent layers in the current drawing are valid in the current session only and are not saved with the drawing. When the current drawing is reopened, the layer table is reloaded from the reference drawing and the current drawing reflects those settings. The layer settings affected are On, Off, Freeze, Thaw, Color, Ltype, LWeight, and PStyle (if PSTYLEPOLICY is set to 0).
  • If On (1): Layer settings are saved with the current drawing's layer table and persist from session to session.
Type:

Short

Saved in:

Drawing

Range:

0 to 1

Default value:

1

Possible values:

0: Off, the layer table, as stored in the XRef takes precedence

1: On, XRef-dependent layer changes made in the current drawing take precedence