You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
export_field_file() in pyaedt/modules/PostProcessor.py asks for an optional argument export_with_sample_points, set to True by default. Under the hood, it calls ofieldsreporter.ExportToFile(), and passes export_with_sample_points as the fifth argument.
Recent versions of AEDT have additional options while exporting field, e.g. selecting which coordinate system to use. According to HFSS scripting guide, this can be set by passing a list to the fifth argument, instead of the legacy Boolean option. Example from the HFSS scripting guide (section 20-28, under ExportToFile [Fields Calculator]:
The Scripting Guide also has the following note, which explains why the current pyaedt implementation works:
Regarding the 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
Current workaround:
Since export_field_file() directly passes export_with_sample_points to ofieldsreporter.ExportToFile() without any modification, user should be able to pass a list instead of a Boolean, and get desired results. eg:
Suggested enhancement
Going forward, it'll be nice to have additional arguments available to export_field_file() for each export option. According to HFSS scripting guide, the available options are:
Whether to include points in output (Boolean), RefCSName (String), Pts in SI units (Boolean), Field in RefCS (Boolean).
Steps for implementing the feature
No response
Useful links and references
No response
The text was updated successfully, but these errors were encountered:
Description of the feature
export_field_file()
in pyaedt/modules/PostProcessor.py asks for an optional argumentexport_with_sample_points
, set toTrue
by default. Under the hood, it callsofieldsreporter.ExportToFile()
, and passesexport_with_sample_points
as the fifth argument.Recent versions of AEDT have additional options while exporting field, e.g. selecting which coordinate system to use. According to HFSS scripting guide, this can be set by passing a list to the fifth argument, instead of the legacy Boolean option. Example from the HFSS scripting guide (section 20-28, under ExportToFile [Fields Calculator]:
The Scripting Guide also has the following note, which explains why the current pyaedt implementation works:
Current workaround:
Since
export_field_file()
directly passesexport_with_sample_points
toofieldsreporter.ExportToFile()
without any modification, user should be able to pass a list instead of a Boolean, and get desired results. eg:Suggested enhancement
Going forward, it'll be nice to have additional arguments available to
export_field_file()
for each export option. According to HFSS scripting guide, the available options are:Steps for implementing the feature
No response
Useful links and references
No response
The text was updated successfully, but these errors were encountered: