My add-in creates a ribbon that then allows users to start various other company specific add-ins. A single manifest which has application and command sections is distributed to the users. Ribbon buttons call other add-ins that are modal. This all works well and has been in use for a while. I want to add a modeless dialog which I can make work with an additional manifest but I would like the ribbon add-in to do the equivalent of the modeless add-in's "application" manifest by putting something in the on-startup code instead of distributing multiple manifest files. I have looked at the SDK examples and searched forums but can't find an answer.
Suggestions welcome, Thanks
Solved! Go to Solution.
Solved by jeremy_tammik. Go to Solution.
Most Revit ribbon items launch commands, either built-in or external. You simply need to implement an external command that launches your modeless dialogue. You can add that to the same add-in manifest.
Thank you for the advice. As suggested I simply added the "Application" section from the manifest of the modeless dialog to the manifest for the Ribbon and all worked fine.
I was trying to find some code to run in the "on-startup" area but never thought to edit the manifest of the ribbon. Excellent!
Can't find what you're looking for? Ask the community or share your knowledge.