Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
nbonnett-murphy
346 Views, 5 Replies

Reorganize iLogic folders without deleting keyboard shortcuts?

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?

 

 

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

KeyboardShortcut-01.jpg

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

Yeap, Notepad++ screenshot attached.

Search for "Command Aliases".

Probably change one manually so you get the folder.

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)

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.