Jump to content

Help: Start up lisp


bigmaz

Recommended Posts

Hi guys

 

I would like to have a lisp routine that will automatically load every time I open a drawing even when in the same session of Autocad. The command that I want it to do is to set the variable "LAYEREVAL" set to "1" when I open a drawing. How do I go about this?

 

Cheers :)

Link to comment
Share on other sites

I would like to have a lisp routine that will automatically load every time I open a drawing even when in the same session of Autocad. The command that I want it to do is to set the variable "LAYEREVAL" set to "1" when I open a drawing. How do I go about this?

 

Please check this tutorial from LeeMac.

 

Actually, the file the OP should use (if they have write-access) is ACADDOC.lsp - See this tutorial instead.

 

** Note - Only use Startup Suite if you do not have write-access to ACADDOC.lsp

 

ACADDOC.lsp is a user defined file, meaning that AutoCAD does not come with this file, but you can create one if it does not already exist, and AutoCAD will automagically load this file if found anywhere within your Support File Search Paths (SFSP). This code will do what you have requested economically:

 

(if (/= 1 (getvar 'layereval))
 (setvar 'layereval 1))

 

HTH

Link to comment
Share on other sites

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