Jump to content

Recommended Posts

Posted

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))

 

Posted

I am not sure when it was changed to a system variable, but in my version of AutoCAD (2002), IMAGEFRAME is a command.

Posted

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

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...