Revit does not load correct addin .dll

Revit does not load correct addin .dll

MGO-Norsyn
Advocate Advocate
754 Views
2 Replies
Message 1 of 3

Revit does not load correct addin .dll

MGO-Norsyn
Advocate
Advocate

I am working on a modeless add-in implementing an External Event and so couldn't use Add-In Manager to debug.

I had to do a lot of Open Revit -> Load Add-In -> Close Revit and now Revit is stuck on a particular version of the code. I simply cannot get Revit to load latest .dll. I've tried changing addin's GUID, changing path. This could be a VS issue, so I restarted VS and restarted computer. Still no luck, Revit just refuses to load latest .dll.

Anyone has experienced this and can help me overcome this problem?

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

jeremytammik
Autodesk
Autodesk
Accepted solution

In your add-in manifest, you tell Revit exactly which DLL to load.

 

It cannot load a different one than what you tell it to.

 

You can either specify the full DLL path or not. 

 

In your situation, I would suggest specifying the full path and adding a breakpoint in the OnStartup method to see what is being loaded.

 

I would also suggest that you delete all other versions of the DLL from your system, just to make sure.

 

Details are given in the developer guide:

 

https://help.autodesk.com/view/RVT/2020/ENU/?guid=Revit_API_Revit_API_Developers_Guide_Introduction_...

 



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

Message 3 of 3

MGO-Norsyn
Advocate
Advocate

I am sorry, the problem was completely unrelated, thank you for answering and sorry for wasting your time.

0 Likes