RADE |
Event Listener |
Getting Started with Event ListenersThe basic of Event Listeners |
Technical Article |
AbstractThis article explains what is necessary to do before creating an Event Listener. An event listener is a class implementing an Event interface. The Event Listener generated by the wizard will be registered in ENOVIA server by a plug-in module. Plug-in modules are librairies containing a Plug-in class used to registered Event listeners at ENOVIA Server start-up. |
Use the File/New CAA V5 Workspace ...
menu. The New Workspace Confirmation
dialog box opens to give you some general information. When you click
OK
to close the dialog box, the
New CAA V5 Workspace
dialog box appears:
Enter the required information in the three fields displayed then click on
Next>
button to go on with the
workspace creation.
The Initializing tools...
dialog
box opens to inform you that the command is running. When
...Command done without errors
displayed,
click Close
.
Select Define Prerequisite Workspace
and click Finish
.
[Top]
Prerequisites
dialog
box, click Access prerequisites from their origin
location
.Create ENOVIA prerequisites on
NT...
.[Top]
OK
.Add
to enter the
directory which contains the ENOVIA prerequisities on Windows.[Top]
File/Add CAAV5 Project/New Framework
...
menu.
OK
to validate.[Top]
File/Add CAAV5 Item/ENOVIA Resource/Plugin...
menu.File modified :
..\EventFramework\IdentityCard\IdentityCard.h
..\EventFramework\CNext\code\dictionary\EventFramework.dico
Files created :
..\EventFramework\CNext\resources\msgcatalog\PluginList.CATRsc
..\EventFramework\NewPlugin\Imakefile.mk
..\EventFramework\NewPlugin\src\ENOVPluginNewPlugin.cpp
..\EventFramework\NewPlugin\src\ENOVPluginNewPluginListener.cpp
..\EventFramework\NewPlugin\LocalInterfaces\ENOVPluginNewPlugin.h
..\EventFramework\NewPlugin\LocalInterfaces\ENOVPluginNewPluginListener.h
[Top]
File/Add CAAV5 Item/ENOVIA
Resource/Event Listener...
menu.This panel displays existing ENOVIA packages of objects, the objects defined in the packages and the event interfaces supported by those objects : the interfaces called by the event fired by the object.
OK
.Files modified:
..\EventFramework\NewPlugin\src\ENOVPluginNewPluginListener.cpp
..\EventFramework\NewPlugin\LocalInterfaces\ENOVPluginNewPluginListener.h
..\EventFramework\CNext\code\dictionary\EventFramework.dico
Files created:
..\EventFramework\NewPlugin\src\VPMProductClassListener.cpp
.\EventFramework\NewPlugin\LocalInterfaces\VPMProductClassListener.h
[Top]
CAAV5 Workspace/Locate Prerequisite
Workspaces ...
menu:On
UNIX
and click
Add...
to inform the UNIX prerequisite.OK
.[Top]
Build/mkmk ...
menu.On UNIX
and click
OK
to launch the build on UNIX machine.[Top]
CAAV5 Workspace/Create\Update
RuntimeView ...
menu.On UNIX
and click
OK
to create the Runtime View on UNIX.To take into account this Event Listener in your ENOVIA Server, run
./enoviastart -env %EnvName% -direnv %EnvDir% -object "-senv WorkspaceEnv -sdirenv %EventWorkspace%"
The file %EventWorkspace%\WorkspaceEnv is generated after Define Prerequisite Workspace ... command and the environment variable VPM_PLUGIN_OBJECTS_LIST is set at the end of file.
[Top]
[1] | Customizing Microsoft Visual Studio .NET |
[2] | Working with Microsoft Visual Studio .Net |
[Top] |
Version: 1 [May 2001] | Document created |
[Top] |
Copyright © 2005, Dassault Systèmes. All rights reserved.