1. | Create a Creo TOOLKIT application with complete command definition, which includes specifying command label, help text, large icon name, and small
icon name. Designate the command using the ProCmdDesignate(). Note
The labels and the text added using the ProCmdDesignate() function duplicate existing messages that are previously added in the Creo database. To display the correct label and text message, you can use a prefix or a suffix with the message names that will
identify your Creo TOOLKIT application. You should avoid using generic names of Creo TOOLKIT buttons such as Point, Arc, Circle, Ellipse in the labels and text.
|
2. | Start the Creo TOOLKIT application and ensure that it is started or connected to Creo Parametric. The commands created by the Creo TOOLKIT application will be loaded in Creo Parametric. |
3. | Click Creo Parametric Options dialog box opens. . The |
4. | Click Customize Ribbon. |
5. | In the Customize the Ribbon list, select a tab and create a new group in it or create a new tab and a group in it. |
6. | In the Choose commands from list, select TOOLKIT Commands. The commands created by the Creo TOOLKIT application are displayed. |
7. | Click Add to add the commands to the new tab or group. |
8. | Click toolkitribbonui.rbn file. The toolkitribbonui.rbn file is saved in the text folder specified in the Creo TOOLKIT application registry file. For more information refer to the section on Ribbon Definition File. . The changes are saved to the |
9. | Click Apply. The custom settings are saved to the toolkitribbonui.rbn file. |
10. | Reload the Creo TOOLKIT application or restart Creo Parametric. The toolkitribbonui.rbn file will be loaded along with the Creo TOOLKIT application. |
1. | Click Creo Parametric Options dialog box opens. . The |
2. | Click Customize Ribbon. |
3. | In the Customize the Ribbon list, select a tab and create a new group in it or create a new tab and a group in it. |
4. | In the Choose commands from list, select TOOLKIT Commands. The commands created by the Creo TOOLKIT application are displayed. |
5. | Click Add to add the commands to the new tab or group. |
6. | Click toolkitribbonui.rbn file located in the text folder within the Creo TOOLKIT application directory, that is, <protk_app_dir>/text . The modified layout is saved to the |
7. | Click OK. |
• | file_name - Specify the name of the ribbon definition file including its extension. The default search path for this file is:
|
1. | Click Creo Parametric Options dialog box opens. . The |
2. | Click Customize Ribbon. |
3. | In the Customize the Ribbon list, select a tab and create a new group in it or create a new tab and a group in it. |
4. | In the Choose commands from list, select TOOLKIT Commands. The commands created by the TOOLKIT application are displayed. |
5. | Click Add to add the commands to the new tab or group. |
6. | Click Save UI Customization dialog box opens. . The |
7. | Select a Creo TOOLKIT application and Click Save. The modified layout is saved to the .rbn file of the specified Creo TOOLKIT application. The Save UI Customization dialog box is shown in the following image: |
1. | A hash sign (#) followed by the label, as specified in the ribbon definition file. |
2. | The label as specified in the ribbon definition file and as displayed in the ribbon user interface. |
3. | The translated label. |
4. | Add an empty line at the end of each label entry in the file. |
#TK_TAB
TK_TAB
<translation for TK_TAB>
<Empty_line>
#TK_GROUP
TK_GROUP
<translation for TK_GROUP>
<Empty_line>
1. | Click Creo Parametric Options dialog box opens. . The |
2. | Click Customize Ribbon. |
3. | In the Choose commands from list, select TOOLKIT Commands. All the commands added by legacy Pro/TOOLKIT applications are listed. |
1. | Load the Pro/TOOLKIT applications in Creo Parametric so that the commands created in these applications are available in the Customize Ribbon user interface. |
2. | Modify the ribbon user interface layout and save the changes to the toolkitribbonui.rbn. |
3. | Copy the toolkitribbonui.rbn to the location <application_text_dir>/ribbon. |
4. | Reload Pro/TOOLKIT application or restart Creo Parametric. The .rbn file will be loaded along with the Pro/TOOLKIT application and the commands will be visible in the ribbon user interface if its accessibility will be visible. |