Hello everyone,
I am having trouble with my macro which should call CATScript. Can anyone help?
I am getting error on line "catScriptLibraryTypeDirectory"
Thank you for any help.
I am having trouble with my macro which should call CATScript. Can anyone help?
I am getting error on line "catScriptLibraryTypeDirectory"
Code:
Private Sub CB_format_BOM_Click()
Dim param()
Dim oFilePath, oFileName, oM As String
oFilePath = sMainFolder & "\FORMAT BOM\"
oFileName = "04_V5R28_BOM_creator-Format_table.CATScript"
oM = "04_V5R28_BOM_creator-Format_table.CATScript"
CATIA.SystemService.ExecuteScript(oFilePath & oFileName, catScriptLibraryTypeDirectory, oM, "CATMain", param)
Exit Sub
End Sub
Thank you for any help.