Hi, first off I'm new to vbscripting, though I've used LiSP and VB.Net in AutoCAD. I'm trying to write a script for Ansoft Ansys Electronic Desktop. I have:
Dim oAnsoftApp
Dim oDesktop
Dim oProject
Dim oDesign
Dim oEditor
Dim oModule
'Set oAnsoftApp = CreateObject("Ansoft.ElectronicsDesktop")
Set oAnsoftApp = CreateObject("AnsoftHfss.HfssScriptInterface")
Set oDesktop = oAnsoftApp.GetAppDesktop()
oDesktop.RestoreWindow
Set oProject = oDesktop.SetActiveProject("O_PCIE0_TX_0_3_NP")
Set oDesign = oProject.SetActiveDesign("Westlake_MCM160311a_cutout")
Set oModule = oDesign.GetModule("Excitations")
exciteArray = oModule.GetExcitations()
It's at the last line that it crashes.
The error message reads:
Description: Object doesn't support this property or method: "GetExcitations"
Cause Microsoft VBScript runtime error
If anyone can help me make this work, please let me know.
Thanks,
Mark