As the title says, I am trying to launch a VSTA project in 3Dx from a VBScript using the PLMScriptService.ExecuteScriptV6 API but I haven't had any success. I have looked at the help docs and searched online but I have only found examples for launching CATScript or VBA, nothing for a VSTA project. VSTA is definitely supported because the iType enumeration has a value for it (see below). I suspect my issue might be the iProgramName argument but I'm not sure what to pass for VSTA (I have tried passing the Assembly, the ThisApplication class, a new public module name, etc but nothing works)
Has anyone successfully used this? If so, please share how you did it or maybe a code snippet.
Function ExecuteScriptV6(iPLMEntity As PLMEntity, iType As CatScriptLibraryType, iProgramName As String, iFunctionName As String, iParameters() As Variant)
Const catScriptLibraryTypeDirectory = 1
Const catScriptLibraryTypeDocument = 0
Const catScriptLibraryTypeVBAProject = 2
Const catScriptLibraryTypeVSTAProject = 3