Application: APIAppStartup
Revit product and version: All
Last Modified: 25/02/2007
Modified By: Tao Autodesk
Programming Language: C#

Subject:  This sample demonstrates how to launch an external application when Revit starts and closes

Classes: 
Autodesk.Revit.IExternalApplication

Project Files: 
AppSample.cs
This file contains the class AppSample which inherits from IExternalApplication interface and implements the OnStartup and OnShutdown methods.

SplashWindow.cs
This file contains a form class SplashWindow which consists of one Form to show user the Revit Logo and version information when Revit starts.

Description: 
The sample displays a splash window when Revit application starts up and pop up a messagebox when Revit application closes.
Implementations:
-	The class which answers for launching external applications must implement IExternalApplication interface. And the external applications should be called in OnStartup and OnShutdown methods.

Instructions: 
1.	Make sure there are following settings in Revit.ini file 
[ExternalApplications]
EACount            = 1
EAClassName1 = APIAppStartup.AppSample
EAAssembly1    = (your path)\APIAppStartup.dll
2.	Run Revit, then you can see a splash window displays Revit logo and version info. 
3.	Close Revit, then a messagebox will appear.