Open a new/existing part and set the Ctrl + Q option for force regen and save the part.
Open a new/existing part and set the Ctrl + Q option for force regen the top level assembly and save the assembly.
Now it should work for both the files as required.
Thanks Deepak, but that doesn't seem possible. When I go to set the second one (the assembly in this case), it throws an error : "Key Ctrl + Q is already assigned. Do you want to change the assignment to Others Force regen the top level assembly.?" If I hit yes it overwrites and only works on assemblies, if I hit no, it cannot regen assemblies. Running SolidWorks 2012x64 SP4. Any other ideas?
There is no straight forward way to restore this particular default shortcut because it does indeed run two different commands. This is a hard-coded default behavior which is not exposed in our user interface... As you've discovered, the keyboard shortcuts are not "smart" with regard to which document type is open. A keyboard shortcut can only be assigned to one system-wide setting unless it is something we've coded into the software.
One solution for restoring this default shortcut Ctrl+Q, which runs two different commands based on active doc type, is to use the "Tools-Customize-Keyboard-Reset to Defaults" button. However, if your individual users have added their own keyboard shortcuts that they wish to keep, then you need to follow the steps below.
If you need to maintain other custom keyboard shortcuts:
1. Run the "Copy Settings Wizard" tool, which can be found in your desktop Start bar under "All Programs-SolidWors 2012-SolidWorks Tools". Use the "Save Settings" option and then select the "Keyboard Shortcuts" option on the second page.
2. NOTE - I would also recommend running this tool a second time and saving all your settings with the choices on page 2 so you have a complete backup of all your settings in a .sldreg file before proceeding to the steps below.
3. From step #1, edit the .sldreg file you created by opening it in notepad or similar text editor.
4. Here's where it gets fun. You need to manually remove all the "11_81" entries and associated "fVirt", "key" and "cmd" entries from the .sldreg file.
You will find 3 entries with the "SubArray" text, as seen below, which will only vary by the "tPlate" number. You may also find 3 more entries with "AddArray" near the end of the key name. Whether you see these "AddArray" entries will depend on how you defined your "Ctrl+Q" commands. For example, you will find 3 or 6 sets of info that look similar to this:
[HKEY_CURRENT_USER\Software\SolidWorks\SolidWorks 2012\Customization\tPlate0\Custom Accelerators\SubArray\11_81]
In the example above, you would delete these 4 lines from the .sldreg file. Do this for the other two instances of the "SubArray" found in the .sldreg file and also do it for the three instances of the "AddArray" entries if they are found. Save and close the .sldreg file.
5. Open SolidWorks and run the "Tools-Customize-Keyboard-Reset to Defaults" action.
6. Close SolidWorks.
7. Now run the "Copy Settings Wizard" tool again and restore the settings by using the edited .sldreg file from step #3.
You should now have your Ctrl+Q functioning as if were a newly installed build of SolidWorks. I wish there were an easier way, but I can't think of any for you.
Yea, it's a pain to fix, especially across many machines, but it's exactly what I need to do for my users that regularly change their settings. Thanks for the info John, it's much appreciated.
Thanks John for sharing that.