Hello All
I'm trying to use below code to run CATVBS code from VBA. It throws an error that "Function or interface marked as restricted or function uses an automation type is not supported in VB"
☺- catScriptLibraryTypeDirectory is correct for catvbs????? or
do i need some settings to be changed.
regards
I'm trying to use below code to run CATVBS code from VBA. It throws an error that "Function or interface marked as restricted or function uses an automation type is not supported in VB"
Code:
Sub CATMain()
Dim EmptyPar()
Dim ScPath
Path = "C:\tmp"
CATIA.SystemService.ExecuteScript Path, catScriptLibraryTypeDirectory, "macro1.catvbs", "CATMain", EmptyPar
End Sub
☺- catScriptLibraryTypeDirectory is correct for catvbs????? or
do i need some settings to be changed.
regards