export_report_to_file#

PostProcessor.export_report_to_file(output_dir, plot_name, extension, unique_file=False)[source]#

Export a 2D Plot data to a file.

This method leaves the data in the plot (as data) as a reference for the Plot after the loops.

Parameters:
output_dirstr

Path to the directory of exported report

plot_namestr

Name of the plot to export.

extensionstr
Extension of export , one of
  • (CSV) .csv

  • (Tab delimited) .tab

  • (Post processor format) .txt

  • (Ensight XY data) .exy

  • (Anosft Plot Data) .dat

  • (Ansoft Report Data Files) .rdat

unique_filebool

If set to True, generates unique file in output_dit

Returns:
str

Path of exported file.

References

>>> oModule.ExportReportDataToFile
>>> oModule.ExportToFile

Examples

>>> from pyaedt import Circuit
>>> cir = Circuit("my_project.aedt")
>>> report = cir.post.create_report("MyScattering")
>>> cir.post.export_report_to_file("C:\temp", "MyTestScattering", ".csv")