RestoreRevision

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > DBWCommandShell > Commands Reference > Revisions >

RestoreRevision

Description

Restore a previous revision for a note and all its children.
It's the API way to call the UI command restoreRevin the bottom bar.

Please note that this functionality is effective on document structures only if run from Integrated version.

On Standalone Client it restores previous revision structures for Generic documents only

Syntax

call DBWShell("RestoreRevision RevisionID")

Parameters

RevisionID

an existing revision for the currently selected document

Remarks

MechworksPDM browser must be open, TreePage must be active and a record must be selected (either in a Tree or in a Grid control)

See also

For more info

ActivateRevision command
RestoreLastRevision command
VisualizeRevision command

Example

sub main()

 DBWInit(true)
 DBWShell("RestoreRevision 01")
end sub