ExportToFile [Fields Calculator]

Evaluates the top stack element at a set of points specified in an external file and exports the data to a file.

Note: Regarding to legacy ExportToFile script which only has “IncludePtInOutput” argument (the last Boolean one), AEDT can still read it and assign other new arguments as default values. Those default values are RefCSName = “global”, PtInSI = “True”, FieldInRefCS = “False”
UI Access Click Export, and then click To File.
Parameters
Name Type Description
<ReportName> String Name of report to be exported.

<FileName>

 

 

 

 

<solution>

<freq>

<phase>

<Export Options>

String

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

Solution Name

frequency

phase

Whether to include points in output, RefCSName, Pts in SI units <boolean>, Field in RefCS, <boolean>.

Return Value None.

 

Python Syntax ExportToFile(<ReportName>, <FileName>, <solution>, ["Freq:=", <freq>, "Phase:=", "<phase>], <ExportOptions>)
Python Example

oModule.ExportToFile("C:\\offset_file_model_unit_ref.fld", "C:\\offset_SI.pts",

"4500MHz : LastAdaptive",

[

"Freq:=" , "4.5GHz",

"Phase:=" , "0deg"

],

[

"NAME:ExportOption",

"IncludePtInOutput:=" , True,

"RefCSName:=" , "offset",

"PtInSI:=" , False,

"FieldInRefCS:=" , True

])