Method and system for quickly forming grid layout of power grid single line diagram
The grid layout method enables rapid drawing, solving the problems of cumbersome operation and error-proneness in drawing single-line power grid diagrams. It enables fast and efficient drawing of single-line power grid diagrams and reduces the technical requirements for drawing personnel.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-13
- Publication Date
- 2026-03-13
AI Technical Summary
The existing methods for drawing single-line diagrams of power grids mainly rely on manual operation or tool assistance, which are cumbersome, error-prone, and have high data requirements, making it difficult to achieve fast and efficient drawing.
By adopting a grid layout method, a dynamically adjustable grid framework is constructed by determining the number of grid rows and columns. Electrical equipment elements are filled into the grid cells, and the connection paths between elements are automatically calculated, enabling the rapid generation of single-line diagrams of the power grid.
It simplifies the drawing process, reduces the technical requirements for drafters, improves drawing efficiency, is suitable for the rapid generation of various power grid single-line diagrams, reduces human error, and is suitable for the rapid drawing of general power grid single-line diagrams.
Smart Images

Figure CN121659532A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of power system drawing technology, specifically to a method and system for rapid generation of power grid single-line grid layout. Background Technology
[0002] A single-line diagram of a power grid is a simplified graphic representation of the wiring relationships of electrical equipment in a power system. It shows the relative positions and connections of major or partial electrical equipment. The simplification of the power system and the reduction of drawing complexity make electrical system design and analysis more efficient. Single-line diagrams are extremely useful in power grid planning and maintenance, such as identifying the electrical locations of circuit breakers, switches, transformers, and regulators in substations.
[0003] In a single-line power grid diagram, power elements are graphic symbols corresponding to various electrical components, including busbars, transformers, switches, disconnectors, circuit breakers, and relays. These symbols are designed according to national or international standards to ensure the diagram's universality and standardization. Single-line power grid diagrams can be laid out functionally or spatially. Functional layouts focus on showing the functional relationships between equipment, without considering the actual installation location. Spatial layouts directly reflect the physical location of equipment and the routing of conductors, facilitating rapid equipment location during installation and maintenance.
[0004] Grid-based rapid drawing of power grid single-line diagrams involves setting a grid to match the target graphic, filling the grid cells with corresponding graphic elements, determining the position of each graphic element in the cells according to the grid layout design, and determining the connection method between graphic elements based on the element position, element type, and the number and position of the connection terminals, thus achieving rapid drawing of single-line diagrams. Most power grid single-line diagrams are currently drawn manually. With the development of new power systems, the demand for displaying single-line diagrams in power grid applications is gradually increasing, necessitating rapid drawing to meet this growing demand. Therefore, researching methods for grid-based rapid drawing of power grid single-line diagrams can greatly improve drawing efficiency and has broad practical application value.
[0005] Currently, there are three main methods for drawing single-line diagrams of power grids: manual drawing, tool-assisted drawing, and automated tool drawing. Manual drawing uses power industry drawing software, requiring the selection and placement of elements from a library according to the target graphic requirements, and connection according to the electrical characteristics of the corresponding equipment. This method is tedious, involves repetitive operations, and is prone to errors. Tool-assisted drawing utilizes tools that provide drawing templates and electrical characteristic testing tools to assist in the manual drawing process. This requires the drawing personnel to be familiar with the drawing tools and auxiliary tools used, and the software has a relatively high learning curve. Automated tool drawing automatically generates diagrams by performing topology analysis on equipment data. Before drawing, it is necessary to collect and organize the equipment data required for the diagram. In some drawing scenarios, obtaining the required data is difficult, and automatic drawing has certain requirements for data structure. If the data does not match, it needs to be reorganized. After automatic drawing is completed, manual verification is required to ensure that the drawing result is consistent with the target graphic. Summary of the Invention
[0006] This invention aims to at least solve one of the technical problems existing in the prior art. Therefore, one objective of this invention is to propose a method and system for rapidly generating a single-line power grid diagram using a grid layout. This method involves determining the number of rows and columns of the grid to be drawn for the single-line power grid diagram, constructing a grid with the corresponding number of rows and columns, filling the corresponding equipment elements in the grid cells, determining the element positions and drawing the elements according to the grid layout, and determining the connections between elements based on the element positions and terminals, thereby achieving rapid generation of a single-line power grid diagram.
[0007] To address the above problems, this invention provides a method for rapid generation of power grid single-line network layout diagrams, comprising the following steps: Step S1: Determine the number of rows and columns of the grid based on the equipment layout characteristics of the target power grid single-line diagram; Step S2: Based on the number of rows and columns, construct a dynamically adjustable grid framework, where the grid supports adding or deleting rows and columns when filling elements, and the cell position automatically adapts; Step S3: Fill the grid cells with electrical equipment elements in order from top to bottom and from left to right, and reserve cells for partitioning, inline connection, or cross-row connection. Step S4: Based on the grid layout, analyze the position and electrical characteristics of the graphic elements, and automatically calculate the connection paths between the graphic elements, including horizontal and vertical connections; Step S5: Calculate the canvas size based on the number of grid rows and columns, draw the primitives onto the canvas and complete the connection to generate a single-line diagram of the power grid.
[0008] Preferably, in step S3, the partitioned interval cells are used to separate multiple busbar elements or transformer elements in the same row; the intra-row connection cells are filled with straight line elements to achieve horizontal connection; and the cross-row connection cells are filled with polyline elements to achieve vertical connection.
[0009] Preferably, in step S4, automatically calculating the connection path includes: For horizontal lines, fill the cells between adjacent elements with straight line elements; For vertical lines, fill the corresponding cells with polyline elements based on the anchor point position of the element and the electrical characteristics of the downstream element.
[0010] Preferably, in step S5, the canvas size is calculated as follows: the canvas width is determined by the row with the most cells in the grid, the canvas height is determined by the number of grid rows, and a blank gap is reserved around each cell to ensure a reasonable layout.
[0011] A system for rapid generation of power grid single-line network layout diagrams includes: Mesh configuration module: used to determine the number of rows and columns of the mesh based on the target single-line graph, and to build a dynamically adjustable mesh structure; The element filling module is used to fill device elements in grid cells, and supports element rotation, spacing reservation, and connection placeholder settings. Topology parsing module: used to automatically adjust the size and alignment of primitives based on the mesh topology, and to calculate the topology of connections between primitives; Canvas Generation Module: Used to generate a canvas based on grid parameters, draw primitives and complete the connection, and output a single-line graph.
[0012] Preferably, the system also includes a verification module for comparing the consistency between the filled primitives and the target graphic, and supports dynamic grid adjustment to correct errors.
[0013] Preferably, the topology resolution module is further used for: The length of the busbar elements is automatically adjusted based on the number of downlink elements. Perform center point alignment on asymmetrical primitives to ensure that the connecting lines are horizontal and vertical.
[0014] The advantages of this invention compared to the prior art are: (1) The grid layout design of this invention realizes the drawing method of single-line diagram of power grid by filling the grid, which transforms the manual drawing method into filling the grid with graphic elements. Drawing a single-line diagram only requires determining the target graphic row and column, constructing the target number of rows and columns of the grid, and filling the grid cells with graphic elements to complete the drawing. The grid layout rapid drawing method is not limited to single-line diagram type, application scenario, voltage level, etc., and can be applied to the rapid drawing of general power grid single-line diagrams.
[0015] (2) The grid layout simplifies the layout operation in the graphic drawing process. The size of the drawn graphic is automatically adjusted according to the number of rows and columns in the grid and the number of graphic elements in the row. The gaps between graphic elements ensure a reasonable layout. The graphic elements in the row are automatically and evenly arranged, and the length of the busbar graphic elements is automatically adjusted according to the number of graphic elements connected to it. The angle of the graphic element drawing is automatically adjusted according to the rotation of the cell configuration, and the graphic elements in the same column direction are automatically aligned.
[0016] (3) It saves the connection steps in the graphic drawing process. The layout calculates the topology of graphic element connections from top to bottom and automatically connects them based on the relative position of graphic elements in the cell, graphic element anchor points, and the relationship between graphic elements in the upper and lower rows. Intra-row connections are made by placing straight graphic elements in the middle position of adjacent cells, and cross-row connections are made by placing multi-terminal graphic elements on the left or right side of the graphic elements.
[0017] (4) It reduces the requirements for drawing personnel to use and be proficient in drawing software. Using grid layout, the drawing can be completed quickly. Only the target graphic needs to be determined to construct the target graphic grid and fill the corresponding graphic elements in the grid cells. There is no need to be proficient in drawing software. Attached Figure Description
[0018] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0019] Figure 1 This is a flowchart of the method of the present invention; Figure 2 This is a grid layout diagram of the present invention; Figure 3 This is a schematic diagram of primitive filling in the present invention; Figure 4 This is a diagram showing the rapid drawing results of the present invention; Figure 5 This is a diagram showing the grid configuration and primitive filling of the present invention; Figure 6 This is a diagram showing the rapid image generation effect after the grid layout of the present invention. Detailed Implementation
[0020] The embodiments of this application are described in detail below. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain this application, and should not be construed as limiting this application.
[0021] In the description of this application, it should be noted that, unless otherwise expressly specified and limited, the terms "installation," "connection," and "joining" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two components or the interaction between two components. Those skilled in the art can understand the specific meaning of the above terms in this application according to the specific circumstances.
[0022] The present invention will now be described in further detail with reference to the accompanying drawings.
[0023] Combination Figures 1-5 The present invention relates to a method and system for rapid mapping of a power grid single-line network layout. This invention determines the target graphic, calculates the number of rows and columns according to a grid layout, and configures the corresponding number of rows and columns in the grid. Corresponding graphic elements are filled into the grid cells according to the target graphic. During the element filling process, the grid can be dynamically added, deleted, or adjusted. Intra-row partitioning is performed with reserved intervals between adjacent cells. After the grid element filling is complete, it is checked to ensure consistency with the target graphic. Graphic elements are analyzed row by row from top to bottom using the grid layout. Finally, the canvas size is set according to the number of grid rows and columns. The graphic elements are drawn onto the canvas, and lines are connected between them according to their positions and electrical characteristics, thus completing the graphic drawing process. The process is as follows: Figure 1 As shown.
[0024] (1) Calculate the number of grid rows and columns based on the target graphic according to the grid layout, and configure the corresponding number of grid rows and columns. The grid rows, columns, and cells can be dynamically added, deleted, or adjusted during the filling of graphic elements. The grid layout is as follows: Figure 2 As shown.
[0025] (2) Fill the corresponding graphic elements in the cells row by row from top to bottom in the grid construction. Leave a gap between adjacent cells when drawing the parts in sections. Among them, busbar graphic elements and transformer graphic elements usually occupy a row. If the busbar graphic element appears multiple times in the same row, a gap needs to be reserved between two adjacent busbar graphic elements. If graphic elements in the same row need to be connected horizontally, set a straight line graphic element in the cell between two graphic element cells; if graphic elements in different columns need to be connected, set a polyline graphic element in the cell to the left or right of the graphic element in the previous row; if a gap needs to be reserved between graphic elements in the same row, reserve a blank cell as a placeholder between two graphic element cells. After the grid graphic elements are filled, check whether the number and placement of all graphic elements, gaps, connections and target graphics are consistent. If they are inconsistent, the grid can be dynamically adjusted. Graphic element filling is as follows Figure 3 As shown.
[0026] (3) The grid element filling is completely consistent with the target graphic. A grid layout is used to parse the filling elements row by row. The busbar element's length is automatically adjusted according to the number of downstream elements. The transformer element is positioned in the middle of the downstream elements according to wiring requirements. Ordinary elements are positioned according to their cell row and column positions. Simultaneously, the intervals and horizontal and vertical line occupancy are parsed. After parsing, the canvas size is determined according to the number of grid rows and columns. The elements are drawn one by one to their corresponding positions on the canvas, and then the connections between elements are completed according to their positions and characteristics. The quick drawing result is as follows: Figure 4 As shown.
[0027] (4) Appropriately using partitioning intervals in a grid layout allows for the simultaneous drawing of multiple graphics of different sizes. The grid configuration and element filling methods are completely consistent with those for drawing a single graphic. Grid configuration and element filling are as follows: Figure 5 As shown, the grid layout is quickly used to generate the image. Figure 6 As shown.
[0028] To more clearly illustrate the specific embodiments of the present invention, an example is provided below: The following example, using the drawing of a single-line diagram of a single busbar, a single transformer, and five branches, illustrates the implementation of this invention in detail. Step 1: Mesh Configuration The grid is determined to be 6 rows and 5 columns based on the target graphic. The number of grid rows and columns needs to take into account the number of devices, partition intervals, and wiring requirements. The grid supports dynamic adjustment: rows and columns can be added or deleted when filling elements, and cells will automatically rearrange. The grid layout is as follows: Figure 2 As shown.
[0029] Step 2: Filling the graphic elements Fill the cells with graphic elements in a top-to-bottom order: Cell 3 of row 1: Circuit breaker element.
[0030] Cell 3 of row 2: Transformer element.
[0031] 3rd row, 3rd cell: Circuit breaker element.
[0032] 4th row, 3rd cell: Busbar element (length automatically adjusted based on the number of elements in the down row).
[0033] All cells in row 5: Circuit breaker elements.
[0034] All cells in row 6: Load device elements.
[0035] Reserve space and line placeholders when filling: Partitioning interval: Reserve blank cells between multiple busbar elements in the same row.
[0036] Inline connection: Fill the space between adjacent elements with a line element placeholder.
[0037] Cross-row connection: Fill the cells to the left or right of the elements in the previous row with polyline elements.
[0038] Example of primitive filling Figure 3 As shown.
[0039] Step 3: Analysis and Canvas Drawing After the grid is filled, analyze the primitives row by row: The busbar elements are automatically extended based on the number of circuit breakers in the 5th row.
[0040] Graphic elements are aligned to the cell center, and asymmetrical graphic elements are adjusted for vertical alignment.
[0041] Calculate the canvas size based on the number of grid rows and columns (width is determined by the maximum number of cells in the row, and height is determined by the number of rows), and leave gaps.
[0042] Automatically generate connections between elements: horizontal connections are achieved using straight line elements, while vertical connections are based on anchor point topology calculations.
[0043] The resulting image is as follows Figure 4 As shown.
[0044] Extended Applications: This method supports drawing multiple graphics simultaneously. Different graphic regions can be configured using grid partitioning intervals, such as... Figure 5 As shown; the resulting graph is as follows Figure 6 As shown.
[0045] Finally, any aspects not fully described in this invention utilize existing mature products and technologies.
[0046] The present invention and its embodiments have been described above. This description is not restrictive, and the accompanying drawings are only one embodiment of the present invention; the actual structure is not limited thereto. In conclusion, if those skilled in the art are inspired by this description and design similar structures and embodiments without departing from the spirit of the present invention, such designs should fall within the protection scope of the present invention.
Claims
1. A method for rapid generation of power grid single-line network layout diagrams, characterized in that, Includes the following steps: Step S1: Determine the number of rows and columns of the grid based on the equipment layout characteristics of the target power grid single-line diagram; Step S2: Based on the number of rows and columns, construct a dynamically adjustable grid framework, wherein the grid supports adding or deleting rows and columns when filling primitives, and the cell position automatically adapts; Step S3: Fill the cells of the grid with electrical equipment elements in order from top to bottom and from left to right, and reserve cells for partitioning, inline connection, or cross-row connection. Step S4: Based on the grid layout, analyze the position and electrical characteristics of the graphic elements, and automatically calculate the connection paths between the graphic elements, including horizontal and vertical connections; Step S5: Calculate the canvas size based on the number of grid rows and columns, draw the primitives onto the canvas and complete the connection to generate a single-line diagram of the power grid.
2. The method for rapid mapping of a power grid single-line network layout as described in claim 1, characterized in that: In step S3, the partitioned interval cells are used to separate multiple busbar elements or transformer elements in the same row; the intra-row connection cells are filled with straight line elements to achieve horizontal connection; and the cross-row connection cells are filled with polyline elements to achieve vertical connection.
3. The method for rapid mapping of a power grid single-line network layout as described in claim 1, characterized in that: In step S4, the automatic calculation of the connection path includes: For horizontal lines, fill the cells between adjacent elements with straight line elements; For vertical lines, fill the corresponding cells with polyline elements based on the anchor point position of the element and the electrical characteristics of the downstream element.
4. The method for rapid generation of a power grid single-line network layout as described in claim 1, characterized in that: In step S5, the canvas size is calculated as follows: the canvas width is determined by the row with the most cells in the grid, the canvas height is determined by the number of grid rows, and blank gaps are reserved around each cell to ensure the layout is reasonable.
5. A system for rapid mapping of a power grid single-line network layout, used to implement the method of claim 1, characterized in that, include: Mesh configuration module: used to determine the number of rows and columns of the mesh based on the target single-line graph, and to build a dynamically adjustable mesh structure; The element filling module is used to fill device elements in grid cells, and supports element rotation, spacing reservation, and connection placeholder settings. Topology parsing module: used to automatically adjust the size and alignment of primitives based on the mesh topology, and to calculate the topology of connections between primitives; Canvas Generation Module: Used to generate a canvas based on grid parameters, draw primitives and complete the connection, and output a single-line graph.
6. The system for rapid mapping of a power grid single-line network layout as described in claim 5, characterized in that: The system also includes a verification module for comparing the consistency between the filled primitives and the target graphic, and supports dynamic grid adjustment to correct errors.
7. The system for rapid mapping of a power grid single-line network layout as described in claim 5, characterized in that: The topology resolution module is further used for: The length of the busbar elements is automatically adjusted based on the number of downlink elements. Perform center point alignment on asymmetrical primitives to ensure that the connecting lines are horizontal and vertical.