Who’d have thought layer notification would create so much response? I’ve received several more suggestions regarding my previous posts on Layer Evaluation and Layer Notification.
Thanks to Mark for providing the following response and code:
The annoyance is most typically found when starting a new session of AutoCAD. When AutoCAD is started it typically opens in a drawing. The drawing name is "Drawing1.dwg". A hybrid solution to the problem listed under the "Prompting to save new drawings" post is to only have the code run on drawings that are not named "Drawing1.dwg".
;; RUN WHEN OPENING DRAWING
(IF (/= "Drawing1.dwg" (getvar "dwgname"))
(PROGN
(IF (/= 0 (GETVAR "LAYEREVAL")) (SETVAR "LAYEREVAL" 0))
)
)
As Mark points out, the previous code is specific to files named Drawing1.dwg. If you want a more general solution, consider the suggestions I received from Jim and Jimmy, two different people with similar names and solutions! They suggest resetting the DBMOD variable to “trick” AutoCAD into thinking no changes were made to the drawing. You can learn the details and copy the code from Jimmy Bergmark’s blog, JTB World.
Thanks to Mark, Jim, & Jimmy for the detailed follow-up on what seemed to be a simple solution!

Subscribe