FILEDIA turned off during FILEOPEN?
So we have a couple of custom programs that we use a lot at our office which usually turn FILEDIA On and Off.
Sometimes, Bricscad crashes and upon crashing, the custom program did not have the time to set FILEDIA to On. It then prevents our users to access the open dialog box when opening Bricscad again.
This is indeed an easy fix, simply turn back on FILEDIA. but it scares most of our unaware users.
So i came up with the idea of adding a simple test in the ON_DOC_LOAD file which checks if FILEDIA is turned Off upon drawing opening and sets it back On if so.
To my suprise, it seems that FILEDIA is always detected as turned OFF, even though it is clearly On when i check the variable once the drawing is fully opened.
To test this, i simply tryed to add the line
(if (= (getvar 'filedia) 0) (princ "\nFILEDIA WAS TURNED OFF!")) at the end of my ON_DOC_LOAD on a blank Bricscad install and i got the message, even when FILEDIA = 1.
Is this normal behavior of ON_DOC_LOAD or FILEOPEN? it shuts off some system variables?
(I'm using Bricscad v21.02.06)