TextMV
Represents a text annotation element for MV networks.
Text elements provide documentation and annotation capabilities for electrical network diagrams, supporting multiple lines and presentation styling.
Inherits from: ExtrasNotesMixin
Import
python
from pyptp.elements.mv import TextMVProperties
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
general | General | Yes | - | |
lines | list[Line] | No | [] | |
presentations | list[Presentation] | No | [] | |
extras | list[Extra] | No | [] | |
notes | list[Note] | No | [] |
General
Core properties for text annotations.
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
guid | Guid | No | (auto UUID) | |
creation_time | float | No | 0.0 | |
mutation_date | int | No | 0 | |
revision_date | int | No | 0 | |
variant | bool | No | False |
Line
Represents a single line of text content.
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
text | str | No | "" |
Presentation
Presentation properties for text display and positioning.
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
sheet | Guid | Yes | - | |
x | int | No | 0 | |
y | int | No | 0 | |
text_color | DelphiColor | No | "$000000" | Color of the text. |
text_size | int | No | 10 | Size of the text. |
font | str | No | "Arial" | |
text_style | int | No | 0 | |
upside_down_text | bool | No | False | Makes text upside down when True. |
Referenced Types
General
Core properties for text annotations.
Defined in pyptp.elements.mv.text
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
guid | Guid | No | (auto UUID) | |
creation_time | float | No | 0.0 | |
mutation_date | int | No | 0 | |
revision_date | int | No | 0 | |
variant | bool | No | False |
Line
Represents a single line of text content.
Defined in pyptp.elements.mv.text
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
text | str | No | "" |
Presentation
Presentation properties for text display and positioning.
Defined in pyptp.elements.mv.text
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
sheet | Guid | Yes | - | |
x | int | No | 0 | |
y | int | No | 0 | |
text_color | DelphiColor | No | "$000000" | Color of the text. |
text_size | int | No | 10 | Size of the text. |
font | str | No | "Arial" | |
text_style | int | No | 0 | |
upside_down_text | bool | No | False | Makes text upside down when True. |