27.6.4 Exporting Button Group
When you create a custom toolbar button group, you can easily share your custom button group with another Origin user. This exchange is accomplished by exporting your custom files to a special file with an .OPX extension, and then sending that file to the intended Origin user (Note that you cannot install OPX files on Origin versions prior to 8.0). For example, if you were to use Origin to create an X-Function and a button from a custom button group to open this X-Function in Origin, you could then share the button group and associated files with any other Origin user.
Installation of the OPX file is simple: the Origin user simply drags the .OPX file onto their Origin program button on the taskbar or onto their Origin program window (or they can double-click on the OPX file), and the your custom files are automatically unpacked to the correct location.
Creating the Export (.OPX) File
When creating a custom button group for export to an .OPX file, consider saving your button group's initialization file, bitmap file(s), script file(s), and any other support files to a user-created subfolder in your User Files Folder (UFF). When another Origin user installs your .OPX file, your custom subfolder will automatically be created in the user's UFF, and this subfolder will contain the files for the custom button group. This allows you to keep your custom files separate from other Origin files. This is particularly helpful if your end user happens to install multiple .OPX files.
To export your custom button group (or the User Defined button group) to an .OPX file:
- From the menu, choose View: Toolbars to open the Customize Toolbar dialog box.
- Select the Button Groups tab.
- Select your custom button group from the Groups list box.
- Click the Export button in the Button Group group. This opens the Export Button Group dialog box. The upper view box lists the files that will be exported to the .OPX file when you click Export. By default, this view box lists the initialization file and the bitmap file for the custom button group, and the LabTalk script files associated with the buttons in the group.
- If you want to add additional files with this dialog box:
- Click the Add File button. This opens the Open dialog box.
- Select additional files. Additional files are displayed in the Additional Files view box. Note that it is not recommended to include files that are located outside your user files folder.
- If you want to remove an additional file, select the file you want to remove, then click the Remove File button.
- The For Use By drop-down list allows you to restrict installation of your .OPX file:
- All Users allows anyone who receives your .OPX file to install your custom button group to their Origin folder (user must have version 8.0 or later).
- Licensed Users allows only licensed users to install your custom button group (excludes Evaluation software users).
- Registered Users allows only users who have registered and entered their Registration ID in their Origin software to install your custom button group.
- To complete the creation of your .OPX file, click the Export button. This opens the Save As dialog box. By default, Origin lists the custom button group name in the File Name text box.
- Edit the file name and path, as needed*.
- Click Save to create the .OPX file.
*Note: The file name extension must be .OPX. You do not need to enter this extension as Origin will add it automatically. If you enter an extension other than .OPX, .OPX will be appended on the file name.