A method for automatically drawing a power transmission line wiring diagram

CN116011160BActive Publication Date: 2026-08-28GUANGZHOU POWER SUPPLY BUREAU GUANGDONG POWER GRID CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211631507.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-19
Publication Date
2026-08-28
Estimated Expiration
2042-12-19

AI Technical Summary

Technical Problem

[0003]为了克服现有技术存在的一个或者多个缺陷与不足,本发明的目的在于提供一种输电线路接线图自动绘制方法,用于实现输电线路接线图的自动绘制,克服人工绘制的缺陷

Benefits of technology

[0027]本发明采用统一的输电线路接线图绘制标准,实现了制图的规范化标准化,避免人工制图的差异;自动绘制输电线路接线图的方式不仅耗时极大的缩短,还可以及时更新和改正输电线路接线图内容与现场实际情况不符合等情况,避免误导输电线路的运维及检修人员;通过自动绘制生成的输电线路接线图,具有可传递性、二次修改性好的效果,便于图纸的管理和更新。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116011160B_ABST
    Figure CN116011160B_ABST
Patent Text Reader

Abstract

The application discloses a kind of transmission line wiring diagram automatic drawing method.The method includes the following steps: establishing node database to store the structured data of node;Establish the drawing specification of transmission line wiring diagram;Parameter modeling is carried out on the whole transmission line wiring diagram in Python programming software, determine the Python program of automatic drawing transmission line wiring diagram;According to ActiveX automation script protocol, build automatic drawing control interface;The Python program of automatic drawing transmission line wiring diagram calls AutoCAD software through automatic drawing control interface to automatically draw transmission line wiring diagram.Compared with the traditional manual drawing transmission line wiring diagram mode, it has the advantages of short drawing time, uniform drawing specification, continuous updating, high post-maintenance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the technical field of automated drawing, specifically relating to a method for automatically drawing wiring diagrams of power transmission lines. Background Technology

[0002] Transmission line wiring diagrams are crucial reference documents for power grid operation and maintenance units, and their standardization and accuracy are essential for the smooth operation of maintenance work. Currently, transmission line wiring diagrams are still drawn manually. However, this manual method has several drawbacks: First, there is the issue of standardization. Although some standards exist, differences still exist between wiring diagrams drawn by different maintenance personnel, leading to misunderstandings and even human errors. Second, manual drawing is time-consuming and labor-intensive, resulting in outdated diagrams and discrepancies between the diagrams and actual site conditions, potentially misleading maintenance and repair personnel. Third, the diagrams drawn by drafters based on line construction handover documents and site survey data have poor transferability and modifiability, increasing the difficulty of later maintenance. Summary of the Invention

[0003] In order to overcome one or more defects and deficiencies in the existing technology, the purpose of this invention is to provide an automatic drawing method for transmission line wiring diagrams, which can realize the automatic drawing of transmission line wiring diagrams and overcome the defects of manual drawing.

[0004] To achieve the above objectives, the present invention adopts the following technical solution.

[0005] A method for automatically drawing transmission line wiring diagrams includes the following steps:

[0006] The connection relationships between nodes in a transmission line are treated as wiring relationships in a transmission line wiring diagram. Structured data of the nodes are collected, and then a node database is established to store the structured data of the nodes.

[0007] Based on the requirements for drawing transmission line wiring diagrams, determine the range of nodes to be used in the node database for drawing transmission line wiring diagrams and the wiring relationships between nodes;

[0008] Establish the drawing standards for transmission line wiring diagrams, clarify the requirements for the routing of wiring relationships and the layout of nodes in the transmission line wiring diagrams, and then start the Python programming software and AutoCAD drawing software.

[0009] Based on the constraints of the established transmission line wiring diagram drawing specifications, the Python programming language is used to process the structured data of the nodes and the wiring relationships between the nodes in the transmission line wiring diagram. The pyautocad library and / or dxfwrite library and / or Pillow library in the Python programming language are called to write the program according to the transmission line wiring diagram drawing specifications. Through the program writing, the entire transmission line wiring diagram is parametrically modeled, and the parametric model of the entire transmission line wiring diagram is constructed, thereby determining the Python program for automatically drawing transmission line wiring diagrams.

