Avoid adding duplicate Ribbon Tab to AutoCAD using CUIX File

Avoid adding duplicate Ribbon Tab to AutoCAD using CUIX File

heyimsp12
Enthusiast Enthusiast
317 Views
1 Reply
Message 1 of 2

Avoid adding duplicate Ribbon Tab to AutoCAD using CUIX File

heyimsp12
Enthusiast
Enthusiast

Hi,

I have created an AutoCAD Ribbon and saved in a CUIX file that contains a few panels. However, when I try to add new panels to the same Ribbon using another CUIX file (Ribbon names are same) a new ribbon gets created with the same name. Is there any way to merge the ribbons automatically if there already exists a ribbon with the same name?

Thanks.

0 Likes
318 Views
1 Reply
Reply (1)
Message 2 of 2

shubham.rautJQ482
Participant
Participant

You can find if ribbon tab with same name exists using 

RibbonControl ribbon = ComponentManager.Ribbon;

RibbonTab rtab = ribbon.FindTab("Testing");

0 Likes