Solid Edge Framework Type Library
GetItemIDAndRevisionPatterns Method
Specify the item-type of the item.
This parameter will provide user with a list of ItemIDPatterns which user can use further to create pattern specific ItemID.
This parameter will provide user with a list of RevisionPatterns which user can use further to create patterns specific RevisionID.
Description
This API will help user to get the ItemIDPatterns and RevisionPatterns if any for a particular ItemType.
Syntax
Visual Basic
Public Sub GetItemIDAndRevisionPatterns( _
   ByVal bstrItemType As String, _
   ByRef pvarItemIDPattern As Variant, _
   ByRef pvarRevisionPattern As Variant _
) 
Parameters
bstrItemType
Specify the item-type of the item.
pvarItemIDPattern
This parameter will provide user with a list of ItemIDPatterns which user can use further to create pattern specific ItemID.
pvarRevisionPattern
This parameter will provide user with a list of RevisionPatterns which user can use further to create patterns specific RevisionID.
Example
Imports System.Runtime.InteropServices

Public Class Form1

    Private Sub GetItemIDAndRevisionPatterns_Click(sender As Object, e As EventArgs) Handles GetItemIDAndRevisionPatterns.Click
        Dim objSEApplication As SolidEdgeFramework.Application = Nothing
        Dim objTCE As SolidEdgeFramework.SolidEdgeTCE = Nothing
        Dim majorVersion As Object = Nothing
        Dim completeVersion As Object = Nothing
        Dim UserName As String
        Dim Password As String
        Dim Group As String
        Dim Role As String
        Dim URL As String
        Dim bTeamCenterMode As Boolean
        Dim ItemType As String = "NR9TwoRule"
        Dim ListOfItemIDPattern As Object = Nothing
        Dim ListOfRevisionPattern As Object = Nothing

        Try
            objSEApplication = Marshal.GetActiveObject("SolidEdge.Application")
            objSEApplication.DisplayAlerts = False

            objTCE = objSEApplication.SolidEdgeTCE
            Call objTCE.GetTeamCenterMode(bTeamCenterMode)
            If bTeamCenterMode = False Then
                objTCE.SetTeamCenterMode(True)
            End If
            'Specify Server Credentials
            UserName = "abc"
            Password = "abc"
            Group = ""
            Role = ""
            URL = "http://Servername:8085/tc"

            Call objTCE.ValidateLogin(UserName, Password, Group, Role, URL)

            objTCE.GetItemIDAndRevisionPatterns(ItemType, ListOfItemIDPattern, ListOfRevisionPattern)

            MsgBox("Done")

        Catch ex As Exception
            MsgBox(ex.ToString)
            Clipboard.SetText(ex.ToString)
        End Try
    End Sub
End Class
See Also

SolidEdgeTCE Object  | SolidEdgeTCE Members