Guest Drafter_Joe Posted November 7, 2014 Share Posted November 7, 2014 Hello, I am needing help with the following code that is supposed to check the cmdactive variable and if a script is running, the routine is to be bypassed. And the code is: ;;s::startup section from Lee_Mac, 3rd version of startup modified by Lee_Mac ( (lambda ( / expr ) (vl-load-com) (setq x (getvar 'cmdactive)) (setq expr '((if (zerop (logand 4 (getvar 'cmdactive))) (c:gochngplt)) (princ))) (if (= 'list (type s::startup)) (setq s::startup (append s::startup expr)) (eval (vl-list* 'defun-q 's::startup 'nil expr)) ) (princ x) ) ) ;;----------------------------------------------------------------------;; ;; End of File ;; ;;----------------------------------------------------------------------;; I added a check to see what the cmdactive variable is and it is always a "0". Any help would be greatly appreciated! Thank you for your time and attention! 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.