GetSolutionDataPerVariation

Obtains solution data for a given report type and solution. You must have already run a simulation.

UI Access N/A
Parameters
Name Type Description
<reportTypeArg> String Report type name as input parameter.
<solutionNameArg> String Solution name as input parameter.
<simValueCtxtArg> Structured Array Same as ContextArray values created in the relevant CreateReport script.
<familiesArg> Array of Strings Same as FamiliesArray values created in the relevant CreateReport script.
<expressionArg> String or Array of Strings Text string or array of text strings; valid expression, may validate it as the data-table Y-component.
Return Value

ARRAY of ISolutionDataResultComInterface objects, containing:

Note:
  • This command is not recordable from the UI, but its parameters are similar to CreateReport, so you may record a CreateReport script to get the parameter values.
  • For the returned ISolutionDataResultComInterface object, some of its functions have an optional boolean parameter: SIValue. SIValue defaults to True. When the pass in value is True, return data values will be in Standard International values; when False, return data values will be in the current units.

    Example: Freq Sweep with [1GHz, 2GHz,3GHz], GetSweepUnits(“Freq”) return “GHz”; GetSweepValues(“Freq”, True) return [1000000,2000000,3000000]; GetSweepValues(“Freq”, False) return [1,2,3].

Python Syntax GetSolutionDataPerVariation(reportTypeArg, solutionNameArg, simValueCtxtArg, familiesArg, expressionArg)
Python Example

oModule = oDesign.GetModule("ReportSetup")

arr = oModule.GetSolutionDataPerVariation('Modal Solution Data', 'Setup1 : Sweep', ['Domain:=', 'Sweep'], ['Freq:=', ['All'], 'offset:=', ['All']], ['S(Port1,Port1)', 'dB(S(Port1,Port3))'])

 

VB Syntax GetSolutionDataPerVariation(reportTypeArg, solutionNameArg, simValueCtxtArg, familiesArg, expressionArg)
VB Example

set solutionData = oModule.GetSolutionDataPerVariation(

"Modal Solution Data",

"Setup1 : Sweep",

Array("Domain:=", "Sweep"),

Array("Freq:=", Array("All"), "offset:=", Array("All")),

Array("S(Port1,Port1)", "dB(S(Port1,Port3))")

)