DBWEventLogEvent

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > DBWCommandShell > Library Reference > PDMSystem >

DBWEventLogEvent

Description

Returns the occurrence of a given event on a given document type.

Syntax

Function DBWEventLogEvent(EventKey, DocType)

Parameters

EventKey

It is the event type to check.

Available values are:

EVENT_DOCUMENT_REPLACE

EVENT_DOCUMENT_REPLACE_WITH
EVENT_DOCUMENT_RENAME
EVENT_DOCUMENT_OPEN
EVENT_DOCUMENT_DELETE
EVENT_PROJECT_NEW
EVENT_PART_OPEN
EVENT_PART_SAVE_AS
EVENT_PART_SAVE
EVENT_PART_CLOSE
EVENT_PART_PLOT
EVENT_ASSEMBLY_OPEN
EVENT_ASSEMBLY_SAVE_AS
EVENT_ASSEMBLY_SAVE
EVENT_ASSEMBLY_CLOSE
EVENT_ASSEMBLY_PLOT
EVENT_DRAWING_OPEN
EVENT_DRAWING_SAVE_AS
EVENT_DRAWING_SAVE
EVENT_DRAWING_CLOSE
EVENT_DRAWING_PLOT
EVENT_REVISION_NEW
EVENT_REVISION_UPDATE
EVENT_REVISION_APPROVED
EVENT_REVISION_TO_APPROVE
EVENT_REVISION_ACTIVATED
EVENT_CHECK_OUT
EVENT_UNCHECK_OUT
EVENT_UNCHECK_IN
EVENT_CHECK_IN
EVENT_APPROVE
EVENT_FREEZE
EVENT_ADD_TO_PROJECT
EVENT_REMOVE_FROM_PROJECT

DocType

the type of the document

Return Values

TRUE

If an event of specified type on document of specified type has occurred.

FALSE

otherwise

Example

if DBWEventLogEvent("EVENT_DOCUMENT_OPEN", "P" ) then
 msgbox " a part type document has been opened"
end if