[0010] After constructing the parametric model of the transmission line wiring diagram in the Python programming software and determining the Python program for automatically drawing the transmission line wiring diagram, an automatic drawing control interface for transmitting the control parameters of the Python program for automatically drawing the transmission line wiring diagram to the AutoCAD software is constructed according to the ActiveX automation script protocol.

[0011] The Python program that automatically draws the wiring diagram of the transmission line reads the structured data of all nodes within the node range and the wiring relationship between the nodes, passes the corresponding parameters to the determined parameter model, and then the Python program that automatically draws the wiring diagram of the transmission line calls the AutoCAD software through the automatic drawing control interface to automatically draw the diagram until the entire wiring diagram of the transmission line is drawn.

[0012] Verify whether the transmission line wiring diagram containing text annotations needs to be updated; if not, export the transmission line wiring diagram from AutoCAD software; if it needs to be updated, update the node database, adjust the corresponding parameter models required for the transmission line wiring diagram accordingly, and then execute the Python program that automatically draws the transmission line wiring diagram based on the parameter models and calls AutoCAD software through the automatic drawing control interface to automatically draw the diagram, and then export the transmission line wiring diagram from AutoCAD software.

[0013] Preferably, the node includes a transmission tower, a cable termination, or a substation;

[0014] The structured data includes information such as node name, type, latitude and longitude, altitude, and phase sequence.

[0015] Preferably, the layout method includes a simulated human-made layout and a geographic location layout;

[0016] The simulated manual layout method divides the wiring relationship between nodes into vertical arrangement or horizontal straight line arrangement.

[0017] The geographic location layout involves converting the geographic coordinates of the nodes into planar coordinates in a projected coordinate system and then scaling them proportionally.

[0018] Preferably, the Python program for automatically drawing transmission line wiring diagrams includes a code block that reads structured data of nodes within a node range from a node database;

[0019] The pyautocad library generates DWG files in AutoCAD software, the dxfwrite library generates DXF files (open format) in AutoCAD software, and the Pillow library generates image format files in AutoCAD software.

[0020] Preferably, the steps of the Python program for automatically drawing transmission line wiring diagrams further include:

[0021] The structured data of the nodes is used as textual annotations for the transmission line wiring diagram, and is also incorporated into the parametric model through programming.

[0022] Preferably, the AutoCAD software remains open and unused by other programs before receiving control parameters and during the automatic drawing process.

[0023] Preferably, after determining the range of nodes to be used in the node database for drawing transmission line wiring diagrams and the wiring relationships between nodes, the method further includes the following steps:

[0024] The structured data within the node's scope is validated to determine whether the node's structured data is correct compared to the actual situation; if the node's structured data is incorrect, the node's structured data is modified to be correct.

[0025] After verifying that everything is correct, proceed with writing the Python program to automatically draw the wiring diagram of the power transmission line.

[0026] Compared with the prior art, the technical solution of the present invention has the following beneficial effects:

[0027] This invention adopts a unified standard for drawing transmission line wiring diagrams, achieving standardization and normalization of drafting and avoiding discrepancies in manual drafting. The automatic drawing method for transmission line wiring diagrams not only greatly reduces the time required but also allows for timely updates and corrections of discrepancies between the wiring diagram content and actual site conditions, preventing misleading transmission line operation and maintenance personnel. The automatically generated transmission line wiring diagrams are transferable and easily modifiable, facilitating the management and updating of drawings. Attached Figure Description

[0028] Figure 1 This is a flowchart illustrating the automatic drawing method for power transmission line wiring diagrams according to the present invention. Detailed Implementation

[0029] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.

[0030] Example

[0031] like Figure 1 As shown in the figure, an automatic drawing method for transmission line wiring diagrams in this embodiment includes the following steps:

[0032] S1. Treat the transmission towers, cable terminals, and substations in the transmission line as nodes, and regard the connection relationship between the nodes as the wiring relationship in the transmission line wiring diagram. Collect the structured data of the nodes, and then establish a node database to store the structured data of the nodes. The information of the structured data includes, but is not limited to, the name, type, latitude and longitude, height, phase sequence, etc. of the nodes.

[0033] In this embodiment, it is also preferred that the node database has the function of adding / deleting structured data of nodes. When it is necessary to redraw the wiring diagram of the transmission line, new nodes can be added to the node database or existing nodes can be deleted from the node database as needed.

[0034] S2. Based on the requirements for drawing transmission line wiring diagrams, determine the range of nodes to be used in the node database for drawing transmission line wiring diagrams, the wiring relationships between nodes, and verify the structured data within the node range to determine whether the structured data of the nodes is correct compared with the actual situation.

[0035] If the node's structured data is correct, proceed to the next step; if the node's structured data is incorrect, modify the node's structured data to be correct.

[0036] S3. Establish the drawing specifications for transmission line wiring diagrams, clarify the routing method of wiring relationships in transmission line wiring diagrams, and the requirements for the layout of nodes in transmission line wiring diagrams. Then, start the Python programming software and AutoCAD drawing software.

[0037] The layout methods are divided into two types: simulated manual layout and geographic location layout. The simulated manual layout arranges the wiring relationships between nodes either vertically or horizontally, which is easy to read. The geographic location layout converts the geographic coordinates of nodes such as transmission towers, cable terminals, and substations into planar coordinates in a projected coordinate system and then scales them proportionally to ensure that the wiring relationships between nodes correspond to their actual geographic locations, reflecting the true layout of the nodes. In addition, corresponding text annotations need to be generated based on the existing node serial numbers and their naming rules.

[0038] S4. Based on the constraints of the established transmission line wiring diagram drawing specifications, in the Python programming software, the structured data of the nodes and the wiring relationships between the nodes in the transmission line wiring diagram are processed by calling the pyautocad library and / or dxfwrite library and / or Pillow library in the Python programming language to write a program according to the transmission line wiring diagram drawing specifications. The entire transmission line wiring diagram is parametrically modeled through the program, and the parametric model of the entire transmission line wiring diagram is constructed. The information content of the structured data of the nodes is used as the part corresponding to the text annotation of the transmission line wiring diagram, and is added to the parametric model through the program, thereby determining the Python program for automatically drawing transmission line wiring diagrams.

[0039] The Python program for automatically drawing transmission line wiring diagrams includes a code block that reads structured data of nodes within a node range from a node database. The pyautocad library generates DWG files in AutoCAD, the dxfwrite library generates DXF files (open format) in AutoCAD, and the Pillow library generates image format files in AutoCAD. The pyautocad, dxfwrite, and Pillow libraries are all libraries in the Python programming language used to control AutoCAD software for automatic drawing. The parametric model is stored in YAML files and includes mechanical and electrical structure data of the nodes.

[0040] S5. After constructing the parameter model of the transmission line wiring diagram in the Python programming software and determining the Python program for automatically drawing the transmission line wiring diagram, construct the automatic drawing control interface of the AutoCAD software according to the ActiveX automation script protocol to pass the control parameters of the Python program for automatically drawing the transmission line wiring diagram to the AutoCAD software.

[0041] The AutoCAD software needs to remain open and not be occupied by other programs before receiving control parameters and during the automatic drawing process.

[0042] S6. The Python program that automatically draws the wiring diagram of the transmission line reads the structured data of all nodes within the node range and the wiring relationship between nodes, passes the corresponding parameters to the determined parameter model, and then the Python program that automatically draws the wiring diagram of the transmission line calls the AutoCAD software through the automatic drawing control interface to automatically draw according to the parameter model until the entire wiring diagram of the transmission line is drawn.

[0043] S7. Verify whether the transmission line wiring diagram containing text annotations needs to be updated; if it does not need to be updated, export the transmission line wiring diagram from AutoCAD software; if it needs to be updated, update the node database and adjust the corresponding parameter model required for the transmission line wiring diagram accordingly. Then, execute step S6 to automatically draw a new transmission line wiring diagram, and then export the transmission line wiring diagram from AutoCAD software.

[0044] Compared with the prior art, the automatic drawing method for transmission line wiring diagrams in this embodiment has the following advantages:

[0045] This embodiment achieves standardized and normalized drafting of transmission line wiring diagrams through automated drawing, using a unified standard for drawing transmission line wiring diagrams, thus avoiding discrepancies in manual drafting. The automated method not only significantly reduces the time required but also allows for timely updates and corrections of discrepancies between the wiring diagram content and actual site conditions, preventing misleading transmission line operation and maintenance personnel. The automatically generated transmission line wiring diagrams are transferable and easily modifiable, facilitating the management and updating of drawings.

[0046] The above embodiments are preferred embodiments of the present invention, but the embodiments of the present invention are not limited to the above embodiments. Any changes, modifications, substitutions, combinations, or simplifications made without departing from the spirit and principle of the present invention shall be considered equivalent substitutions and shall be included within the protection scope of the present invention.

