OnCanRev.LST script file

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > DBWCommandShell > Event Scripts > Revision >

OnCanRev.LST script file

Description

This script is executed when the user presses the CANCEL button in the Revision Data Input Form. It receives as input all the field values; it returns no data.

Activation

Options→Revisions

Input

any field name


@EDIT

<0/1> 0: insert a new record; 1: update an existing record

@PARENT_WINDOW_TITLE

the title of the window the script has been called from

@PARENT_WINDOW_HANDLE

the handle (long integer) of the window the script has been called from

@REVISION_PHASE

this variable is passed if not null only;
values can be "REVISION_PROCESSED" | "REVISION_APPROVED" | "REVISION_NEW" | "REVISION_ACTIVATED" | "CHECKIN"

Remarks

stateCOUTstateCIN @REVISION_PHASE=CHECKIN

stateNEWstateCIN @REVISION_PHASE=REVISION_NEW

stateRELstateCIN @REVISION_PHASE=REVISION_NEW

Remarks

Special case when a drawing is being saved:

Adrawing saves its own record and that ones of the document being saved.

When saving the drawing's own record

@DRAWING_UNIQUE_ID

= drawing unique id

@DOCUMENT_UNIQUE_ID

= 0

When saving any drawn document's record

@DRAWING_UNIQUE_ID

= drawing unique id

@DOCUMENT_UNIQUE_ID

= part/assembly unique id