Files
2024-12-12 10:25:07 +01:00

29 lines
2.3 KiB
Plaintext

{\rtf1\fbidis\ansi\ansicpg936\deff0\deflang1033\deflangfe2052{\fonttbl{\f0\fswiss\fprq2\fcharset0 Arial;}{\f1\froman\fprq2\fcharset0 Times New Roman;}}
{\colortbl ;\red0\green0\blue255;}
\viewkind4\uc1\pard\ltrpar\b\f0\fs20 Application:\b0 APIAppStartup\line\b Revit Platform:\b0 All\line\b Revit Version:\b0 2010.0\line\b First Released For:\b0 2008.0\line\b Last Modified:\b0 02/26/2008\line\b Modified By:\b0 LL Autodesk\line\b Programming Language:\b0 C#\line\b Skill Level:\b0 Beginning\line\b Category:\b0 Basics\line\b Type:\b0 ExternalApplication\line\line\b Subject:\b0 Launch an external application.\line\b Summary:\b0 \line This sample demonstrates how to launch an external application when Revit starts and closes.\f1\par
\f0\par
\b Classes:\b0 \par
\pard\ltrpar\fi360 Autodesk.Revit.IExternalApplication\par
\f1\par
\pard\ltrpar\b\f0 Project Files:\b0 \par
AppSample.cs\f1\par
\pard\ltrpar\li360\tx720\f0 This file contains the class AppSample which inherits from IExternalApplication interface and implements the OnStartup and OnShutdown methods.\f1\par
\par
\pard\ltrpar\f0 SplashWindow.cs\f1\par
\pard\ltrpar\li360\tx720\f0 This file contains a form class SplashWindow which consists of one Form to show user the Revit Logo and version information when Revit starts.\f1\par
\par
\pard\ltrpar\b\f0 Description:\b0 \par
The sample displays a splash window when Revit application starts up and pop up a messagebox when Revit application closes.\f1\par
\f0 Implementations:\f1\par
\pard\ltrpar\fi-360\li360\tx360\f0 -\tab The class which answers for launching external applications must implement IExternalApplication interface. And the external applications should be called in OnStartup and OnShutdown methods.\f1\par
\pard\ltrpar\par
\b\f0 Instructions:\cf1\b0 \f1\par
\pard\ltrpar\fi-360\li360\tx360\cf0\f0 1.\tab Make sure there are following settings in Revit.ini file \f1\par
\pard\ltrpar\li720\f0 [ExternalApplications]\par
EACount = 1\par
EAClassName1 = APIAppStartup.AppSample\f1\par
\f0 EAAssembly1 = (your path)\\APIAppStartup.dll\f1\par
\pard\ltrpar\fi-360\li360\tx360\f0 2.\tab Run Revit, then you can see a splash window displays Revit logo and version info. \par
\pard\ltrpar\fi-360\li360 3.\tab Close Revit, then a messagebox will appear.\f1\par
}