Skip to content

FrameLV ​

Frame element for grouping and organizing components in low-voltage networks.

A frame is a visual container (rectangle, polygon, or ellipse) in the one-line diagram that indicates components belong together, such as components of a substation. When the container property is enabled, nodes and texts placed entirely within the frame are kept together when dragging the frame.

The frame has no influence on electrical calculations - it is purely organizational. Frames can contain nodes, texts, legends, and even other frames. Components must fit entirely within the frame boundaries to be considered contained.

Supports three shapes:

  • Rectangle (default)
  • Polygon (with bendable corners)
  • Ellipse
  • Image-based frame (size determined by image)

Import ​

python
from pyptp.elements.lv import FrameLV

Properties ​

PropertyTypeRequiredDefaultDescription
generalGeneralYes-
presentationslist[FramePresentation]Yes-
lineslist[str]No[]
extraslist[Extra]No[]
geo_serieslist[Geography]No[]

FramePresentation ​

Visual presentation properties for displaying the frame on a sheet.

Controls the graphical appearance including shape, colors, line style, text formatting, and positioning on the network diagram.

PropertyTypeRequiredDefaultDescription
sheetGuidNoGuid('00000000-0000-0000-00...Sheet GUID where this presentation is displayed.
sortFrameShapeNoRECTANGLEFrame shape type.
name_xintNo0X offset of the text relative to the weighted centre of the frame.
name_yintNo0Y offset of the text relative to the weighted centre of the frame.
filledboolNoFalseWhether the frame interior is filled with a background color.
fill_colorDelphiColorNo"$FF0000"Background fill color when filled is True.
image_sizeintNo100Scaling factor for the background image (100 = original size).
colorDelphiColorNo"$FF0000"Border/outline color of the frame.
widthintNo1Line width of the frame border.
styleLineStyleNoSOLIDLine style for the frame border.
text_colorDelphiColorNo"$000000"Color of the frame's text label.
text_sizeintNo10Font size for the frame's text label.
fontstrNo"Arial"Font family for the frame's text label.
text_styleintNo0Font style flags (bold, italic, etc.).
no_textboolNoFalseHides all text when True.
upside_down_textboolNoFalseMakes text upside down when True.
strings_xintNo0X offset of the text relative to object.
strings_yintNo0Y offset of the text relative to object.
first_cornerslist[tuple]No[]

General ​

Core properties defining the frame element.

Contains identification, naming, and behavioral properties that determine how the frame interacts with contained components.

PropertyTypeRequiredDefaultDescription
guidGuidNo(auto UUID)
creation_timefloat | intNo0
mutation_dateintNo0
namestrNo""User-defined name for the frame element.
revision_datefloat | intNo0.0
imagestrNo""Path or URL to an image file used as the frame background.
containerboolNoFalseWhether contained objects move together with the frame when dragged.

Referenced Types ​

General ​

Core properties defining the frame element.

Contains identification, naming, and behavioral properties that determine how the frame interacts with contained components.

Defined in pyptp.elements.lv.frame

PropertyTypeRequiredDefaultDescription
guidGuidNo(auto UUID)
creation_timefloat | intNo0
mutation_dateintNo0
namestrNo""User-defined name for the frame element.
revision_datefloat | intNo0.0
imagestrNo""Path or URL to an image file used as the frame background.
containerboolNoFalseWhether contained objects move together with the frame when dragged.

FramePresentation ​

Visual presentation properties for displaying the frame on a sheet.

Controls the graphical appearance including shape, colors, line style, text formatting, and positioning on the network diagram.

Defined in pyptp.elements.lv.frame

PropertyTypeRequiredDefaultDescription
sheetGuidNoGuid('00000000-0000-0000-00...Sheet GUID where this presentation is displayed.
sortFrameShapeNoRECTANGLEFrame shape type.
name_xintNo0X offset of the text relative to the weighted centre of the frame.
name_yintNo0Y offset of the text relative to the weighted centre of the frame.
filledboolNoFalseWhether the frame interior is filled with a background color.
fill_colorDelphiColorNo"$FF0000"Background fill color when filled is True.
image_sizeintNo100Scaling factor for the background image (100 = original size).
colorDelphiColorNo"$FF0000"Border/outline color of the frame.
widthintNo1Line width of the frame border.
styleLineStyleNoSOLIDLine style for the frame border.
text_colorDelphiColorNo"$000000"Color of the frame's text label.
text_sizeintNo10Font size for the frame's text label.
fontstrNo"Arial"Font family for the frame's text label.
text_styleintNo0Font style flags (bold, italic, etc.).
no_textboolNoFalseHides all text when True.
upside_down_textboolNoFalseMakes text upside down when True.
strings_xintNo0X offset of the text relative to object.
strings_yintNo0Y offset of the text relative to object.
first_cornerslist[tuple]No[]