bigmaz Posted September 9, 2011 Share Posted September 9, 2011 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 Quote Link to comment Share on other sites More sharing options...
MSasu Posted September 9, 2011 Share Posted September 9, 2011 Please check this tutorial from LeeMac. Regards, Mircea Quote Link to comment Share on other sites More sharing options...
BlackBox Posted September 9, 2011 Share Posted September 9, 2011 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 Quote Link to comment Share on other sites More sharing options...
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.