DBWCheckSavedConfiguration

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > DBWCommandShell > Library Reference > Revision >

DBWCheckSavedConfiguration

Description

Queries the DBWorks datasource for the existance of a specific file in configuration.

Syntax

Function DBWCheckSavedConfiguration(FileDir, FileName, Configuration)

Parameter

FileDir

The folder of the configuration file to check the existance of

FileName

The name of the configuration file to check the existance of

Configuration

The configuration to check file about

Return values

The function assumes value of the document unique id, empty string otherwise.

Example

Sub main()
 DBWInit(TRUE)
 filename="wheel.sldprt"
 filedir="c:\my_projects"
 config="length=20"
 uid = DBWCheckSavedConfiguration(filedir, filename, conf)
 if uid<>"" then
  MsgBox "The unique id of the file is " & uid
 else
  Msgbox "no file found for specified configuration"
 end if
End Sub