Files
Code
Module: mMain
'Demonstrates how to obtain the major and minor version of SolidWorks and _
format the values in a familiar way (e.g., "SolidWorks 2014 SP5").
'Precondition: SolidWorks is open.
'Written by Keith Rice
'CADSharp LLC
'www.cadsharp.com
Sub main()
Dim swApp As SldWorks.SldWorks
Set swApp = Application.SldWorks
vsplit = Split(swApp.RevisionNumber, ".")
swApp.SendMsgToUser "SolidWorks " & CStr(1992 + vsplit(0)) & " SP" & vsplit(1) & "." & vsplit(2)
End Sub