String Table Service
Class full path: StringTableService.StringTableService
Definition of class StringTableService
Attributes
material_str_table: BuildingElementMaterialStringTable
property
get the material string table
Returns:
Type | Description |
---|---|
BuildingElementMaterialStringTable
|
material string table |
str_table: BuildingElementStringTable
property
get the string table
Returns:
Type | Description |
---|---|
BuildingElementStringTable
|
string table |
Functions
__init__(path)
Initialize the data
Parameters:
Name | Type | Description | Default |
---|---|---|---|
build_ele
|
Building element |
required | |
build_ele_script
|
Building element script |
required | |
control_props
|
Control properties |
required | |
file_name
|
Name of the pyp file |
required |
get_string(string_id, string)
Get a string from the table
Returns:
Type | Description |
---|---|
String from the ID if exist, default string otherwise |
Parameters:
Name | Type | Description | Default |
---|---|---|---|
string_id
|
str
|
String ID (if empty, take it for {...} part of the string |
required |
string
|
str
|
Default string in case of no existing ID |
required |
get_string_table_entry(string_table, string_id, string)
staticmethod
Get a string from the table
Returns:
Type | Description |
---|---|
str
|
String from the ID if exist, default string otherwise |
Parameters:
Name | Type | Description | Default |
---|---|---|---|
string_table
|
BuildingElementStringTable
|
string table |
required |
string_id
|
str
|
String ID (if empty, take it for {...} part of the string |
required |
string
|
str
|
Default string in case of no existing ID |
required |