On the Document tab of a Library document, click Create palette file.
Select G diagram palette from the palette type drop-down menu.
Open your palette file (.gpal). Select your VI.
In the Item tab, under Behavior, select Place diagram contents. The block of diagram code from the VI will appear on the diagram in projects that include your custom .gpal.
You cannot include a VI in an application if any of the exported VIs in the library are broken. If a VI in your library containing a snippet is broken, disable the VI's Export box before building the package.