pypowsybl.network.Network.write_single_line_diagram_svg#

Network.write_single_line_diagram_svg(container_id, svg_file, metadata_file=None, parameters=None)[source]#

Create a single line diagram in SVG format from a voltage level or a substation and write to a file.

Parameters:
  • container_id (str) – a voltage level id or a substation id

  • svg_file (str | PathLike) – a svg file path

  • metadata_file (str | PathLike | None) – a json metadata file path

  • parameters (SldParameters | None) – single-line diagram parameters to adjust the rendering of the diagram

Return type:

None