|
<< Click to Display Table of Contents >> Navigation: Programming Mechworks PDM > .NET API > MWAPI - Customizing the Event System |
MechWorks .NET API
The MwPDMEvents.dll is the module implementing event customization. For each event to customize, a class with the specific event name must be defined. By contract, the class must implement the MwPDMAPI.ICustomEvent interface and the Execute method is processed when the event is fired.
For additional details:
•Connection: in the renamed On_ScriptTemplate_.lst, the StartConnection method is invoked with the event script name specification.
•User customization: the module is delivered as a VB.Net (in LST_DIR\DotNETAPI\Source folder) or as a C# (in LST_DIR\DotNETAPI\SourceCS folder) demo implementation and, at run time, the corresponding built module could be used.
•Loading: to support client/server customization, the built module is loaded from LST_DIR folder. It is possible to override this behavior through the new user option .NET custom assemblies path, default value is blank.

When updating (overwriting) the MwPDMEvents.dll in the shared folder, it's mandatory to first stop every executable that could be using such DLL. Otherwise the scripting won't be available anymore until the next executable restart (e.g. the CAD).