Skip to Content

Attribute Table — Mutation Methods

Back to Attribute Table.

ClearTable

def ClearTable()

Empty and delete content of the table.

AddColumn

def AddColumn(name: str, type: int, valueType: int) -> int

Add a new column to the table.

Parameters:

NameTypeDescription
namestrColumn name.
typeintColumn type.
valueTypeintColumn attribute type.

Returns: int — Number of columns (inclusive new one).

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.

SetImportScriptName

def SetImportScriptName(importScriptName: str)

Searches path to the import script and sets it.

Parameters:

NameTypeDescription
importScriptNamestrFilename of import script (python file, e.g. table.py).

SetExportScriptName

def SetExportScriptName(exportScriptName: str)

Searches path to the export script and sets it.

Parameters:

NameTypeDescription
exportScriptNamestrFilename of export script (python file, e.g. table.py).

SetImportFilePath

def SetImportFilePath(importFilePath: str)

Sets path to the file which should be imported.

Parameters:

NameTypeDescription
importFilePathstrFull path of the import file.

DeleteRow

def DeleteRow(index: int)

Delete a row in this table by index.

Parameters:

NameTypeDescription
indexintIndex of the row to delete.

DeleteAllRows

def DeleteAllRows()

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

SetTableIconName

def SetTableIconName(tableIconName: str)

Set the table icon name for this table. Attention: This icon is provisioned for the table representation. Use SetIconName for the attribute icon.

Parameters:

NameTypeDescription
tableIconNamestrIcon name to be used for this table.
Was this page helpful?