CreateReport

Creates a new report with a single trace and adds it to the Results branch in the project tree.

UI Access Right-click on Results > Create [Type] Report
Parameters
Name Type Description
<ReportName> String Name of report.
<ReportType> String Type of report.

Possible values are:

"Modal S Parameters" - Only for Driven Modal solution-type problems with ports.

"Terminal S Parameters" - Only for Driven Terminal solution-type problems with ports.

"Eigenmode Parameters" - Only for Eigenmode solution-type problems.

"Fields"

"Far Fields" - Only for problems with radiation or PML boundaries.

"Near Fields" - Only for problems with radiation or PML boundaries.

"Emission Test"

<DisplayType> String Type of display.

If ReportType is "Modal S Parameters", "Terminal S Parameters", or "Eigenmode Parameters", then set to one of the following:

"Rectangular Plot", "Polar Plot", "Radiation Pattern", "Smith Chart", "Data Table", "3D Rectangular Plot", "3D Rectangular Bar Plot", "Rectangular Stacked Plot" or "3D Polar Plot".

If <ReportType> is "Fields", then set to one of the following:

"Rectangular Plot", "Polar Plot", "Radiation Pattern", "Rectangular Contour Plot", "Data Table", "3D Rectangular Plot", "Rectangular Stacked Plot" or "3D Rectangular Bar Plot".

If <ReportType> is "Far Fields" or "Near Fields", then set to one of the following:

"Rectangular Plot", "Radiation Pattern", "Rectangular Contour Plot", "Data Table", "3D Rectangular Plot", "3D Rectangular Bar Plot" "Rectangular Stacked Plot" or "3D Polar Plot"  

If <ReportType> is "Emission Test", then set to one of the following:

"Rectangular Plot" or "Data Table"

<SolutionName> String Name of the solution as listed in the Modify Report dialog box.

<ContextArray>

Array

Context for which the expression is being evaluated. This can be an empty string if there is no context.

Array("Domain:=", <DomainType>)

<DomainType> ex. "Sweep" or "Time"

Array("Context:=", <GeometryType>)

<GeometryType>

ex. "Infinite Spheren", "Spheren", "Polylinen"

<FamiliesArray>

Array

Contains sweep definitions for the report.

Array("<VariableName>:= ", <ValueArray>)

<ValueArray>

Array("All") or Array("Value1", "Value2", ..."Valuen")

examples of <VariableName> "Freq", "Theta", "Distance"

<ReportDataArray>

Array

This array contains the report quantity and X, Y, and (Z) axis definitions.

Array("X Component:=", <VariableName>, "Y Component:=", <VariableName> | <ReportQuantityArray>)

<ReportQuantityArray>

ex. Array("dB(S(Port1, Port1))")

Return Value None.

 

Python Syntax

CreateReport(<ReportName>, <ReportType>, <DisplayType>,

<SolutionName>, <ContextArray>, <FamiliesArray>,

<ReportDataArray>, <ExtendedInfo>)

Python Example

Three examples are given below: (nominal, Optimetrics, spectral)

Nominal Example:

oModule.CreateReport( "XY Plot 2", "Standard", "Rectangular Plot", "TR", [ "NAME:Context", "SimValueContext:=", [], 1, 0, 2, 0, false, false, -1, 1, 0, 1, 1, "", 0, 0] ], [ "Time:=" , ["All"], "aaa:=" , ["Nominal"] ], [ "X Component:=", "Time", "Y Component:=", ["E1.I"] ], [])

Optimetrics Example:

oModule.CreateReport ("XY Plot 3", "Standard", "Rectangular Plot", "TR", [ "NAME:Context", "OptiSetup:=", "ParametricSetup1", "SimValueContext:=", [ 1, 0, 2, 0, false, false, 0, 1,0, 1, 1, "", 0, 0 ] ], [ "Time:=", ["All"], "aaa:=", ["Nominal"] ], [ "X Component:=" , "Time", "Y Component:=" , ["E1.I"] ], [])

Spectral Example:

oModule.CreateReport ("XY Plot 4", "Standard", "Rectangular Plot", "TR", [ "NAME:Context", "SimValueContext:=", [ 2, 0, 2, 0, false, false, -1, 1, 0, 1, 1, "", 0, 0, "CG", false, "0", "KP",false, "0", "MH", false, "100", "TE", false, "40ms", "TH", false, "40", "TS", false, "0ns", "UF", false, "0", "WT", false, "0", "WW", false, "100" ] ], [ "Spectrum:=" , ["All"], "aaa:=", ["Nominal"] ], [ "X Component:=","Spectrum", "Y Component:=", ["mag(E1.I)"] ], [])

Partial Discharge Example

oModule.CreateReport("Partial Discharge Plot 2", "Partial Discharge", "Rectangular Plot", "PartialDischarge1 : PartialDischarge", [], [ "GasPressure:=", ["All"], "Freq:=" , ["All"], "bend_angle:=" , ["All"] ], [ "X Component:=", "GasPressure", "Y Component:=", ["Power"] ])

Example 3D Rectangular Bar Plot with Change Bar properties

