Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to disable addin on click of another addin in the same ribbon panel

1 REPLY 1
SOLVED
Reply
Message 1 of 2
Anonymous
332 Views, 1 Reply

How to disable addin on click of another addin in the same ribbon panel

Hi folks,

 

on click of addin i am doing license check, if that gives me invalid user then i want to disable my other addins in the same ribbon panel,

is it possible in Revit.

 

Any help appreciated

 

Thanks

 

1 REPLY 1
Message 2 of 2
jeremytammik
in reply to: Anonymous

There are obviously lots of ways to achieve this.

 

One very simple method that is supported by the Revit API is to simply disable all your other add-in buttons by turning off their Enabled property:

 

https://www.revitapidocs.com/2020/1e8498e5-1609-cf26-fb58-012e73db9f5b.htm

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Customer Advisory Groups


Rail Community