Hi
I have some software that runs within autocad. It is dongle protected. Everything works fine when its dongle is plugged in, but it is not possible to run autocad without the dongle. A screen pops up warning of the absent dongle and autocad locks up. If the menu for the software is unloaded then autocad will start fine. So I am trying to make a lisp that will unload the menu if loaded and vice versa. If all works to plan then I can run the lisp before shutting down autocad to remove the menu and run the lisp when I have he dongle and want to make use of it.
Here is what I have, but its not working:
(defun C:ktfa (/)
(if (null ((menugroup "KEY")))
(command "menuload" "C:\Users\Metrix_PB\AppData\Roaming\Key\support\key.cuix") ; i have also tried this with \\
(command "_MENUUNLOAD" "KEY")
)
(princ)
)
Any help will be appreciated.
Thanks