Skip to content

LegendLV

Low-voltage legend with tabular cell structure.

Supports multi-row, multi-column text tables with cell merging for title blocks, revision tables, and diagram annotations.

Inherits from: DataClassJsonMixin

Import

python
from pyptp.elements.lv import LegendLV

Properties

PropertyTypeRequiredDefaultDescription
generalGeneralNo(factory)
mergeslist[str]No[]
cellslist[LegendCell]No[]
presentationslist[LegendPresentation]No[]

General

Core properties for LV legends.

Encompasses identification and table dimensions (rows, columns).

PropertyTypeRequiredDefaultDescription
guidGuidNo(auto UUID)
creation_timefloatNo0.0
mutation_dateintNo0
revision_dateintNo0
rowsintNo1
columnsintNo1

Referenced Types

General

Core properties for LV legends.

Encompasses identification and table dimensions (rows, columns).

Defined in pyptp.elements.lv.legend

PropertyTypeRequiredDefaultDescription
guidGuidNo(auto UUID)
creation_timefloatNo0.0
mutation_dateintNo0
revision_dateintNo0
rowsintNo1
columnsintNo1

LegendCell

Individual cell within a legend table.

Contains row/column position, text formatting, and content lines.

Defined in pyptp.elements.lv.legend

PropertyTypeRequiredDefaultDescription
rowintNo1
columnintNo1
text_sizeintNo20
text_lineslist[str]No[]

LegendPresentation

Visual presentation properties for legend display.

Defines position, dimensions, colors, and text formatting for rendering the legend on a sheet.

Defined in pyptp.elements.lv.legend

PropertyTypeRequiredDefaultDescription
sheetGuidNo(auto UUID)
x1intNo0
y1intNo0
x2intNo0
y2intNo0
colorDelphiColorNo"$000000"
widthintNo1Thickness of the lines that draw the symbol.
stylestrNo"Solid"
text_colorDelphiColorNo"$000000"Color of the text.
text_sizeintNo10Size of the text.
fontstrNo"Arial"
text_styleintNo0
no_textboolNoFalseHides all text when True.
upside_down_textboolNoFalseMakes text upside down when True.