SLaszlo Posted February 27, 2021 Posted February 27, 2021 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)) Quote
eldon Posted February 27, 2021 Posted February 27, 2021 I am not sure when it was changed to a system variable, but in my version of AutoCAD (2002), IMAGEFRAME is a command. Quote
Isaac26a Posted February 27, 2021 Posted February 27, 2021 I don't remember when it was changed, but in my 2010 version, it's a system variable, you can check your sistem variables using the command "sysvdlg" and probably what you want to do is something like this. (if (>= (atof (getvar "acadver")) 18.0) (setvar "imageframe" 2) (command "_imageframe" 2) ) But still don't know if is of much value Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.