I use a routine in acaddoc.lsp to set to change the value of "imageframe" system variable when opening a drawing.
Recently I've tried to use it on a AutoCad 2007 and got an error. Seems like 2007 version doesn't have a system variable named "imageframe".
I use the code below as a workaround for the problem, but I'm wondering is there a better way to change the value of "imageframe" when opening a new drawing for 2007 version?
(if (getvar "imageframe") (setvar "imageframe" 2) (command "_imageframe" 2))