MWAPI - The API Object model

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > .NET API >

MWAPI - The API Object model

MechWorks .NET API

The API Object model

The MwPDMApi.Initialize object is the creatable object providing access/connection management to work with MwPDMApi.Application object.

The MwPDMApi.Application object exposes the object model system implementing all the existing DBWShell/DBWLib functionalities.

images_MWAPI03

The exposed object model is related to PDM functionalities and it is independent from the specific CAD application (SolidWorks, SolidEdge, Inventor). As a standard approach, the Application object provides a Parent method to access the specific CAD Application to allow the usage of CAD native objects.

For data specialization in event management, the MwPDMApi.Application provides an additional object MwPDMApi.Events to access all the event handler objects (group by defined object model system). When an event is fired, tipically in MwPDMEvents module customization, the specific event handler encapsulates all the required knowledge to get and set event data.

images_MWAPI04

The MwPDMApi.ICustomEvent is the contract interface to support event customization: customized object must implement this interface to be invoked during event execution.

' Implements this interface to manage event customization.

Public Interface ICustomEvent
  ' Execute method is invoked when the related event is fired in MwPDM.
  Function Execute(ByVal pVal As Application) As Boolean
End Interface