Click or drag to resize

SldWorksCommonExIsVersionNewerOrEqual Method

Checks if the version of the SOLIDWORKS is newer or equal to the specified parameters

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 bool IsVersionNewerOrEqual(
	this ISldWorks app,
	SwVersion_e version,
	Nullable<int> servicePack = null,
	Nullable<int> servicePackRev = null
)

Parameters

app
Type: ISldWorks
Current SOLIDWORKS application
version
Type: CodeStack.SwEx.Common.EnumsSwVersion_e
Target minimum supported version of SOLIDWORKS
servicePack (Optional)
Type: SystemNullableInt32
Target minimum service pack version or null to ignore
servicePackRev (Optional)
Type: SystemNullableInt32
Target minimum revision of service pack version or null to ignore

Return Value

Type: Boolean
True of version of the SOLIDWORKS is the same or newer

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