TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: MUQTAR on January 07, 2012, 09:25:33 AM
-
Hi friends,
can we change the shortcut commands (like a m2p, mid, end, etc.) of osnap when using other commands in autocad 2012.
i want to change them to one latter is it possible.
thanking you,
-
http://www.theswamp.org/index.php?topic=40569.0
-
using CUI we can change by function keys but i need only one latter command like
if using dimension i need end point i should be type "e" like this way can we change them
thanks for reply,
-
using CUI we can change by function keys but i need only one latter command like
if using dimension i need end point i should be type "e" like this way can we change them
thanks for reply,
Not one letter shortcuts (except for the F## keys). You'd need modifier keys as well. E.g. I've got M2P mapped to Ctrl+M on my keyboard. The problem is there's already some mapped and you don't want to overwrite them when they're usefull (e.g. changing the Ctrl+P for Plot to Perp might hamper you when plotting).
You might try other modifiers like Alt, or even combine modifiers like Ctrl+Shift / Ctrl+Alt / Alt+Shift ... but then it becomes a 3 key press and your hand starts contorting into weird shapes.
Even if you could create aliases for such through your PGP file, you'd still need to press at least 2 keys (The key itself, then Space/Enter). This is the main reason I prefer Tablet / extra KeyPad.
-
... The problem is there's already some mapped and you don't want to overwrite them when they're usefull (e.g. changing the Ctrl+P for Plot to Perp might hamper you when plotting).
It would be interesting to experiment with reactors to see if these settings (within CUI) could be programmatically modified immediately after :vlr-CommandWillStart Event, and restored upon :vlr-CommandCanceled, or :vlr-CommandEnded, etc...? If successful, this would allow the separation of in-command (i.e. OSNAPS), versus stand-alone settings (i.e. Ctrl+P). *geek* :lol:
-
Very good idea RM! Though my brain's not into reactors at this moment. I'm just starting back from the fog of the past vacation :lmao:
Edit: Just figured it's not going to be a lisp thing. There's only methods for handling menu bars, toolbars and pop-up menus in lisp. So here's yet another thing for DotNet!
-
Very good idea RM! Though my brain's not into reactors at this moment. I'm just starting back from the fog of the past vacation :lmao:
Tell me about it - I'm taking this whole week off too (in addition to the week for Christmas) to pack & move us! LoL A few forum posts is my java. :lol:
Edit: Just figured it's not going to be a lisp thing. There's only methods for handling menu bars, toolbars and pop-up menus in lisp. So here's yet another thing for DotNet!
A simple .NET LispFunction Method with the appropriate arguments *should* do this nicely. :wink:
Pseudo Code:
(someNetFooLispFunction '(("CuiName". "optionName") ;|more options here|;))