Skip to main content

Mechanical scripting interface

FixedWidthImportSettings

Last update: 14.01.2025

class Ansys.Mechanical.Table.FixedWidthImportSettings

Bases: object

T:Ansys.Mechanical.Table.FixedWidthImportSettings defines how to import data from a delimited source for tabular data.

Overview

Methods

Name Description
Clear
GetEnumerator
RemoveAt Removes the import definition at the specified index.
UseColumn

Properties

Name Description
ColumnWidths Gets or sets the specified column widths.
Count Gets the number of column definitions.
Format Gets the existing corresponding format.
Item Item property.
PathType Gets or sets the type of URI provided for Table import.
SkipFooter Gets or sets the number of rows to ignore at the end of the file during import.
SkipRows Gets or sets the number of rows to skip over at the start of the file during import.

Property detail

property FixedWidthImportSettings.ColumnWidths : Any | None

Gets or sets the specified column widths. When setting, The value provided to P:Ansys.Mechanical.Table.FixedWidthImportSettings.ColumnWidths may be either: number

property FixedWidthImportSettings.Count : int | None

Gets the number of column definitions.

property FixedWidthImportSettings.Format : Ansys.Mechanical.DataModel.MechanicalEnums.Table.ImportFormat | None

Gets the existing corresponding format.

property FixedWidthImportSettings.Item : Ansys.Mechanical.Table.ColumnarDataImportDefinition | None

Item property.

property FixedWidthImportSettings.PathType : Ansys.Mechanical.DataModel.MechanicalEnums.Common.PathType | None

Gets or sets the type of URI provided for Table import. Default: F:Ansys.Mechanical.DataModel.MechanicalEnums.Common.PathType.Absolute

property FixedWidthImportSettings.SkipFooter : int | None

Gets or sets the number of rows to ignore at the end of the file during import.

property FixedWidthImportSettings.SkipRows : int | None

Gets or sets the number of rows to skip over at the start of the file during import.

Method detail

FixedWidthImportSettings.Clear()

FixedWidthImportSettings.GetEnumerator()

FixedWidthImportSettings.RemoveAt(index: int)

Removes the import definition at the specified index.

FixedWidthImportSettings.UseColumn(index: int, variableType: Ansys.Mechanical.DataModel.MechanicalEnums.Table.VariableType, variableClassification: Ansys.Mechanical.DataModel.MechanicalEnums.Table.VariableClassification, unit: str, name: str)