Add in manager?

Add in manager?

MuirEng
Collaborator Collaborator
3,495 Views
8 Replies
Message 1 of 9

Add in manager?

MuirEng
Collaborator
Collaborator

Hi, is anyone using the Revit Addin Manager?
https://github.com/chuongmep/RevitAddInManager

As I understand it this tool should let me unload an application so that I can rebuild the dll and then let me reload it. I can't seem to accomplish this using any of the tools provided. For example, in the Load App screen if I deselect my custom plug in it is still available on the ribbon and the DLL file is still locked. The documentation seems a bit incomplete...

Brian Muir, P.Eng, Muir Engineering
0 Likes
Accepted solutions (1)
3,496 Views
8 Replies
Replies (8)
Message 2 of 9

ricaun
Advisor
Advisor

In general is not possible to unload an application, if you load an assembly that gonna stay in the AppDomain until you close Revit, that's the reason the dll stays blocked, Revit is using that file.

 

I don't think that RevitAddInManager support loading App in the ribbon, loading is kinda easy, the problem is 'unload' and remove all the references to reload the same/new assembly.

 

I have a plugin AppLoader that allow load/reload IExternalApplication with ribbons and stuff.

 

 

It has some limitations, but it's worth it, developing Revit plugins with Revit open is much easier.

 

Luiz Henrique Cassettari

ricaun.com - Revit API Developer

AppLoader EasyConduit WireInConduit ConduitMaterial CircuitName ElectricalUtils

0 Likes
Message 3 of 9

seyoumhgs
Explorer
Explorer
Accepted solution

If your add-in is still available on the ribbon, it means it is loaded from your .addin file when Revit was first opened. Here’s how you can use the RevitAddinManager to test your add-in without needing to unload and reload:

  1. Remove the .addin File: First, close Revit and remove the .addin file from the Addins folder. This prevents Revit from loading your add-in from the .addin manifest file.

  2. Load the DLL in RevitAddinManager: After opening Revit, open the RevitAddinManager and load your DLL file once.

  3. Test Commands in RevitAddinManager: Test your commands directly from the RevitAddinManager. Double-click on the commands listed under your application to test their functionality.

  4. Rebuild and Test: After making changes to your add-in, simply rebuild the DLL. You don’t need to unload or reload anything. Just build again and test your commands directly from the RevitAddinManager.

Message 4 of 9

MuirEng
Collaborator
Collaborator

oh wow, fantastic. I'll try this. Thanks!

Brian Muir, P.Eng, Muir Engineering
0 Likes
Message 5 of 9

MuirEng
Collaborator
Collaborator
This procedure has saved me a ton of time over the past few days. Thanks for this idea!
Brian Muir, P.Eng, Muir Engineering
Message 6 of 9

LucasJonnedeJong
Enthusiast
Enthusiast

Is there one available for Revit 2025?

0 Likes
Message 7 of 9

gruizking
Explorer
Explorer
0 Likes
Message 8 of 9

LucasJonnedeJong
Enthusiast
Enthusiast

That is not what I am looking for. I am not looking to manage add-ins.  I am looking for a way to run a .dll file on the spot without having to close and open revit after every change.  Which I found here: https://github.com/chuongmep/RevitAddInManager/releases

Thanks

0 Likes
Message 9 of 9

donnia.tabor-hanson
Collaborator
Collaborator

@gruizking that link is broken. 

donniataborhanson_0-1747166019510.png

 

Thanks y'all,

Donnia Tabor
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature



CADMama and Revit Family Counselor
Twitter @DonniaTH

LinkedIn
0 Likes