DBWCheckForConversion

<< Click to Display Table of Contents >>

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

DBWCheckForConversion

Description

Returns TRUE if the SolidWorks file assigned as filename is of an older file format than the current ones created by SolidWorks.

Syntax

Function DBWCheckForConversion(file_name)

Parameter

file_name

The file name to check the version of

Return values

The function assumes value of true if the checked file is older than others just created.

Example

Dim swApp
Sub main()
 Set swApp = CreateObject("SldWors.Application")
 DBWInit(TRUE)
 if DBWCheckForConversion("f:\archive\handlebar\handle|bar|complete.sldasm") then
  MsgBox "The file must be converted!"
 end if
End Sub