GetRevisionOutputFiles

<< Click to Display Table of Contents >>

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

GetRevisionOutputFiles

available from build: 20190417

Description

The command retrieves the list of output files generated for the last revision cycle.

Syntax

call DBWShell("GetRevisionOutputFiles uid bFullPathName")

Parameter

uid

The document unique id

bFullPathName

1: it allows to include full path names.
0:(default) otherwise.

Results

@REVISION_OUTPUT_FILE_PATH_NAME

revision output file #1 path name

@REVISION_OUTPUT_FILE_PATH_NAME

revision output file #2 path name

@REVISION_OUTPUT_FILE_PATH_NAME

revision output file #n path name

Example

'...

call DBWShell( "CurrentDocument" )
docUId = DBWResult( "@DOCUMENT_UNIQUE_ID" )
call DBWShell("GetRevisionOutputFiles " & docUId & " 1")
Set fs = CreateObject("Scripting.FileSystemObject")
Set tfolder = fs.GetSpecialFolder(TemporaryFolder)
Set a = fs.OpenTextFile( tfolder & "\" & "dbwreslt.in" , ForReading, True )
Do While a.AtEndOfStream <> True
 line = a.ReadLine
 tokens = Split( line, "=", 2, 1)
 DBWMsgBox tokens(1)
Loop
a.Close
'...