Reorganize iLogic folders without deleting keyboard shortcuts?

Reorganize iLogic folders without deleting keyboard shortcuts?

nbonnett-murphy
Advocate Advocate
436 Views
5 Replies
Message 1 of 6

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
Accepted solutions (2)
437 Views
5 Replies
Replies (5)
Message 2 of 6

Frederick_Law
Mentor
Mentor
Accepted solution

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

KeyboardShortcut-01.jpg

Message 3 of 6

nbonnett-murphy
Advocate
Advocate

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

0 Likes
Message 4 of 6

Frederick_Law
Mentor
Mentor

Yeap, Notepad++ screenshot attached.

Search for "Command Aliases".

Probably change one manually so you get the folder.

0 Likes
Message 5 of 6

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
Message 6 of 6

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