|
<< Click to Display Table of Contents >> Navigation: Programming Mechworks PDM > DBWCommandShell > Commands Reference > Document > GetRevisionOutputFiles |
available from build: 20190417 |
The command retrieves the list of output files generated for the last revision cycle.
call DBWShell("GetRevisionOutputFiles uid bFullPathName")
uid |
The document unique id |
|---|---|
bFullPathName |
1: it allows to include full path names. |
@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 |
'...
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
'...