Community
AutoCAD Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Edit Alias for Command Within A Command

11 REPLIES 11
SOLVED
Reply
Message 1 of 12
Ringo311
653 Views, 11 Replies

Edit Alias for Command Within A Command

Ok so when I work, I use the NEAREST command within object snap a lot, but I prefer that it is not selected all the time when object snap is on.

 

So when I am using a command already like drawing a polyline or moving the endpoint of a line - within that command i use the alias NEAR. 

 

Does anyone know if I can change the command for this alias command within a command? I'd just like to change it to N.

 

 

11 REPLIES 11
Message 2 of 12
Patchy
in reply to: Ringo311

Not within acad.pgp but it can be assigned to a F function key (e.g. F2, F3.... ) in the CUI

 

or it can be done with autolisp, and when running the command, use a ' mark.

Message 3 of 12
Kent1Cooper
in reply to: Ringo311

Just so you know, the first three letters are enough as abbreviations for Osnap modes -- you can type just NEA and get that mode.

 

But you can also define a "command" for it that can be used transparently.  Minimally tested:

(defun C:N () (command "_nearest"))

 

To use it in a drawing or editing command, you need to type the name with the asterisk prefix that @Patchy mentioned:  'N.  One keystroke shorter than NEA....

 

And NEArest could be put in a Tool Palette button, and probably some other menu-pick options.

Kent Cooper, AIA
Message 4 of 12
Patchy
in reply to: Kent1Cooper

Thank you for explaining it in detail, I know it works like that but if I write it, it confuses people (English is my 2nd language)

Message 5 of 12

Hi @Ringo311,

 

please take a look at this discussion - post no 14. Seems like it could work but should be a lot of work to rearrange all other snaps in order to make NEA working with only a <N>. 

 

Regards

 

 

-----------------------------
Please accept as solution if my post fully resolves your issue, or reply with additional details if the problem persists.

 

Message 6 of 12
Patchy
in reply to: Sofia.Xanthopoulou

No #14 Smiley Very Happy

Message 7 of 12
Sofia.Xanthopoulou
in reply to: Patchy

Oh, come on ... as if you never forget anything Smiley Happy

 

Well, at least I amused you Smiley Wink

 

Thanks for the catch Patchy - link is inserted.

 

Regards

 

Message 8 of 12
ВeekeeCZ
in reply to: Ringo311

From my experience (and my settings) are F* keys the best option.

I have F1 for nearest and F2 for perpendicular. 

Message 9 of 12
Ringo311
in reply to: ВeekeeCZ

Thanks all. I was able to assign it to F2 which seemed the easiest (and learned about the CUI). Ctrl + right click + "N" doesnt seem to save much effort from typing "NEA"

Message 10 of 12
scot-65
in reply to: Ringo311

Please unassign the [F2] key. It is used to flip the TEXTSCREEN.

Our setup:
F1 - CEN
F2 - Default behavior (TEXTSCREEN)
F3 - ENDP (notice the 4th character?)
F4 - MID
F5 - PER
F6 - NEA
F7 - NODE
F8 - Default behavior (ORTHOMODE)
F9 - INT
F10 - NONE
F11 - QUAD
F12 - TAN

To access the original key assignment press and
hold the [Shift] key, then press desired F# key.

???

Scot-65
A gift of extraordinary Common Sense does not require an Acronym Suffix to be added to my given name.


Message 11 of 12
bdesign71
in reply to: Patchy

Hi, Great idea, can you supply a sample lisp code on how to redefine the f keys. I did it years ago but things change. Thanks and Great skill
Message 12 of 12
Patchy
in reply to: bdesign71

CUI command, and this is my F9 for snapping to Endpoint.

 

F9.JPG

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost