Private Sub Command1_Click()
On Error Resume Next
Dim objApplication As SolidEdgeFramework.Application
Dim objSolidEdgeInsightXT As SolidEdgeFramework.SolidEdgeInsightXT
Set objApplication = GetObject(, "SolidEdge.Application")
Set objSolidEdgeInsightXT = objApplication.SolidEdgeInsightXT
Dim sItemType As String
Dim bSmartCodesConfigured As Boolean
sItemType = "Item"
bSmartCodesConfigured = False
Call objSolidEdgeInsightXT.IsItemTypeSmartCodesConfigured(sItemType, bSmartCodesConfigured)
Set objSolidEdgeInsightXT = Nothing
Set objApplication = Nothing
End Sub