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: 

Is it possible to call a custom Revit addin externally in a c# program?

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
devapi
142 Views, 2 Replies

Is it possible to call a custom Revit addin externally in a c# program?

I have an addin that I created, and it works within REVIT as it is fine. Now I am wondering if there is a way to call created REVIT addins externally via a c# program. 

 

My specific scenario is I'd like to have a c# program or windows application that users would execute on their machines that would gather some form data that would then be passed to my REVIT addin which creates a model based on the data sent to it.  

 

Is there any examples that exist for what I am trying to do? 

2 REPLIES 2
Message 2 of 3
jeremy_tammik
in reply to: devapi

Yes, this is possible. Please note that the Revit API requires a valid Revit API context, and such is only provided by Revit within a running session of Revit. exe. Therefore, Revit must be running, snd your custom add-in must be loaded and running as well. With that understood, you can communicate from outside with your add-in and cause it to provide the requested data. The standard way to set up such communication would be the use of an external event. There are lots of sources, ideas, and different approaches to achieve more. Here are some places to start looking:

  

  

Jeremy Tammik, Developer Advocacy and Support, The Building Coder, Autodesk Developer Network, ADN Open
Message 3 of 3
devapi
in reply to: jeremy_tammik

Thank you, Jeremy.

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

Post to forums  

Forma Design Contest


Rail Community