Skip to main content

Mechanical scripting interface

ColumnarDataSourceBase

Last update: 14.01.2025

class Ansys.Mechanical.ExternalData.ColumnarDataSourceBase

Bases: object

T:Ansys.Mechanical.ExternalData.ColumnarDataSourceBase is a class that provides foundational behavior for import settings that consume data from columnar data sources (such as delimited or fixed-width files).

Overview

Methods

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

Properties

Name Description
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 ColumnarDataSourceBase.Count : int | None

Gets the number of column definitions.

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

Gets the existing corresponding format.

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

Item property.

property ColumnarDataSourceBase.SkipFooter : int | None

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

property ColumnarDataSourceBase.SkipRows : int | None

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

Method detail

ColumnarDataSourceBase.Clear()

ColumnarDataSourceBase.GetEnumerator()

ColumnarDataSourceBase.RemoveAt(index: int)

Removes the import definition at the specified index.

ColumnarDataSourceBase.UseColumn(index: int, variableType: Ansys.Mechanical.DataModel.MechanicalEnums.ExternalData.VariableType, unit: str, name: str)