This routine works when ACAD starts and then it stops during a session and I
get:-
'mbswap ; error: Visual LISP command document mismatch: MBSWAP
Code currently as follows:-
;apploaded application
(defun c:mbswap(/)
(SETVAR "CMDECHO" 0)
(vlax-add-cmd "mbswap" 'c:mbswap "mbswap" 1);--new command
(setvar "mbuttonpan" (abs (1- (getvar "mbuttonpan"))));--toggle value
(SETVAR "CMDECHO" 1)
)
;menu file
***ACCELERATORS
["F6"]'mbswap
Can anyone see a problem here?
--
Blair MacKenzie
cadesign ltd
vizualisations
2. There is an anomaly in MDI (or SDI=0) that Steph(and) Koster discovered and
provided a solution:
*Before* you vlax-add-cmd anything of value, add the following:
(defun DummyCommand () nil)
(vlax-add-cmd "DummyCommand" 'DummyCommand)
--
John Uhden, Cadlantic/formerly CADvantage
http://www.cadlantic.com
Sea Girt, NJ
"Blair MacKenzie" <bl...@cadesignz.co.nz> wrote in message
news:9AFB75570E7417EB...@in.WebX.maYIadrTaRb...