DBWGetCADVersion

<< Click to Display Table of Contents >>

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

DBWGetCADVersion

Description

Returns the name of the used CAD, its major version and the installed service pack.

Syntax

Function DBWGetCADVersion(ByRef majorByRef sp)

Return Values

The function assumes, as value, the name of the CAD application

major

the major version of the CAD application

sp

the mounted sp number of the CAD application

Some examples:

CAD app

major

sp

SolidWorks

2012
2013
...

5
2
...

Inventor

16 (i.e.2012)
17 (i.e. 2013)
...

2
1
...

SolidEdge

104 (i.e.ST4)
105 (i.e. ST5)
...

2
0
...

See also

DBWGetDBWorksBuild function

Example

cad_name = DBWGetCADVersion(major, sp)
msgbox "CAD application: " & cad_name & vbcrlf & "major version: " & major & vbcrlf & "service pack: " & sp