Skip to main content

Mechanical scripting interface

FixedWidthImportSettings

Last update: 14.01.2025

class Ansys.Mechanical.ExternalData.FixedWidthImportSettings

Bases: object

T:Ansys.Mechanical.ExternalData.FixedWidthImportSettings defines how to import external data from a fixed-width source file.

Overview

Methods

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

Properties

Name Description
AverageCornerNodesToMidsideNodes
ColumnWidths
Count Gets the number of column definitions.
Format Gets the existing corresponding format.
Item Item property.
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.AverageCornerNodesToMidsideNodes : bool | None

property FixedWidthImportSettings.ColumnWidths : str | None

property FixedWidthImportSettings.Count : int | None

Gets the number of column definitions.

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

Gets the existing corresponding format.

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

Item property.

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.ExternalData.VariableType, unit: str, name: str)