oModule = oDesign.GetModule("ReportSetup") oModule.CreateReport("S Parameter Plot 4", "Modal Solution Data", "3D Rectangular Bar Plot", "Setup1 : Sweep", [], [ "Freq:=" , ["All"], "UU:=" , ["All"], "ZZZ:=" , ["Nominal"] ], [ "X Component:=", "Freq", "Y Component:=", "UU", "Z Component:=", ["dB(S(wDipole1_1_p1,wDipole1_1_p1))"] ]) oModule.ChangeProperty( [ "NAME:AllTabs", [ "NAME:Bar", [ "NAME:PropServers" "S Parameter Plot 4:Traces-dB(S(wDipole1_1_p1,wDipole1_1_p1))" ], [ "NAME:ChangedProps", [ "NAME:Transparency", "Value:=", "0.5" ] ] ] ]) oModule.ChangeProperty( [ "NAME:AllTabs", [ "NAME:Bar", [ "NAME:PropServers", "S Parameter Plot 4:Traces-dB(S(wDipole1_1_p1,wDipole1_1_p1))" ], [ "NAME:ChangedProps", [ "NAME:Filled", "Value:=", False ] ] ] ]) oModule.ChangeProperty( [ "NAME:AllTabs", [ "NAME:Bar", [ "NAME:PropServers", "S Parameter Plot 4:Traces-dB(S(wDipole1_1_p1,wDipole1_1_p1))" ], [ "NAME:ChangedProps", [ "NAME:Filled", "Value:=", True ] ] ] oModule.ChangeProperty( [ "NAME:AllTabs", [ "NAME:Bar", [ "NAME:PropServers", "S Parameter Plot 4:Traces-dB(S(wDipole1_1_p1,wDipole1_1_p1))" ], [ "NAME:ChangedProps", [ "NAME:Show Outline", "Value:=", True ] ] ] ]) oModule.ChangeProperty( [ "NAME:AllTabs", [ "NAME:Bar", [ "NAME:PropServers", "S Parameter Plot 4:Traces-dB(S(wDipole1_1_p1,wDipole1_1_p1))" ], [ "NAME:ChangedProps", [ "NAME:Outline Color", "R:=", 0, "G:=", 0, "B:=", 160 ] ] ] ]) oModule.ChangeProperty( [ "NAME:AllTabs", [ "NAME:Bar", [ "NAME:PropServers", "S Parameter Plot 4:Traces-dB(S(wDipole1_1_p1,wDipole1_1_p1))" ], [ "NAME:ChangedProps", [ "NAME:Outline Width", "Value:=", "2" ] ] ] ]) oModule.ChangeProperty( [ "NAME:AllTabs", [ "NAME:Bar", [ "NAME:PropServers", "S Parameter Plot 4:Traces-dB(S(wDipole1_1_p1,wDipole1_1_p1))" ], [ "NAME:ChangedProps", [ "NAME:Bar Width", "Value:=", "Narrow" ] ] ] ]) oModule.ChangeProperty( [ "NAME:AllTabs", [ "NAME:Bar", [ "NAME:PropServers", "S Parameter Plot 4:Traces-dB(S(wDipole1_1_p1,wDipole1_1_p1))" ], [ "NAME:ChangedProps", [ "NAME:Bar Width", "Value:=", "Wide" ] ] ] ]) oModule.ChangeProperty( [ "NAME:AllTabs", [ "NAME:Bar", [ "NAME:PropServers", "S Parameter Plot 4:Traces-dB(S(wDipole1_1_p1,wDipole1_1_p1))" ], [ "NAME:ChangedProps", [ "NAME:Bar Infinity", "Value:=", True ] ] ] ])

 

VB Syntax

CreateReport <ReportName>, <ReportType>, <DisplayType>,

<SolutionName>, <ContextArray>, <FamiliesArray>,

<ReportDataArray>, <ExtendedInfo

VB Example

oModule.CreateReport "3D Cartesian Plot1", "Far Fields",_ "3D Cartesian Plot", "Setup1 : LastAdaptive", _ Array("Context:=", "Infinite Sphere1", "Domain:=", "Sweep"), _ Array("Theta:=", Array("All"), "Phi:=", Array("All"), _ "Freq:=", Array("10GHz")), _ Array("X Component:=", "Theta", _ "Y Component:=", "Phi", _ "Z Component:=", Array("rETotal")), _ Array() oModule.CreateReport "ReptSmithFreq",_ "Modal Solution Data", "Smith Plot", "Setup1 : Sweep1", _ Array("Domain:=", "Sweep"), _ Array("Freq:=", Array("All")), _ Array("Polar Component:=", _ Array("ln(Y(LumpPort1,LumpPort1))")), _ Array() oModule.CreateReport "Rectangular Contour Plot 2", "Far Fields", _ "Rectangular Contour Plot", "Setup1 : LastAdaptive", Array("Context:=", _ "Infinite Sphere1"), Array("_u:=", Array("All"), "_v:=", Array("All"), "Freq:=", Array( _ "5GHz")), Array("X Component:=", "_u", "Y Component:=", "_v", "Z Component:=", Array( _ "rETotal")), Array() oModule.CreateReport "Rept2DRectFreq",_ "Modal Solution Data", "XY Plot", _ "Setup1 : Sweep1", _ Array("Domain:=", "Sweep"), _ Array("Freq:=", Array("All")), _ Array("X Component:=", "Freq", _ "Y Component:=", _ Array("dB(S(LumpPort1,LumpPort1))")), _ Array()