Creo Parametric supports loading of multiple .rbn files in the same session. You can develop multiple Creo Object
TOOLKIT C++ applications that share the same tabs or groups and each application will have its own ribbon definition file. As each application
is loaded, its .rbn file will be read and applied. When an application is unloaded, the containers and command created by its .rbn file will be removed.
For example, consider two Creo Object
TOOLKIT C++ applications, namely, pt_geardesign and pt_examples that add commands to the same group on a tab on the Ribbon user interface. The application pt_geardesign adds a command Pro/TOOLKIT Gear Design to the Advanced Modeling group on the Modeling tab and the application pt_examples adds a command TKPart to the Advanced Modeling group on the Model tab. The ribbon definition file for each application will contain an instruction to create the Advanced Modeling group and if both the ribbon files are loaded, the group will be created only once and the two ribbon customizations will
be merged into the same group.
That is, if both the applications are running in the same Creo Parametric session, then the commands, Pro/TOOLKIT Gear Design and TKPart will be available under the Advanced Modeling group on the Model tab.
Note
The order in which the commands will be displayed within the group will depend on the order of loading of the .rbn file for each application.
The following image displays commands added by two
Creo Object
TOOLKIT C++ applications to the same group.
To save the customization when multiple applications are loaded:
|
1. |
Click . The Creo Parametric Options dialog box opens. |
|
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 Object
TOOLKIT C++ application are displayed. |
|
5. |
Click Add to add the commands to the new tab or group. |
|
6. |
Click . The Save UI Customization dialog box opens. |
|
7. |
Select a Creo Object
TOOLKIT C++ application and Click Save. The modified layout is saved to the .rbn file of the specified Creo Object
TOOLKIT C++ application. The Save UI Customization dialog box is shown in the following image:
|