HFSS Scripting Error ('GetDataExpressions()') method is not working

I am facing errors when using some of the methods provided in "Reporter Editor Script Commands" Module. I have attached the script that I tried to execute which causes the execution errors.

oProject = oDesktop.GetActiveProject()
oDesign = oProject.GetActiveDesign()
oDesign = oProject.SetActiveDesign(oDesign.GetName())
oModule = oDesign.GetModule('ReportSetup') 
expressions = oModule.GetDataExpressions()

"MissingMemberException: 'IDispatch' object has no attribute 'GetDataExpressions'"

The same issue is happening with most of the methods provided in this module. I have listed a few of them as follows:

GetSweepValues, GetDataUnits, GetDesignVariableNames, GetSolutionDataPerVariation

If anyone how to use these methods properly in order to get the plot data without exporting it into a file, please respond to this question.


Sign In or Register to comment.