Solid Edge Framework Type Library > SolidEdgeTCE Object : AssignItemID Method |
Returns the newly created Item Type.
Visual Basic |
---|
Public Sub AssignItemID( _ ByVal bstrItemType As String, _ ByRef bstrItemId As String, _ ByRef bstrItemRev As String _ ) |
Returns the newly created Item Type.
Option Explicit Sub Example() Dim objApplication As SolidEdgeFramework.Application Dim objTCE As SolidEdgeFramework.SolidEdgeTCE Dim FileItemType As String Dim FileItemRevID As String Dim FileItemItem As String Set objApplication = GetObject(, "SolidEdge.Application") Set objTCE = objApplication.SolidEdgeTCE 'Initialise the variables FileItemType = "" FileItemItemID = "" FileItemRev = "" Call objTCE.AssignItemID(FileItemType, FileItemItemID, FileItemRevID) If Not objApplication Is Nothing Then Call objApplication.Quit End If Set objTCE = Nothing Set objApplication = Nothing End Sub