Skip to Content
FASTSUITE E2API ReferencePython APIAPI DomainsAttributesAttribute Table Operator

Attribute Table Operator

Quick Facts

PropertyValue
ClassCENPyOlpAttributeTableOperator
Modulecenpylib.CENPyOlpAttributeTableOperator
Packagecenpylib
ReleaseR2025.2.4
Methods18

Quick Start

# Boilerplate Example attributeTableOperator = ... # obtained from the runtime context result = attributeTableOperator.GetLoggerOperator()

Method Index

MethodReturnsSummary
GetLoggerOperatorCENPyOlpLogOperatorGet logger operator.
GetTableNamestrGet name of the table.
AddRowintAdd a row.
GetColumnTypeintGet type of the given column.
GetColumnNamestrGet name of the given column.
GetColumnSizeintGet number of the columns.
GetRowSizeintGet number of the rows.
GetCellAnyGet cell by the column and row number.
GetCellTypeintGet the cell type by the column and row number.
GetImportFilePathstrGet full path of the import file.
SetCellSet the cell with a value.
GetRowNumberByIdintGet row number of the row with specified ID (REQUIRES: First column has to be an ID).
GetRowValuesByIdlistGet row values of the row with specified ID (REQUIRES: First column has to be an ID).
GetRowValueslistGet row values of the row with specified index.
DeleteRowDelete a row in this table.
DeleteAllRowsDelete all existing rows of this table.
GetColumnValueTypeintGet attribute type of column.
GetCellValueTypeintGet attribute type of the cell.

Query Methods

GetLoggerOperator

def GetLoggerOperator() -> CENPyOlpLogOperator

Get logger operator.

Returns: CENPyOlpLogOperator — Logger operator.

GetTableName

def GetTableName() -> str

Get name of the table.

Returns: str — Table name.

GetColumnType

def GetColumnType(columnNumber: int) -> int

Get type of the given column.

Parameters:

NameTypeDescription
columnNumberintNumber of the column to get the type of (numbers start with 0).

Returns: int — Column type.

GetColumnName

def GetColumnName(columnNumber: int) -> str

Get name of the given column.

Parameters:

NameTypeDescription
columnNumberintNumber of the column to get the name of (numbers start with 0).

Returns: str — Column name.

GetColumnSize

def GetColumnSize() -> int

Get number of the columns.

Returns: int — Columns number.

GetRowSize

def GetRowSize() -> int

Get number of the rows.

Returns: int — Rows number.

GetCell

def GetCell(columnNumber: int, rowNumber: int) -> object

Get cell by the column and row number.

Parameters:

NameTypeDescription
columnNumberintNumber of the column.
rowNumberintNumber of the row.

Returns: Any — Cell object.

GetCellType

def GetCellType(columnNumber: int, rowNumber: int) -> int

Get the cell type by the column and row number.

Parameters:

NameTypeDescription
columnNumberintNumber of the column.
rowNumberintNumber of the row.

Returns: int — None

GetImportFilePath

def GetImportFilePath() -> str

Get full path of the import file.

Returns: str — Full path of the import file.

GetRowNumberById

def GetRowNumberById(id: str) -> int

Get row number of the row with specified ID (REQUIRES: First column has to be an ID).

Parameters:

NameTypeDescription
idstrRow ID.

Returns: int — Row number, -1 if row not found.

GetRowValuesById

def GetRowValuesById(id: str) -> list

Get row values of the row with specified ID (REQUIRES: First column has to be an ID).

Parameters:

NameTypeDescription
idstrRow ID.

Returns: list — Values object of the desired row.

GetRowValues

def GetRowValues(row: int) -> list

Get row values of the row with specified index.

Parameters:

NameTypeDescription
rowintRow index.

Returns: list — Values object of the desired row.

GetColumnValueType

def GetColumnValueType(columnNumber: int) -> int

Get attribute type of column.

Parameters:

NameTypeDescription
columnNumberintColumn number to get attribute type of.

Returns: int — Attribute type of column.

GetCellValueType

def GetCellValueType(columnNumber: int, rowNumber: int) -> int

Get attribute type of the cell.

Parameters:

NameTypeDescription
columnNumberintColumn number of the cell.
rowNumberintRow number of the cell.

Returns: int — Attribute type of the cell.

Mutation Methods

AddRow

def AddRow() -> int

Add a row. Cell values are filled with default values (int: 0; double: 0.0; bool: false; string: "").

Returns: int — Size of created row array.

SetCell

def SetCell(columnNumber: int, rowNumber: int, pyValue: object)

Set the cell with a value.

Parameters:

NameTypeDescription
columnNumberintNumber of the column.
rowNumberintNumber of the row.
pyValueAnyDesired value.

DeleteRow

def DeleteRow(index: int)

Delete a row in this table.

Parameters:

NameTypeDescription
indexintIndex of the row to delete.

DeleteAllRows

def DeleteAllRows()

Delete all existing rows of this table. So that there are only columns.

Version Notes

This class is documented as of release R2025.2.4.

Was this page helpful?