How to automatically load a Revit plugin?

How to automatically load a Revit plugin?

rita.aguiar
Advocate Advocate
4,206 Views
7 Replies
Message 1 of 8

How to automatically load a Revit plugin?

rita.aguiar
Advocate
Advocate

I created a Revit plugin with Visual Studio in C#.
How can I automatically load it into the Revit application so that the asking to load dialog (because of an unknown publisher) does not appear?
Is it possible?

 Do I have to use the LoadAddIn method?

Many thanks.

0 Likes
Accepted solutions (1)
4,207 Views
7 Replies
Replies (7)
Message 2 of 8

jeremytammik
Autodesk
Autodesk

Currently, the ultimate source of truth on this topic is this discussion forum thread:

  

https://forums.autodesk.com/t5/revit-api-forum/code-signing-of-revit-addins/td-p/5981560

  

Cheers,

  

Jeremy

 



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

Message 3 of 8

BIM.Frankliang
Collaborator
Collaborator

Dear Friend,

 

         The load dialog display due to code signature of your revit plug-in. When you finish build or rebuild and then start Revit, it will display to remind you whether load or not load. If you choose "Always Load" and don't build or rebuild your plug-in anymore, it will not appear next time. Wish it is helpful 🙂

 

Best Regards,

Frank Liang

名片2.png

 

 

0 Likes
Message 4 of 8

rita.aguiar
Advocate
Advocate

Thank you @BIM.Frankliang.

I wish to implement my plugin in 200+ computers so it's not very feasible to click always load on that many computers.
I am looking for a solution where I can have the plugin automatically loaded without ever asking to load.

0 Likes
Message 5 of 8

rita.aguiar
Advocate
Advocate

Thank you @jeremytammik.

Is the only way to automatically load a Revit plugin a Code Signing certificate?

Are there any other options? For example, I have created a very similar plugin for AutoCAD and, to automatically load it, I just had to write an acad and acaddoc lsp files to add the path to the plugin as trusted and to execute the command that initiates the plugin immediately after launch.
I do not wish to publish my plugin on the web. Its just to be used within the several computers of the office I work at.
Clicking on "Always Load" is also not a good option.

0 Likes
Message 6 of 8

jeremytammik
Autodesk
Autodesk
Accepted solution

Did you read the thread I pointed out?

 

Currently, the ultimate source of truth on this topic is this discussion forum thread:

   

https://forums.autodesk.com/t5/revit-api-forum/code-signing-of-revit-addins/td-p/5981560

   

I strongly suspect the answer is already given there.

 

I not, please ask there as well.

 

I strongly suspect the answer is no.

 

Cheers,

   

Jeremy

 



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

Message 7 of 8

rita.aguiar
Advocate
Advocate

Yes.
I also found a post where you wrote:

MESSAGE 22 OF 64

"You can sign your own code, and declare yourself trusted to yourself."

How can I do that?

0 Likes
Message 8 of 8

jeremytammik
Autodesk
Autodesk
0 Likes