|
<< Click to Display Table of Contents >> Navigation: Programming Mechworks PDM > DBWCommandShell > Event Scripts > Revision > OnCanRev.LST script file |
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.
Options→Revisions
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; 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 |