| SldWorksCommonExGetVersion Method (ISldWorks, Int32, Int32) |
Returns the major version of SOLIDWORKS application
Namespace:
SolidWorks.Interop.sldworks
Assembly:
CodeStack.SwEx.Common (in CodeStack.SwEx.Common.dll) Version: 0.9.9.0 (0.9.9.0)
Syntax public static SwVersion_e GetVersion(
this ISldWorks app,
out int servicePack,
out int servicePackRev
)
<ExtensionAttribute>
Public Shared Function GetVersion (
app As ISldWorks,
<OutAttribute> ByRef servicePack As Integer,
<OutAttribute> ByRef servicePackRev As Integer
) As SwVersion_e
Parameters
- app
- Type: ISldWorks
Pointer to application to return version from - servicePack
- Type: SystemInt32
Version of Service Pack - servicePackRev
- Type: SystemInt32
Revision of Service Pack
Return Value
Type:
SwVersion_eMajor version of the application
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
ISldWorks. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also