Solid Edge How to create Item ID and its revision in TC and SE application?

2021-10-06T23:59:00Z
PART/SHEETMETAL

Summary


Details

How to create Item ID and its revision in TC and SE application?

Solution

This is done by AssignItemID() API from Solid Edge, the sample code looks like,

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

Hardware/Software Configuration

Platform: AMD64
OS: windows
OS Version: 1064
Product: SOLID_EDGE
Application: AUTOMATION
Version: V221.0
Function: API_DOCUMENT

Ref: 002-8565093

KB Article ID# PL8565093

Contents

SummaryDetails

Associated Components

PART/SHEETMETAL: FEATURES