Solid Edge Framework Type Library
PerformGageDataValidation Method
Complete path of Gage excel file.
Name of Gage table.
Gage to be validated as string.
Description
This method is used to validate a Gage for data integrity.
Syntax
Visual Basic
Public Function PerformGageDataValidation( _
   ByVal strExcelFile As String, _
   ByVal strGageTable As String, _
   ByVal strGage As String _
) As Boolean
Parameters
strExcelFile
Complete path of Gage excel file.
strGageTable
Name of Gage table.
strGage
Gage to be validated as string.
Remarks
All Gage validations that are done from the UI are performed using this method.
Example
Private Sub PerformGageDataValidation_Click(sender As Object, e As EventArgs) Handles PerformGageDataValidation.Click
    Dim objApplication As SolidEdgeFramework.Application = Nothing
    Dim objSMDoc As SolidEdgePart.SheetMetalDocument = Nothing
    Dim myMatTable As SolidEdgeFramework.MatTable = Nothing
    Dim bIsValidgage As Boolean = False
    Dim strValidgageTabel As String = "aluminium 6061"
    Dim strValidateThisgage As String = "10 Gage AL"
    Dim strGageFileName As String = ""

    Try

        objApplication = Marshal.GetActiveObject("SolidEdge.Application")
        ' Get the material table object from the application
        myMatTable = objApplication.GetMaterialTable()

        objSMDoc = objApplication.ActiveDocument
        If (objSMDoc Is Nothing) Then
            MsgBox("Failed to get Sheet Metal Document object.")
        End If
        bIsValidgage = myMatTable.PerformGageDataValidation(strGageFileName, strValidgageTabel, strValidateThisgage)
        If (bIsValidgage) Then
            MsgBox("The gage " + strValidateThisgage + "is Valid")
        Else
            MsgBox("The gage " + strValidateThisgage + "is Invalid")
        End If
    Catch ex As Exception
        MsgBox(ex.ToString)
    End Try
End Sub
See Also

MatTable Object  | MatTable Members  | Solid Edge ST5 - What's New