|
<< Click to Display Table of Contents >> Navigation: Programming Mechworks PDM > DBWCommandShell > Commands Reference > NeutralFormat > MDGetFileName |
Returns the file name of the master drawing for the passed document unique id.
call DBWShell("MDGetFileName uniqueID")
uniqueID |
unique id of a document |
@MDFILENAME |
expected Master Drawing file name |
|---|---|
@MDFILEEXISTS |
1: if the Master Drawing file already exists |
Sub Main()
DBWInit(TRUE)
DBWShell("MDGetFileName 70308")
if okDBW then
mdFileName = DBWResult("@MDFILENAME")
mdFileExists = DBWResult("@MDFILEEXISTS")
DBWMsgBox "Master Drawing File Name:" & vbcrlf &_
mdFileName & vbcrlf & "It exists: " & mdFileExists
end if
End Sub