• Skip to main menu
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
  • Home
  • About
    • Contributors
    • Feedback
    • Contact
    • Privacy policy
    • Cookie Policy
CADnotes

CADnotes

CAD Tutorials and Best Practices for professionals and students

  • Featured
  • AutoCAD
    • AutoLISP
  • Revit
    • Revit Architecture Basic
    • Revit MEP Basic Tutorial
  • Inventor
You are here: Home / AutoCAD / Layer states are not saved in an AutoCAD session
AutoCAD

Layer states are not saved in an AutoCAD session

August 20, 2013 by Edwin Prakoso 7 Comments

In this Article...

Toggle
  • Changing system variable
  • About changing reference file layer visibility

Computer geek

© Igor Dutina – Fotolia.com

Do you work with external reference (XREF)? You probably found this issue. You turn off or freeze layers, save and close the file. When you open the file again, you see that the visibility for the reference is not saved.

This is because the system variable VISRETAIN is set to 0. You need to change the variable to 1.

Changing system variable

If you are not familiar with changing system variable, type VISRETAIN at command line then press [enter]. Type 1 then press [enter].

About changing reference file layer visibility

If you never work with reference file visibility before, you can manipulate the visibility from master file. You don’t need to open the reference file to turn off/freeze layers.

From layer properties manager, you can see layer list from a reference file by selecting from filters. In the layer list, you can see the layer name has the file name as prefix.

layer_properties

Share the knowledge:

Filed Under: AutoCAD Tagged With: layer

About Edwin Prakoso

I work as a Sr. Consultant in PT Cipta Satria Informatika. I've been using AutoCAD since R14 and Revit since Revit Building 9. I occasionally write for AUGIWorld magazine and I am also active in Autodesk discussion forum. I'm a member of Autodesk Expert Elite, an appreciation for individuals who give contributions to the Autodesk community.
Connect with me on twitter or LinkedIn.

0 0 votes
Article Rating
Subscribe
Login
Notify of
guest

guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

7 Comments
Kathleen
Kathleen
9 years ago

Vistretain is set to 1 and the layout still is unable to “remember” the layers that we want on or off. What else could this be?

0
Reply
Jay
Jay
Reply to  Kathleen
9 years ago

Hello Kathleen:

We’re having the same issue on one computer. Did you find a fix?

Thanks.

– Jay

0
Reply
Phil Laurette
Phil Laurette
11 years ago

Thank you for the tip! It was driving me crazy that the filters were not retained. I have no idea how this got set to zero on my system but it is back to 1 and I am a happy camper again!

0
Reply
Lester D. James
Lester D. James
11 years ago

Just want to know an easy and simple way to save and recall layer states.

0
Reply
Edwin Prakoso
Edwin Prakoso
Author
Reply to  Lester D. James
11 years ago

Lester,

You might want to read this: https://www.cad-notes.com/creating-different-drawing-representation/
And this for layer states usage: https://www.cad-notes.com/using-multiple-layer-states-in-multiple-layouts/

0
Reply
Giep van der Linde
Giep van der Linde
11 years ago

Hi Edwin, this is not a comment but a question. Sometimes I can’t delete a layer. I get the message:
Layer is associated with an object, or the layer is current or it is a default layer etc. I have tried all I know, but to no avail. Non of the reasons above is applicable. I have purged but the layer remains. Can you help me?

Kind regards

Giep

0
Reply
Edwin Prakoso
Edwin Prakoso
Author
Reply to  Giep van der Linde
11 years ago

Hi Giep,

Sorry for the late reply. It could be the layer is used in a block.
You can try to use LAYDEL, but only if you are certain there are no objects using it. Try to read this knowledge base for further information: http://knowledge.autodesk.com/support/autocad/troubleshooting/caas/sfdcarticles/sfdcarticles/Unable-to-delete-a-layer-in-AutoCAD.html

0
Reply
wpdiscuz   wpDiscuz

Primary Sidebar

Featured

10 AutoCAD Commands Only Veterans Know

The ribbon made AutoCAD easier to learn. It also hid some of its most useful commands.

Recent Articles

  • 10 Free Revit Plugins to Boost Your Productivity (Part 1)
  • AI Is an Assistant, Not a Replacement
  • Open Large Revit Models Faster: Incremental Model Open

Advertisement

Footer

New on CADnotes

  • 10 Free Revit Plugins to Boost Your Productivity (Part 1)
  • AI Is an Assistant, Not a Replacement
  • Open Large Revit Models Faster: Incremental Model Open
  • 10 AutoCAD Commands Only Veterans Know
  • Is Your Revit Model Healthy?

Recent Discussions

  • Edwin Prakoso on Open Large Revit Models Faster: Incremental Model Open
  • Simon on Open Large Revit Models Faster: Incremental Model Open
  • Edwin Prakoso on 10 AutoCAD Commands Only Veterans Know
  • Simon on 10 AutoCAD Commands Only Veterans Know
  • sssss on AutoCAD Script to Create Classic Workspace Automatically

Archieve

Copyright © 2026 · CADnotes

In this Article...

×
  • Changing system variable
  • About changing reference file layer visibility
→ In this article...
wpDiscuz