Can't you create a command in the CUI with a macro assigned to it that calls the Lisp?
Registered forum members do not see this ad.
I have a LISP command, ARRAYINCREMENT.lsp, with an alias of IA. However, I need to assign a keyboard shortcut to it (i.e. CTRL+G) so that I can put it on a certain button of my mouse. However, it doesn't appear in my list of all commands in my CUI, so I'm not sure how to get to it to assign it.
Any ideas? I'm really trying to get faster, and the little buttons on my mouse are SO handy for that!
Can't you create a command in the CUI with a macro assigned to it that calls the Lisp?
Life doesn't suck, although we all go through periods when it may be easier to think that, than to discern the solution to whatever problem is the most formidable
at the moment in one's personal UCS.
Go to PLAN view instead. - Dadgad
I know that newer versions have pretty much locked out use of Ctrl key - One work around for this is to use CUI Editor, Transfer Tab, and drag an existing Shortcut Key (Keyboard Shortcuts, Shortcut Keys node) into a separate CUI(x) file. Set that CUI(x) as Main, and edit as needed. When done, restore original Main CUI(x) and use Transfer Tab to drag to Main CUI(x).
Note that you may be overwriting an existing shortcut, depending on your naming convention, command, etc., and that the 'Element ID' (from the original shortcut) will remain.
I only have one legacy shortcut key, given that my mouse, keyboard accept (multiple key) Macros, so I just use that instead. There may be a better way to accomplish what I described above.
HTH
"Potential has a shelf life." - Margaret Atwood
Hmmm.... @Tiger: I don't know how to create a custom command in the CUI.
@Render: I have unassigned the shortcut keys I don't use. Like CTRL+L... since I never use Ortho, and reassigned them to the commands I want to put on my mouse. Copy, Matchprop, etc.
Now, I'm not sure what you're trying to tell me about the custom CUI. I already use a custom CUI...
Simple - from CUI Editor, bottom left pane, make sure 'Command List' is expanded, then select the 'Create new command' button (the star with asterisk in upper right).
Unassign =/= Assign ... This just disables the existing shortcut, and does not enable your customized version.
If a Temporary Override is insufficient, then you have to bring a Shortcut Key into your Main CUI(x) by way of the Transfer Tab, from which you can customize as needed.
"Potential has a shelf life." - Margaret Atwood
What I do is:
Add lisp to Startup suite
Type IA ( in my Autocad "IA" is not used for anythig) and that it.
Try it.
Marek
Bookmarks