amir Posted September 4, 2008 Posted September 4, 2008 Hi there, I'm using some special menu (cadfx) to be able to use batchscript en blockmanager. The problem was, that I had to load the menu manually after the startup. So I added the ***.arx in the AutoLisp "Startup Suite" and now the menu loads automatically after the start-up. But there is still one problem; when the menu is loaded; it pops up in the middle of the screen, so I drag it to the right position and save my profile. I also save my workspace and you would expect that the menu would stay in his position every time I run AutoCad, but it doesn’t and it still pops up in the middle of the screen, but when I push "My Workspace" button it than moves to the saved (right) position. So I wrote a lisp in which the command "ws" (pushing the "My Workspace" button) is defined and I added the lisp in the AutoLisp "Startup Suite": (DEFUN C:WS () (COMMAND "WSCURRENT" "AYL")) After start-up the lisp is loaded, but it doesn’t run the command "ws"! How can I make sure that the command "WS" runs automatically after the start-up? Quote
rkmcswain Posted September 4, 2008 Posted September 4, 2008 There are a few ways. 1) Add (C:WS) to the bottom of this lisp. (DEFUN C:WS () (COMMAND "WSCURRENT" "AYL")) (C:WS) 2) Remove the defun from the lisp. (COMMAND "WSCURRENT" "AYL") Lastly, I would suggest removing this lisp from the startup suite and simply add (COMMAND "WSCURRENT" "AYL") to your "acaddoc.lsp" file. If this file does not exist, create it and save it to the path at the top of your support file search path. See [thread=26761]this thread also[/thread] Quote
amir Posted September 4, 2008 Author Posted September 4, 2008 Hi there, Thanks a lot for your reply. It all works now! I simply can't change the acad.lisp or acaddoc.lisp, because they are protected and are stored on an special server which is ment for more employees, so I had to use the AutoLisp! Quote
amir Posted September 5, 2008 Author Posted September 5, 2008 Hi there, Now there is a new problem; I don't use the single mode drawing because I have to open several drawings at once. But every time I open a new drawing, the lisp I putted in the AutoLisp, Loads and Runs all over again! I thought it only would load and run at the actual startup of the AutoCad?!?!? Quote
lpseifert Posted September 5, 2008 Posted September 5, 2008 If your routines are in the acad.lsp file, make sure ACADLSPASDOC=0. They will run only under initial startup. If they are in the acaddoc.lsp file, they will run on each opening of a dwg. Quote
amir Posted September 5, 2008 Author Posted September 5, 2008 Hi there, no the lisps aren't added into the acad.lsp or acaddoc.lsp, but into the AutoLisp StartUp Suite! That's because I'm not able to change the acad.lsp or acaddoc.lsp (Big company and other employees and only one file for every one). I could make my own files and let the AutoCad look at my personal directory, but then they won't support me in case of trouble! Quote
rkmcswain Posted September 5, 2008 Posted September 5, 2008 That is why I suggested to NOT use the startup suite. Get your CAD manager to put your single lisp call into the corporate acad.lsp file. 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.