Skip to main content
16-Pearl
August 17, 2017
Solved

How to add the push button directly to the Ribbon Group via Coding?

  • August 17, 2017
  • 1 reply
  • 3679 views

Is it possible to add push button to the Creo Ribbon Group by  coding instead of saving customize.ui file.

Right now I am using ProMenubarmenuPushbuttonAdd() then saving my toolkit command to required Group.

 

And also I want to rename the default group name "TOOLKIT" which created on start of the application.

 

 

Best answer by Madhavi

Hello,

 I have recently worked on designing Ribbon for custom commands.

Per my knowledge 

1. one can create new commands as push button but when it comes to adding it to Ribbon, you have to use "Creo Parametric Options" and customize the Ribbon. That updates 'toolkitribbonui.rbn'

So far I have not came across any option to do so from coding.

2. same is with default group name "TOOLKIT" . You have to update it manually.

 

FYI: If you are trying to create a cascading menu then you can NOT attach command to main cascading option/Menu.

Reference: https://community.ptc.com/t5/Additional-Creo-Questions/Assigning-command-to-Cascading-Menu/m-p/481553#M38478

 

Hope that helps,

Madhavi

 

 

1 reply

Madhavi1-VisitorAnswer
1-Visitor
August 22, 2017

Hello,

 I have recently worked on designing Ribbon for custom commands.

Per my knowledge 

1. one can create new commands as push button but when it comes to adding it to Ribbon, you have to use "Creo Parametric Options" and customize the Ribbon. That updates 'toolkitribbonui.rbn'

So far I have not came across any option to do so from coding.

2. same is with default group name "TOOLKIT" . You have to update it manually.

 

FYI: If you are trying to create a cascading menu then you can NOT attach command to main cascading option/Menu.

Reference: https://community.ptc.com/t5/Additional-Creo-Questions/Assigning-command-to-Cascading-Menu/m-p/481553#M38478

 

Hope that helps,

Madhavi

 

 

16-Pearl
August 29, 2017

Hello @Madhavi

Your solution helped.

I've customized the UI Ribbon as per my requirement & finally used the option Save the Auxiliary Application User Interface, which saved the *.rbn file in the Toolkit application folder. then every time starting the application the file automatically loads the customized ribbon file.

 

Thank You

1-Visitor
September 5, 2017

I am glad that it worked for you 🙂