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) -> intAdd a new column to the table.
Parameters:
| Name | Type | Description |
|---|---|---|
name | str | Column name. |
type | int | Column type. |
valueType | int | Column attribute type. |
Returns: int — Number of columns (inclusive new one).
AddRow
def AddRow() -> intAdd 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:
| Name | Type | Description |
|---|---|---|
columnNumber | int | Number of the column. |
rowNumber | int | Number of the row. |
pyValue | Any | Desired value. |
SetImportScriptName
def SetImportScriptName(importScriptName: str)Searches path to the import script and sets it.
Parameters:
| Name | Type | Description |
|---|---|---|
importScriptName | str | Filename of import script (python file, e.g. table.py). |
SetExportScriptName
def SetExportScriptName(exportScriptName: str)Searches path to the export script and sets it.
Parameters:
| Name | Type | Description |
|---|---|---|
exportScriptName | str | Filename of export script (python file, e.g. table.py). |
SetImportFilePath
def SetImportFilePath(importFilePath: str)Sets path to the file which should be imported.
Parameters:
| Name | Type | Description |
|---|---|---|
importFilePath | str | Full path of the import file. |
DeleteRow
def DeleteRow(index: int)Delete a row in this table by index.
Parameters:
| Name | Type | Description |
|---|---|---|
index | int | Index 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:
| Name | Type | Description |
|---|---|---|
tableIconName | str | Icon name to be used for this table. |