How to code LISP to make SHIFT+E toggle the "endpoint of" command

How to code LISP to make SHIFT+E toggle the "endpoint of" command

Anonymous
Not applicable
1,464 Views
8 Replies
Message 1 of 9

How to code LISP to make SHIFT+E toggle the "endpoint of" command

Anonymous
Not applicable

This is my first time using LISP routines and I am trying to learn how to create a LISP routine that will allow me to make SHIFT + E a shortcut for the "endpoint of" command (which I will use as an example to make shortcuts for all the other Osnap commands I frequently use). Based on the list of Autolisp Functions I found I think I should use 14.3 - (command [arguments] ...) to execute the AutoCAD command but I'm unsure how to program it in VLISP. I only have very rudimentary programming knowledge generally, and none when it comes to LISP routines - please help!

0 Likes
Accepted solutions (1)
1,465 Views
8 Replies
Replies (8)
Message 2 of 9

pendean
Community Legend
Community Legend
Shift+E already set to ENDpoint by default in AutoCAD, or do you have a 3rd party add-on that changed it for you https://www.cad-notes.com/10-autocad-temporary-override-keys/#6_Toggles_Snap_Override_Endpoint
Message 3 of 9

CodeDing
Advisor
Advisor
Accepted solution

@pendean ,

 

I did not know about these snap overrides. Great to know.

I think it should highlighted that earlier in the article, it mentions:

You might need to hold the override key for 1-2 seconds before you can use it.

So, you have to Hold Shift+E for a couple seconds (and keep holding) to get the override.

I probably spent the last 5 minutes pressing Shift+E and thinking you and that author were crazy lol.

Finally got it though.

 

Best,

~DD

0 Likes
Message 4 of 9

Sea-Haven
Mentor
Mentor

Shift + right button mouse select endpoint ?

 

Option 2 is a transparent command eg '1 which will set "_end" you make the defuns to suit, transparent commands are supported in a lot of commands eg line '1 will ask for end point then continue as normal, another for more complex is 'cal

 

Option 3 is if in code set correct osnap.

0 Likes
Message 5 of 9

john.uhden
Mentor
Mentor

Remember the days of tablets in R12?  There was no faster way.  I taught our users to use the 16-button puck with their left hand so that the right hand was free for the number pad.  Those guys and gals took it on like a bear to a salmon.  Do they make them anymore, and does anyone use one in AutoCAD?  I remember that when we had technical difficulties I didn't need to look up any phone number... Just dial 1-800-CALCOMP.

These days, I found the way to put the OSNAP toolbar in the upper right of my screen.  It's a lot better than Shift+whatever or typing "perp."

John F. Uhden

0 Likes
Message 6 of 9

ВeekeeCZ
Consultant
Consultant

@CodeDing wrote:

I probably spent the last 5 minutes pressing Shift+E and thinking you and that author were crazy lol.

...

~DD


 

It was time when I was playing with these overrides trying to figure out some quick way... Although Shift+E I considered as more reliable and convenient than other overrides... (even over Fx keys) still, quite a few times ended up with EEEEEEEEEEEEEEEEEEEEEEEE So, no, not using it.

 

Now being using Shift+Mouse RT... E. It's probably even faster.

Message 7 of 9

ВeekeeCZ
Consultant
Consultant

@Sea-Haven wrote:

Shift + right button mouse select endpoint ?

 

...


press the E key on the keyboard. 

0 Likes
Message 8 of 9

CodeDing
Advisor
Advisor

@ВeekeeCZ ,

 

Shift + Mouse RT has always been my go-to. I think I'll just end up keeping with that also.

0 Likes
Message 9 of 9

Sea-Haven
Mentor
Mentor

There is Mice with more bttons also, so could have snaps etc set on buttons.

 

For John can still buy digitisers not as big as old calcomp GTCO, tried it out but went back to mouse they only have a stylus for paint etc. But are cheap.

0 Likes