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

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

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

PARTHIBAN_K
15-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.

 

 

Parthiban Kannan

href="https://www.linkedin.com/in/parthiban-kannan/" target="_blank"
1 ACCEPTED SOLUTION

Accepted Solutions

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

 

 

View solution in original post

3 REPLIES 3

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

 

 

PARTHIBAN_K
15-Moonstone
(To:Madhavi)

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

Parthiban Kannan

href="https://www.linkedin.com/in/parthiban-kannan/" target="_blank"

I am glad that it worked for you 🙂

Top Tags