Middle Button Snap

Middle Button Snap

Anonymous
Not applicable
1,600 Views
3 Replies
Message 1 of 4

Middle Button Snap

Anonymous
Not applicable

Heeellllpppppp - old guy here trying to preserve my middle button snap that I've been using since 1997 or so, now updating to 2011.   This is the custom lisp I've been using all these years:

 

; Dan's Custom.lsp - last modified 08/23/10

(menucmd "A1=custom.AUX11")
(menucmd "A2=custom.AUX12")
(MENUCMD "A3=custom.AUX13")
(MENUCMD "A4=custom.AUX14")

***AUX11
**CUSTOM_A1
$M=$(if,$(eq,$(substr,$(getvar,cmdnames),1,5),GRIP_),$P0=ACAD.GRIPS $P0=*);
_end,_int,_mid,_cen,_ins,_nod \

***AUX12
**CUSTOM_A2
$P0=SNAP $p0=*
$P0=SNAP $p0=*

***AUX13
**CUSTOM_A3
$P0=SNAP $p0=*
_qua,_per \

***AUX14
**CUSTOM_A4
$P0=SNAP $p0=*

 

now i get an error:

 

Command: ; error: no function definition: GETVAR,CMDNAMES

 

anyone tell me what I'm doing wrong?  I've tried pasting the following bit to the mouse button macro line in the CUI with no luck

 

$M=$(if,$(eq,$(substr,$(getvar,cmdnames),1,5),GRIP_),$P0=ACAD.GRIPS $P0=*);
_end,_int,_mid,_cen,_ins,_nod \

 

Thanks for any luck

 

 

 

 

 

0 Likes
1,601 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable

OK, a bump here - anybody tell me any tricks for simply getting the middle button to do OSNAP through the CUI?

Tried pasting the following macro to the Button 3 Click but that didn't work either.

 

_end,_int,_mid,_cen,_ins,_nod \

0 Likes
Message 3 of 4

Anonymous
Not applicable

I pasted _endp,_int,_mid,_cen,_ins \ to my click button 3: snap menu and it works fine - even in 2012. Make sure your mbuttonpan is set to 0. Maybe its not working because you didnt have endp. Or maybe you have it working by now - I thought I would post in case someone else is looking for an answer. Us old timers got to stick together Smiley Happy

Message 4 of 4

Anonymous
Not applicable

thanks much.  I finally got it working... but its been a year so I'm even sure how.  But I'm saving this - for next time.

0 Likes