ExportToFile

Note:

The ExportToFile script command has replaced the script command ExportReport. ExportReport remains in order to retain backward compatibility for existing scripts, but it is strongly recommended that you now use ExportToFile.

From a data table or plot, generates text format, comma delimited, tab delimited, or .dat type output files.

UI Access Right-click on report name in the project tree and select Export Data.
Parameters
Name Type Description
<ReportName> String Name of report to be exported.

<FileName>

 

 

 

 

 

<UnitSpec>

<UseTraceNumberFormat>

String

 

 

 

 

 

String

Boolean

Full path of the exported image file name; with extension of

.txt - Post processor format file

.csv - Comma-delimited data file

.tab - Tab-separated file

.dat - Ansys plot data file

 

For example, “kV, Mhz, yd”

"True", "False"

Return Value None.

 

Python Syntax ExportToFile(<ReportName>, <FileName>)
Python Example

oModule.ExportToFile("rETotal", "C:/Users/Documents/rETotal.csv")

oModule.ExportToFile("S Parameter Table 1", "D:/Users/Documents/cftt.csv", False, " kV, MHz, yd ", True)