DigiTab
Module: digi21.base
A code table (digi.tab) containing DigiTabNode nodes. Supports sequence operations: len(), indexing, and iteration.
Static method
| Method | Returns | Description |
|---|---|---|
DigiTab.load(path) |
DigiTab |
Load a digi.tab from a file |
Accessing nodes
| Operation | Description |
|---|---|
len(digitab) |
Node count |
digitab[i] |
DigiTabNode at position i |
for node in digitab: |
Iterate over every node |
Example
from digi21.base import DigiTab
digitab = DigiTab.load("Digi.tab.xml")
print(len(digitab), "nodos")
for node in digitab:
print(node.description)
See also
- DigiTabNode
- DrawingView —
digitabprovides the active project code table;find_codessearches by concept. - Course: reading a drawing file — using a table when opening a file.