All of our CAD users are currently using ADT 3.3 and have, in the startup
suite, a LISP routine that I'd like to edit to load the custom toolbars
(.mns file) on start-up.
I am a complete novice at LISP. How would I go about starting this process?
Thank You,
Mike Rioux
MENULOAD Command Line
WhenFILEDIA is set to 0 (off), MENULOAD displays the following prompt on the
command line.
Enter name of menu file to load: Enter a file name
Mike Rioux <mri...@e-architect.com> wrote in message
news:4FC4DB8BFCBC6FDD...@in.WebX.maYIadrTaRb...
(defun civil-placemenu (/ CNT)
(setq CNT 1)
(while (< CNT 24)
(if (menucmd (strcat "P" (itoa CNT) ".1=?"))
(setq CNT (1+ CNT))
(progn
(if (> CNT 2)
(setq CNT (- CNT 2))
(setq CNT 2)
)
(menucmd (strcat "p" (itoa CNT) "=+CIVIL.pop1"))
(setq CNT 25)
)
)
)
)
(civil-placemenu)
"Mike Rioux" <mri...@e-architect.com> wrote in message
news:4FC4DB8BFCBC6FDD...@in.WebX.maYIadrTaRb...
That works fine for my desktop machine. What I want to do is have the menu
load in the background on the 50+ other CAD users without them all having to
edit their .mnl file or even use the MENULOAD command. It is far too easy
for something to go wrong and have all of their menus accidentally
"disappear". We already have 4 LISP files loading at startup from the
network. I just want to edit one of those to either load the menu that is
also on the network, or refer to another LISP file in the same directory
that will load the menu.
Are there any websites with an introduction to AutoLISP? The Visual LISP
Editor is still Greek to me.
"Scribble" <scri...@iinet.net.au> wrote in message
news:AB654887CEA37BF5...@in.WebX.maYIadrTaRb...
"Mike Rioux" <mri...@e-architect.com> wrote in message
news:31CC088B4C4464B8...@in.WebX.maYIadrTaRb...
"Paul D" <pa...@lbeci.com> wrote in message
news:9D346B40CC1FDA2D...@in.WebX.maYIadrTaRb...
"Paul D" <pa...@lbeci.com> wrote in message
news:9D346B40CC1FDA2D...@in.WebX.maYIadrTaRb...
You may have to hold my hand more than you think. All I know how to do is
edit Macros associated with toolbar buttons. As I stated earlier. I am not
familiar with LISP.
Adding the line that Doug suggested results in ONLY the mycustom.mns file
and toolbars loading...not the standard acad.mns from C:/ AND mycustom.mns
from the K:/ (network) drive. I'm sure that if I edited my local acad.mns
file so that, in addition to the standard menus, my custom menu would load
as well.
Here is the body of the LISP file that currently loads from the network on
everyone's machine.
;* XXXX.LSP - XXXX Quick Keystrokes Working Command Lisp File
(DEFUN C:q () (COMMAND "list")(princ))
(DEFUN C:TM0 () (COMMAND "TILEMODE" "0")(princ))
(DEFUN C:TM1 () (COMMAND "TILEMODE" "1")(princ))
(DEFUN C:VR () (COMMAND "View" "Restore")(princ))
(DEFUN C:VS () (COMMAND "View" "W")(princ))
(DEFUN C:ZA () (COMMAND "ZOOM" "A")(princ))
(DEFUN C:ZE () (COMMAND "ZOOM" "E")(princ))
(DEFUN C:ZI () (COMMAND "ZOOM" "2X")(princ))
(DEFUN C:ZO () (COMMAND "ZOOM" ".5X")(princ))
(DEFUN C:ZP () (COMMAND "ZOOM" "P")(princ))
(DEFUN C:ZW () (COMMAND "ZOOM" "W")(princ))
(DEFUN c:dd () (command "ddedit")(princ))
(DEFUN c:c () (command "copy")(princ))
(DEFUN c:ci () (command "circle")(princ))
(DEFUN c:kn () (keynotes)(princ))
(DEFUN C:BOSS () (LOAD "LAYRBOSS.lsp")(princ))
Can I add to this file? Adding (command "menu" "K:/LISP/mycustom.mns")
results in ONLY the mycustom.mns loading. I'm trying to make this as much
of a no-brainer as possible for the other users. The only reason for the
menugroup to load is to be able to select the toolbars that are part of that
group not to place a pulldown menu on the menu bar.
It would have to do the following, as Paul has stated, change the filedia to
0 then "menuload" the mycustom.mns file, then filedia back to 1.
The users would simply have to right click on their toolbars to select from
the new set of toobars that I have created.
Thank you for your help,
Mike
"Doug Barr" <db...@provinceauto.com> wrote in message
news:C2D6D3DEDE26F424...@in.WebX.maYIadrTaRb...
We have a small office here so we just tell everyone how to load the menus
from the server so I don't know if this way actually works. Let me know what
happens.
"Mike Rioux" <mri...@e-architect.com> wrote in message
news:3E42D2411A2C1039...@in.WebX.maYIadrTaRb...
--
R. Robert Bell, MCSE
http://www.acadx.com
"Paul D" <pa...@lbeci.com> wrote in message
news:C78562B1213DC712...@in.WebX.maYIadrTaRb...
"R. Robert Bell" <rob...@acadx.com> wrote in message
news:D732AE373C085C06...@in.WebX.maYIadrTaRb...
Mike Rioux <mri...@e-architect.com> wrote in message
news:64F08EA8CEECD723...@in.WebX.maYIadrTaRb...
(setvar "filedia" 0)
(COMMAND "menuunload" "mycustom")
(COMMAND "menuload" "mycustom")
(setvar "filedia" 1)
Mike
"Paul D" <pa...@lbeci.com> wrote in message
news:399D61C2F9F94CBF...@in.WebX.maYIadrTaRb...
On a completely different tack, If your staff all use the same base menu you
can manually load your partial menus using the menuload command, get the
autocad desktop layout and options the way you want them and export a
profile to K: drive. Then create a desktop shortcut that starts autocad
using the /p <profile path and name> switch. Then email the shortcut to
other users.
Regards
Brian Smith
Paul D <pa...@lbeci.com> wrote in message
news:9D346B40CC1FDA2D...@in.WebX.maYIadrTaRb...