create_report#

SetupCircuit.create_report(expressions: str | list = None, domain: str = 'Sweep', variations: dict = None, primary_sweep_variable: str = None, secondary_sweep_variable: str = None, report_category: str = None, plot_type: str = 'Rectangular Plot', context: str | dict = None, subdesign_id: int = None, polyline_points: int = 1001, name: str = None, matplotlib: bool = False, show: bool = True, hide_legend: bool = False, snapshot_path: str = None, width: int = 800, height: int = 450) Standard#

Create a report in AEDT. It can be a 2D plot, 3D plot, polar plots or data tables.

Parameters:
expressionsstr or list, optional

One or more formulas to add to the report. Example is value = "dB(S(1,1))".

domainstr, optional

Plot Domain. Options are “Sweep”, “Time”, “DCIR”.

variationsdict, optional

Dictionary of all families including the primary sweep. The default is {"Freq": ["All"]}.

primary_sweep_variablestr, optional

Name of the primary sweep. The default is "Freq".

secondary_sweep_variablestr, optional

Name of the secondary sweep variable in 3D Plots.

report_categorystr, optional

Category of the Report to be created. If None default data Report will be used. The Report Category can be one of the types available for creating a report depend on the simulation setup. For example for a Far Field Plot in HFSS the UI shows the report category as “Create Far Fields Report”. The report category will be in this case “Far Fields”. Depending on the setup different categories are available. If None default category will be used (the first item in the Results drop down menu in AEDT).

plot_typestr, optional

The format of Data Visualization. Default is Rectangular Plot.

contextstr, optional

The default is None. It can be None, “Differential Pairs”,`”RL”, `”Sources”, “Vias”,`”Bondwires”, `”Probes” for Hfss3dLayout or Reduce Matrix Name for Q2d/Q3d solution or Infinite Sphere name for Far Fields Plot.

namestr, optional

Name of the plot. The default is None.

polyline_pointsint, optional,

Number of points for creating the report for plots on polylines.

subdesign_idint, optional

Specify a subdesign ID to export a Touchstone file of this subdesign. Valid for Circuit Only. The default value is None.

contextstr, optional
matplotlibbool, optional

Whether to use AEDT or ReportPlotter to generate the plot. Eye diagrams are not supported.

showbool, optional

Whether to show the plot when using ReportPlotter. The default is True. If matplotlib is False, this parameter is ignored.

hide_legendbool, optional

Whether to hide the legend when using AEDT reporter. The default is False.

snapshot_pathstr, optional

Full path to image file if a snapshot is needed. The default is None.

widthint, optional

Snapshot image width. Default is 800 which takes Desktop size or 800 pixel.

heightint, optional

Snapshot image height. Default is 450 which takes Desktop size or 450 pixel.

Returns:
ansys.aedt.core.visualization.report.standard.Standard

True when successful, False when failed.

References

>>> oModule.CreateReport