MDGetFileName

<< Click to Display Table of Contents >>

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

MDGetFileName

Description

Returns the file name of the master drawing for the passed document unique id.

Syntax

call DBWShell("MDGetFileName uniqueID")

Parameters

uniqueID

unique id of a document

Results

@MDFILENAME

expected Master Drawing file name

@MDFILEEXISTS

1: if the Master Drawing file already exists
0: otherwise

Example

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