Well, ain't that a B.....!
I tried exactly that and it didn't work in A2K. I received an AutoLISP
error message when the mnl loaded.
Just for kicks, I copied your statement under mine, THEN I discovered I had
left off the closing quotes. Grrrrrr.
Now it works just fine, and with the menu loading in the normal order,
which is before S::Startup is loaded.
So to repost what I did for Mick, the mnl entries would be:
;;; AutoLISP routines used by the AC_LMS conversion Menu.
;;; This file is loaded automatically following the menu AC_LMS
;;; Overrides the ACAD Menu buttons and places the
;;; LMS pulldown menus after the help pulldown menu
;;; POP0 is handled on an individual basis in menus
(princ "\nAC_LMS menu loaded ") ;indicates that menu loaded
(princ "\nAC_LMS menu conversion & utilities ") ;indicates that mnl...
(menucmd "B1=AC_LMS.buttons1") ;replaces ACAD.mnu buttons1
(menucmd "B2=AC_LMS.buttons2") ;replaces ACAD.mnu buttons2
(menucmd "B3=AC_LMS.buttons3") ;replaces ACAD.mnu buttons3
(menucmd "B4=AC_LMS.buttons4") ;replaces ACAD.mnu buttons4
(menucmd "A2=AC_LMS.aux2") ;replaces ACAD.mnu aux2
(menucmd "GACAD.ACCELERATORS=AC_LMS.ACCELERATORS") ;replaces ACAD.mnu ACC.
(menucmd "P13=+AC_LMS.pop1") ;adds AC_LMS.mnu Pop1 to ACAD.mnu as Pop13
(menucmd "P14=+AC_LMS.pop2") ;adds AC_LMS.mnu Pop2 to ACAD.mnu as Pop14
(menucmd "P15=+AC_LMS.pop3") ;adds AC_LMS.mnu Pop3 to ACAD.mnu as Pop15
(menucmd "P16=+AC_LMS.pop4") ;adds AC_LMS.mnu Pop4 to ACAD.mnu as Pop16
(princ "loaded.") ;...is loaded
And just for kicks, I will include what I found to be the loading order of:
Order: File: For use by:
1. acad.rx User
2. acad2000.lsp Autodesk
3. acad.lsp User
4. acad2000doc.lsp Autodesk
5. acettest.fas Express Tools (or acetutil.fas)
6. acetauto.lsp Express Tools
7. acetloc.lsp Express Tools
8. acaddoc.lsp User
9. mymenu.mnc User
10. mymenu.mnl User
11. mylisp.lsp User
12. acad.mnc Autodesk
13. acad.mnl Autodesk
14. acetmain.mnc Express Tools
15. acetmain.mnl Express Tools
16. acad.lsp s::startup User
Thanks for the wakeup call, Dan.
--
Dave D
Dan Allen
wrote in article
<[email protected]>...
> As I understand it you can use:
>
> (menucmd "GACAD.ACCELERATORS=YOURGROUPNAME.ACCELERATORS")
>
> But it only works if you call it after s::startup. To get around that I
> unload and reload my custom partial menu (which contains my accelerators)
> every drawing startup.
>
> Dan
>
>
> David Doane wrote in message
> news:01bf11b0$f18f9b60$3457d2d0@lms-1...
> > Not that I know of. Actually I have been unable to find any info in
> 'help'
> > on just what sections of the menu may be partially loaded.
> >
> > To my knowledge, P is for pulldowns, A for Auxilliary, B for buttons, S
> for
> > Screen, and T for tablet. I don't know of a key for Accelerators.
> >
> > It seems like there was a thread on that some time ago.
> >
> > Dave D
> >
> > Phil Kenewell wrote in article
> > <[email protected]>...
> > > David,
> > >
> > > Good Tip!
> > >
> > > Question: Can you also replace the ***ACCELERATORS section the same
way,
> > > with the (menucmd) syntax? This would be very helpful to replace
> > Accelerator
> > > Hotkeys from a Partial menu.
> > >
> > > Regards,
> > > --
> > > Phillip Kenewell
> > > CAD Systems Technician
> > > Air Gage Company
> > > [email protected]
> > > ===================
> > > > Not < a Member of the AutoDESK
> > > Discussion Forum Moderator Program
> > >
> > > David Doane wrote in message
> > > news:01bf10d2$6a921b80$2a57d2d0@lms-1...
> > > > and create a MNL file with the same name as your menu, and use the
> > > > following as a guide for the contents, and your pull downs should
> > appear
> > > > automatically. You can also put autoloading statements in the MNL
> > file.
> > > > Replace AC_LMS with yourmenu name.
> > > > (menucmd "B1=AC_LMS.buttons1") ;replaces ACAD.mnu buttons1
> > > > (menucmd "B2=AC_LMS.buttons2") ;replaces ACAD.mnu buttons2
> > > > (menucmd "B3=AC_LMS.buttons3") ;replaces ACAD.mnu buttons3
> > > > (menucmd "B4=AC_LMS.buttons4") ;replaces ACAD.mnu buttons4
> > > > (menucmd "A2=AC_LMS.aux2") ;replaces ACAD.mnu aux2
> > > > (menucmd "P13=+AC_LMS.pop1") ;adds AC_LMS.mnu Pop1 to ACAD.mnu as
> > Pop13
> > > > (menucmd "P14=+AC_LMS.pop2") ;adds AC_LMS.mnu Pop2 to ACAD.mnu as
> > Pop14
> > > > (menucmd "P15=+AC_LMS.pop3") ;adds AC_LMS.mnu Pop3 to ACAD.mnu as
> > Pop15
> > > > (menucmd "P16=+AC_LMS.pop4") ;adds AC_LMS.mnu Pop4 to ACAD.mnu as
> > Pop16
> > >
> > >
> > >
>
>
>