RADE

Event Listener

Getting Started with Event Listeners

The basics 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 libraries containing a Plug-in class used to registered Event listeners at ENOVIA Server start-up.


Creating a Workspace With a UNIX Connection

  1. From the File menu, select New CAA V5 Workspace ... . 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:

  1. In the Workspace Directory field, enter your workspace name or click the button to select it. In the Tool level scrolling list, select CXR17 and click Next>.
  2. The Initializing tools... dialog box opens to inform you that the command is running. When ...Command done without errors displayed, click Close.

  1. Select Define Prerequisite Workspace and click Finish.

[Top]

Defining NT prerequisites workspaces

  1. From the CAAV5 Workspace menu, select Locate Prerequisite Workspaces. Click Access prerequisites from their origin location.

  1. If you do not have ENOVIA prerequisites on your NT machine, transfer them. 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. Select File>Add CAAV5 Project>New Framework ...

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

[Top]

Creating a plug-in module in the Framework

  1. Select File>Add CAAV5 Item>ENOVIA Resource>Plugin....

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

File modified :

Files created :

[Top]

Creating an Event Listener

  1. Select File>Add CAAV5 Item>ENOVIA Resource>Event Listener....

This panel displays existing ENOVIA packages of objects, the objects defined in the packages and the event interfaces supported by those objects, i.e. the interfaces called by the event fired by the object.

  1. Select an ENOVIA package and a modeler object.
  2. 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. Select CAAV5 Workspace>Locate Prerequisite Workspaces ...

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

[Top]

Building the Workspace

  1. Select Build>mkmk ...

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

[Top]

Creating the Runtime View

  1. Select 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 2005
[2] Working with Microsoft Visual Studio 2005

[Top]


History

Version: 1 [November 2005] Document created
[Top]

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