TheSwamp

CAD Forums => CAD General => Topic started by: Pad on May 05, 2015, 04:04:40 PM

Title: menuload/unload help please
Post by: Pad on May 05, 2015, 04:04:40 PM
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:

Code: [Select]
(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
Title: Re: menuload/unload help please
Post by: Pad on May 05, 2015, 04:09:46 PM
Actually scrap that, the menu loaded or unloaded doesnt make any difference, I thought it did.
I'll have to find some other way to stop the software loading.
P
Title: Re: menuload/unload help please
Post by: stusic on May 05, 2015, 04:15:29 PM
Try looking for any support apps that load with it, like arx files...
Title: Re: menuload/unload help please
Post by: Pad on May 05, 2015, 04:31:37 PM
Hi Stusic,  I few arxs get loaded, I'll look into that.  Thanks
Title: Re: menuload/unload help please
Post by: Rob... on May 05, 2015, 06:34:38 PM
Will it work if you create a different shortcut for when you want to work without the dongle?

Have the 2nd shortcut point to a profile that does not load the menu using.
Title: Re: menuload/unload help please
Post by: Pad on May 05, 2015, 07:23:39 PM
Yeah, that could work.  I'll give it a go. Thanks.
Title: Re: menuload/unload help please
Post by: Rob... on May 05, 2015, 07:47:13 PM
Do you know about the profile switch in the shortcut target?
Title: Re: menuload/unload help please
Post by: Pad on May 06, 2015, 05:18:52 AM
Yeah I should be able to figure that out.
Thanks.

Sorry, Ive just realised I posted this thread in the wrong forum..
Title: Re: menuload/unload help please
Post by: ChrisCarlson on May 07, 2015, 04:13:37 PM
On a side note, I'm curious what "dongle protected" menus are?
Title: Re: menuload/unload help please
Post by: dgorsman on May 08, 2015, 10:07:58 AM
I think that means the supporting program uses a local hardware lock.