Use the Event Wizard to create a template for a scripted self-installing event. This section provides a quick overview of the procedure. For a more detailed description of events, see the SDK Guides.
To create events
1. Open the Plug-in Manager (File > Plug-in Manager).
2. On the Tree, Plug-ins, or Items tab, choose File > New > Event.
3. On the Plug-in Definition tab of the Event WIzard, enter basic information about the plug-in such as its name and file.
4. On the Event Definition tab, check the event types you want to include in this plug-in file, and optionally change the default names.
5. Click Generate Code.
A template for your events is created and opened in a text editor. The generated code includes XSILoadPlugin and XSIUnloadPlugin callbacks, as well as stub functions for your events’ _OnEvent callbacks.
6. Enter code to implement the _OnEvent callbacks. For more information, including details about the context argument, see the SDK Guides.
Once you have modified the file, make sure you don’t click Generate Code again or you will loose your modifications.
7. Save the file.
SOFTIMAGE|XSI v.6.01