WRITESTAT system variable
Shows the state in which a drawing is opened: read-only or that it can be written to. This variable is used in lisp to determine the write status of drawing.
Off (0): Can’t write to the drawing
On (1): Can write to the drawing