Hi,
I am performing a sweep of parameters and obtaining the results. By clicking on the "Result Navigator," the results get updated. I have used VBA code with the Result1DComplex object to retrieve my S parameters values, which works excellently without any issues.
S11File=Resulttree.GetFileFromTreeItem("1D Results\\S-Parameters\\S1,1")
Set S11 = Result1DComplex(S11File)However, when I need to update my S parameters value based on the sweep parameter, the Result1DComplex object only shows me the last entity that was calculated.
Here is the code I used:
Dim selection As String
selection = Join(Array(5))
ResultNavigatorRequest("set selection", selection)
ResultNavigatorRequest("get selection", selection)
This code successfully selects the fifth item in the Result Navigator, and I can see the s-parameters chart being updated. However, the Result1DComplex object still sends me the last entity, not the correct one I selected with the ResultNavigatorRequest function.
I would be thankful if you could let me know how to correctly obtain the selected-index value of the Result Navigator using the Result1DComplex object with VBA in CST.
