cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

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

SOLVED
Highlighted
Moonstone

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

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.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

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

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/48155...

 

Hope that helps,

Madhavi

 

 

View solution in original post

3 REPLIES 3
Highlighted

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

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/48155...

 

Hope that helps,

Madhavi

 

 

View solution in original post

Highlighted

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

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

Highlighted

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

I am glad that it worked for you 🙂

Announcements