Custom ribbon conflicts

Custom ribbon conflicts

darinrUQ882
Contributor Contributor
216 Views
2 Replies
Message 1 of 3

Custom ribbon conflicts

darinrUQ882
Contributor
Contributor

Hi all,

I'm having a problem. I have a custom plug-in consisting of several commands in an  AutoLisp .lsp file and a partial customization file to create a ribbon tab for others to access those commands. 

We also have a c# .net plug-in which also creates a ribbon tab, created by an outside developer for us (before I started).

On the two machines that use both, loading one always removes the ribbon tab created by the other.

I've had some success fiddling around with reloading the Autolisp plug-in after updating the .net one, but it's inconsistent.I can't find any code in the .net plug-in that would remove ribbons, and I certainly don't have any in my Autolisp.

 I can't find any information about plugins conflicting except where they share names, but these two don't have any common identifiers at all. I've gone through the source for both to ensure that there are no naming conflicts, but this continues to happen.

Has anyone seen anything like this? I'm unaware of any limit of one custom ribbon tab, but it kinda seems like that's what's happening, except in those rare cases when I'm able to (temporarily) get both loaded.

0 Likes
Accepted solutions (1)
217 Views
2 Replies
Replies (2)
Message 2 of 3

ActivistInvestor
Mentor
Mentor
Accepted solution

There's no limit on the number of custom ribbon tabs, the problem is most likely that the code that adds the tabs to the ribbon is not also adding them when the ribbon is updated or refreshed. Without showing the code no one can really tell you exactly what the problem is although it sounds like the code is not handling ribbon events properly.

0 Likes
Message 3 of 3

darinrUQ882
Contributor
Contributor

This lead me to the source of the problem, thank you. I've modified the source code of the .net plug-in and recompiled it. It now hangs onto custom ribbons when it refreshes the ribbon bar. 

0 Likes