Skip to main content

Mechanical scripting interface

IReadOnlyDataTable

Last update: 14.01.2025

class Ansys.Mechanical.Interfaces.IReadOnlyDataTable

Bases: object

IReadOnlyDataTable interface.

Overview

Methods

Name Description
GetRow Returns an enumerable to iterate over the values in a row.

Properties

Name Description
ColumnNames Gets a list of the column names.
Columns Explicitly get the columns of the table.
Item Item property.
Metadata Gets a dictionary with additional information that may be useful to understanding the
Name Get the name of the table.
RowCount Gets the maximum number of data points (rows) among all columns in the table

Property detail

property IReadOnlyDataTable.ColumnNames : tuple[str] | None

Gets a list of the column names.

property IReadOnlyDataTable.Columns : tuple[Ansys.Mechanical.Interfaces.IReadOnlyDataSeries] | None

Explicitly get the columns of the table.

property IReadOnlyDataTable.Item : Ansys.Mechanical.Interfaces.IReadOnlyDataSeries | None

Item property.

property IReadOnlyDataTable.Metadata : dict[str, Any] | None

Gets a dictionary with additional information that may be useful to understanding the context of data in the table.

property IReadOnlyDataTable.Name : str | None

Get the name of the table.

property IReadOnlyDataTable.RowCount : int | None

Gets the maximum number of data points (rows) among all columns in the table

Method detail

IReadOnlyDataTable.GetRow(rowIndex: int)

Returns an enumerable to iterate over the values in a row.