|
<< Click to Display Table of Contents >> Navigation: Programming Mechworks PDM > DBWCommandShell > Library Reference > Revision > DBWCheckSavedConfiguration |
Queries the DBWorks datasource for the existance of a specific file in configuration.
Function DBWCheckSavedConfiguration(FileDir, FileName, Configuration)
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 |
The function assumes value of the document unique id, empty string otherwise.
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