Technically, an external application is an exposed .NET object that supports the Autodesk.Revit.IExternalApplication interface. Furthermore, there must be a .addin manifest file in the appropriate directory with one entry for each such object in order for Autodesk Revit to be able to load these applications when Autodesk Revit starts.
The declaration ( C#) of the interface is as follows:
Code Region: IExternalApplication interface |
---|
Autodesk.Revit.UI.IExternalApplication.Result OnStartup(Autodesk.Revit.ControlledApplication application) |
Autodesk.Revit.UI.IExternalApplication.Result OnShutdown(Autodesk.Revit.ControlledApplication application) |
result: The return value can be one of the following:
When Autodesk Revit starts, the external application object will be created and the OnStartup method called. Once this method returns back successfully to Autodesk Revit the external application object will be held during the entire Autodesk Revit session. The OnShutdown method will be called when Autodesk Revit shuts down.