Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Script Issue, Command for Ansoft HFSS

$
0
0

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



Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>