Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Reorganize iLogic folders without deleting keyboard shortcuts?

nbonnett-murphy
Advocate

Reorganize iLogic folders without deleting keyboard shortcuts?

nbonnett-murphy
Advocate
Advocate

Hello,

 

After a year of messing with iLogic, I'm getting to the point where my default folder is becoming unmanageable.

 

I know that inventor will follow recursively if I make sub-folders in windows explorer, but there is one inconvenience. Most of my scripts have matching hotkeys set up to run them as a keyboard shortcut. When I relocate the script, the hotkey is deleted. I can reset them manually of course, but there are dozens so it'll take a while.

 

Is there a way to preserve the hotkeys when I reorg my iLogic folder? Alternatively, is there a way to assign a hotkey from within the rule editor or via the iLogic side panel?

 

 

0 Likes
Reply
Accepted solutions (2)
344 Views
5 Replies
Replies (5)

Frederick_Law
Mentor
Mentor
Accepted solution

Export the settings.  Edit with text editor.  Import it again.

KeyboardShortcut-01.jpg

nbonnett-murphy
Advocate
Advocate

Excellent idea thanks! I'm sure notepad++ can get me there without needing to go one by one.

0 Likes

Frederick_Law
Mentor
Mentor

Yeap, Notepad++ screenshot attached.

Search for "Command Aliases".

Probably change one manually so you get the folder.

0 Likes

WCrihfield
Mentor
Mentor
Accepted solution

Just so you know, there is actually a way to set the shortcuts by code, but it's more complicated than it should be, and would likely require a lot more code that you would want to deal with, if you need to set a lot of iLogic rules back to the same shortcuts again after moving them.

ThisApplication.CommandManager.ControlDefinitions.Item("ControlDefinitionName").DefaultShortcut

...and a few related properties of the ControlDefinition object.  You can check out the online help page for that object if you want to read more about those properties.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes

nbonnett-murphy
Advocate
Advocate

I actually ended up doing it manually earlier this week. But I'm definitely filing this away for future reference if I ever need to migrate/reorganize a big pile of scripts.

0 Likes