(Note: The following shortcut was originally posted by Jarrod S. on the NI Forums here. I decided to give his shortcut a more permanent home in the Quick Drop Enthusiasts group.)
This Quick Drop Keyboard Shortcut allows you to create a Place VI Contents VI (formerly called a "Merge VI") of your diagram selection and automatically create a user.lib palette entry for it, so that you can easily drop that selection of code in the future. Follow these steps to use this shortcut:
- Save the attached VI in your <LabVIEW>\resource\dialog\QuickDrop\plugins folder. No LabVIEW restart is required.
- Select something on your diagram that you wish to make into a Place VI Contents VI.
- Press Ctrl-Space-Ctrl-Shift-G.
- Specify a name for this Place VI Contents VI.
- Create an icon
Now you have a Place VI Contents VI that contains this diagram selection that you can use from your palettes (or Quick Drop). Note that in step (3) above, if you had pressed Ctrl-Space-Ctrl-G instead, the palettes would not be refreshed automatically, and you would have to restart LabVIEW in order to use the new Place VI Contents VI.
Note: All Place VI Contents VIs that are created with this shortcut are stored in <LabVIEW Data>\QuickDrop Templates. The actual .mnu files that provide the palette entries are stored in <LabVIEW>\user.lib\QuickDrop Templates Palette.mnu.
This shortcut works in LabVIEW 2009 and later.
2010.07.09 - added code to open the icon editor before saving (Thanks, Mark Balla. I copied the functions from your SubVI Fixer.)