RADE

Event Listener

Getting Started with Event Listeners

The basic of Event Listeners

Technical Article

Abstract

This 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.


Creating a Workspace With a UNIX Connection

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]

Defining NT prerequisites workspaces

  1. In the Prerequisites dialog box, click Access prerequisites from their origin location.

  1. If you have not ENOVIA prerequisites on your NT machine, you should transfer it. Click Create ENOVIA prerequisites on NT....

[Top]

  1. Enter the UNIX directory which is the directory of your ENOVIA installlation.
  2. Enter a Windows directory which is the directory to transfer the prerequisites.
  3. Enter your UNIX password and click OK.

  1. Click Add to enter the directory which contains the ENOVIA prerequisities on Windows.

[Top]

Creating a Framework

  1. Use the File/Add CAAV5 Project/New Framework ... menu.

  1. Enter the name of a new Framework and click OK to validate.

[Top]

Creating a plug-in module in the Framework

  1. Use the File/Add CAAV5 Item/ENOVIA Resource/Plugin... menu.

  1. Enter the name of your new Plug-in Module.

File modified :

Files created :

[Top]

Creating an Event Listener

  1. Use the 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.

  1. Select an ENOVIA package and a modeler object.
  2. After that, you can choose an event. The name of the Event Listener is automatically informed.
  3. Click OK.

Files modified:

Files created:

[Top]

Define UNIX prerequisites workspaces

  1. Use the CAAV5 Workspace/Locate Prerequisite Workspaces ... menu:

  1. Check On UNIX and click Add... to inform the UNIX prerequisite.
  2. Click OK.

[Top]

Building the Workspace

  1. Use the Build/mkmk ... menu.

  1. Check On UNIX and click OK to launch the build on UNIX machine.

[Top]

Creating the Runtime View

  1. Use the CAAV5 Workspace/Create\Update RuntimeView ... menu.

  1. Check 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]


References

[1] Customizing Microsoft Visual Studio .NET
[2] Working with Microsoft Visual Studio .Net

[Top]


History

Version: 1 [May 2001] Document created
[Top]

Copyright © 2005, Dassault Systèmes. All rights reserved.