Option Explicit
Sub Example()
Dim objApplication As SolidEdgeFramework.Application
Dim objTCE As SolidEdgeFramework.SolidEdgeTCE
Dim sItemType As String
Dim bSmartCodesConfigured As Boolean
Set objApplication = GetObject(, "SolidEdge.Application")
Set objTCE = objApplication.SolidEdgeTCE
sItemType = "Item"
bSmartCodesConfigured = False
Call objTCE.IsItemTypeSmartCodesConfigured(sItemType, bSmartCodesConfigured)
If Not objApplication Is Nothing Then
Call objApplication.Quit
End If
Set objTCE = Nothing
Set objApplication = Nothing
End Sub