Claims

1. A method for automatically drawing transmission line wiring diagrams, characterized in that, The steps include the following: The connection relationships between nodes in a transmission line are considered as the wiring relationships in the transmission line wiring diagram. Structured data of the nodes is collected, and then a node database is established to store the structured data of the nodes. The nodes include transmission towers, cable terminals, and substations. The information in the structured data includes the node's name, type, latitude and longitude, height, and phase sequence. Based on the requirements for drawing transmission line wiring diagrams, determine the range of nodes to be used in the node database for drawing transmission line wiring diagrams and the wiring relationships between nodes; Establish drawing standards for transmission line wiring diagrams, clarify the routing methods of wiring relationships and the layout requirements of nodes in the transmission line wiring diagrams, and then open Python programming software and AutoCAD drawing software; the layout methods include simulated manual layout and geographic location layout; the simulated manual layout method divides the wiring relationships between nodes into vertical arrangement or horizontal straight line arrangement; the geographic location layout method converts the geographic coordinates of the nodes into planar coordinates under the projected coordinate system and then scales them proportionally; Based on the constraints of the established transmission line wiring diagram drawing specifications, the Python programming language is used to process the structured data of the nodes and the wiring relationships between the nodes in the transmission line wiring diagram. The pyautocad library and / or dxfwrite library and / or Pillow library in the Python programming language are called to write the program according to the transmission line wiring diagram drawing specifications. Through the program writing, the entire transmission line wiring diagram is parametrically modeled, and the parametric model of the entire transmission line wiring diagram is constructed, thereby determining the Python program for automatically drawing transmission line wiring diagrams. After constructing the parametric model of the transmission line wiring diagram in the Python programming software and determining the Python program for automatically drawing the transmission line wiring diagram, an automatic drawing control interface for transmitting the control parameters of the Python program for automatically drawing the transmission line wiring diagram to the AutoCAD software is constructed according to the ActiveX automation script protocol. The Python program that automatically draws the wiring diagram of the transmission line reads the structured data of all nodes within the node range and the wiring relationship between the nodes, passes the corresponding parameters to the determined parameter model, and then the Python program that automatically draws the wiring diagram of the transmission line calls the AutoCAD software through the automatic drawing control interface to automatically draw the diagram until the entire wiring diagram of the transmission line is drawn. Verify whether transmission line wiring diagrams containing text annotations need to be updated; If no update is required, export the transmission line wiring diagram from AutoCAD software; if an update is required, update the node database and adjust the corresponding parameter models required for the transmission line wiring diagram accordingly. Then, execute the Python program that automatically draws the transmission line wiring diagram, which calls AutoCAD software through the automatic drawing control interface based on the parameter models, and then export the transmission line wiring diagram from AutoCAD software.

2. The method for automatically drawing transmission line wiring diagrams according to claim 1, characterized in that, The Python program for automatically drawing transmission line wiring diagrams includes a code block that reads structured data of nodes within a node range from a node database. The pyautocad library generates DWG files in AutoCAD software, the dxfwrite library generates DXF files (open format) in AutoCAD software, and the Pillow library generates image format files in AutoCAD software.

3. The method for automatically drawing transmission line wiring diagrams according to claim 1, characterized in that, The steps of a Python program that automatically draws transmission line wiring diagrams also include: The structured data of the nodes is used as textual annotations for the transmission line wiring diagram, and is also incorporated into the parameter model through programming.

4. The method for automatically drawing transmission line wiring diagrams according to claim 1, characterized in that, The AutoCAD software remains open and unused by other programs until it receives control parameters and during the automatic drawing process.

5. The method for automatically drawing transmission line wiring diagrams according to claim 1, characterized in that, After determining the range of nodes to be used for drawing transmission line wiring diagrams in the node database and the wiring relationships between nodes, the process further includes the following steps: The structured data within the node's scope is validated to determine whether the node's structured data is correct compared to the actual situation; if the node's structured data is incorrect, the node's structured data is modified to be correct. After verifying that everything is correct, proceed with writing the Python program to automatically draw the wiring diagram of the power transmission line.

Citation Information

Patent Citations

  • Web-based efficient flow chart drawing system and method

    CN105786526A

  • Power distribution network drawing modeling method and system, storage medium and computer equipment

    CN109947859A