import_table#

Hfss3dLayout.import_table(input_file: str, link: bool | None = False, header_rows: int | None = 0, rows_to_read: int | None = -1, column_separator: str | None = 'Space', data_type: str | None = 'real', sweep_columns: int | None = 0, total_columns: int | None = -1, real_columns: int | None = 1) bool | str#

Import a data table as a solution.

Parameters:
input_filestr

Full path to the file.

linkbool, optional

Whether to link the file to the solution. The default is False.

header_rowsint, optional

Header rows. The default is 0.

rows_to_readint, optional

Rows to read. If -1, then reads until end of file. The default is -1.

column_separatorstr, optional

Column separator type. Available options are Space, Tab, Comma, and Period. The default is Space.

data_typestr, optional

Data type. Available options are real, real_imag, mag_ang_deg, and mag_ang_rad. The default is real.

sweep_columnsint, optional

Sweep columns. The default is 0.

total_columnsint, optional

Total number of columns. If -1, then reads the total number of columns. The default is -1.

real_columnsint, optional

Number of lefmotst real columns. The default is 1.

Returns:
str

True when successful, False when failed.

References

>>> oModule.ImportData

Examples

>>> from ansys.aedt.core import Hfss3dlayout
>>> h3d = Hfss3dlayout()
>>> h3d.import_table(input_file="my_file.csv")