Automatic drawing method for electrical secondary schematic diagram and terminal block diagram

By constructing standardized rule tables and terminal block databases, the circuit type is automatically identified and schematic diagrams and terminal block diagrams are drawn, which solves the problems of low standardization and insufficient data linkage in substation secondary design, realizes efficient and standardized drawing generation and consistency management, and promotes the digitalization and intelligentization of secondary design.

CN121997850APending Publication Date: 2026-05-08WUXI GUANGYING ELECTRIC POWER DESIGN CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511952439.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-23
Publication Date
2026-05-08

AI Technical Summary

Technical Problem

In the secondary design of substations, the drawing of secondary schematic diagrams and terminal block diagrams suffers from low standardization, lack of data linkage, large amount of repetitive work, and weak intelligent decision-making, resulting in poor design quality and consistency. Furthermore, the lack of a unified data model makes it difficult to achieve intelligent analysis and digital twin applications.

Method used

Construct a standardized rule table and terminal block database, integrate industry design specifications and typical circuit wiring logic, automatically identify circuit types, draw schematic diagrams according to standards and generate terminal block diagrams, establish dual-diagram data linkage, realize automatic synchronous updates and data consistency verification when information changes, and output standardized drawings and reports.

Benefits of technology

Significantly improve design efficiency, reduce human error rate, enhance design consistency and standardization, promote the digital and intelligent transformation of secondary design, support multi-platform integration and collaborative design, and form a sustainable digital knowledge base.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121997850A_ABST
    Figure CN121997850A_ABST
Patent Text Reader

Abstract

The invention relates to the field of automatic drawing, in particular to a method for automatically drawing an electrical secondary schematic diagram and a terminal strip diagram, which comprises the following steps of: constructing a standardized rule table and a terminal strip database, and integrating industry design specifications, typical loop wiring logic and all-type terminal strip attribute information to form a unified data support system; receiving an equipment list, a loop number, a terminal name, a terminal serial number and cable specification configuration data input by a user; the system matches the corresponding rule table, automatically identifies the type of the loop, draws a schematic diagram connecting line according to the standard, marks the number of the loop, and completes the generation of the schematic diagram; calling a terminal distribution strategy according to the schematic diagram wiring relation and the terminal definition, and generating standardized terminal row diagrams and outgoing lines in batches; establishing double-drawing data linkage, automatically and synchronously updating the drawing on the other side when any drawing information is changed, and checking data consistency; and outputting and completing standardized result delivery.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of automatic drawing, specifically relating to a method for automatically drawing electrical secondary schematic diagrams and terminal block diagrams. Background Technology

[0002] The following are the core issues in drawing secondary schematic diagrams and terminal block diagrams for substation secondary design: Design relies on individual experience and has a low degree of standardization: Secondary circuit design is highly dependent on engineers' understanding and application of typical drawings, industry specifications and manufacturer information, which leads to significant differences in the use of component symbols, circuit numbering rules and layout structure in drawings drawn by different people, making it difficult to achieve a unified standard output. The schematic diagram and terminal block diagram are separated and lack data linkage: Most design platforms treat the secondary schematic diagram and terminal block diagram as independent layers and process them separately. There is no underlying data connection between the two. When the schematic diagram changes, the terminal block needs to be manually adjusted, which can easily lead to omissions, misalignments, inconsistent numbering, and other problems, which seriously affect the design quality and consistency. The workload is repetitive and the level of automation is insufficient: For typical circuits with strong regularity, such as circuit breaker control, voltage switching, and star grounding of current transformers, although there are template characteristics, existing tools cannot effectively extract and reuse their wiring logic, and each item still needs to be drawn, resulting in a lot of inefficient repetitive work. Lack of a unified data model: The secondary equipment and its connection relationship have not established a structured semantic model. Information such as equipment attributes, terminal definitions, and cable routing are scattered in unstructured drawings, Excel spreadsheets, tables, or text descriptions, which cannot form a single reliable data source and restricts the development of subsequent intelligent analysis and digital twin applications. Weak intelligent decision-making and low rule integration: Although some BIM or EPC platforms have attempted to introduce parametric design concepts, they have not systematically integrated knowledge resources such as national / industry design specifications (DL / T 5136, Q / GDW 1807, etc.), cabinet layout constraints, and terminal allocation strategies in secondary professional fields, and lack the ability to automatically reason and generate instances based on rule engines. Summary of the Invention

[0003] The purpose of this invention is to provide an automatic drawing method for electrical secondary schematic diagrams and terminal block diagrams to solve the problems mentioned in the background art.

[0004] To solve the above-mentioned technical problems, the present invention provides the following technical solution: A method for automatically drawing electrical secondary schematic diagrams and terminal block diagrams includes the following steps: Construct a standardized rule table and terminal block database, integrate industry design specifications, typical circuit wiring logic and attribute information of all types of terminal blocks to form a unified data support system; Receive user input of device list, loop number, terminal name, terminal serial number, and cable specification configuration data; The system matches the corresponding rule table, automatically identifies the circuit type, draws the schematic connection lines according to the standard and labels the circuit number, and completes the schematic generation. Based on the wiring relationships and terminal definitions in the schematic diagram, the terminal allocation strategy is invoked to generate standardized terminal layout diagrams and lead wires in batches; Establish data linkage between the two drawings; when information on either drawing changes, the other drawing will be automatically updated and data consistency will be verified. Output DWG and PDF format drawings, as well as Excel versions of terminal block detail sheets and verification reports, to complete the delivery of standardized results.

[0005] Furthermore, the construction of the standardized rule table and terminal block database specifically involves integrating industry design specifications, sorting out typical secondary circuit wiring logic, defining the rule table to include core fields such as circuit type identifier and equipment mapping relationship, collecting terminal block information from all types of manufacturers, extracting their static and dynamic attributes, establishing identification logic and standardized generation methods, transforming terminal blocks from different manufacturers into a unified standard form, and integrating the two types of data to form a unified data support system.

[0006] Furthermore, the process of receiving user input of device list, loop number, terminal name, terminal serial number, and cable specification configuration data specifically involves the user calling the "Insert Device Box" command through the graphical interface, selecting a device from a preset standardized device library or drawing it freely, customizing the device size, number of pins, and orientation, and entering the loop number, terminal names and serial numbers on both sides, and cable specifications in the loop information configuration dialog box. The system provides input verification, and after the input is completed, the data is stored in the local memory cache, automatically establishing a preliminary association between device terminals and loop information.

[0007] Furthermore, the system matches the corresponding rule table and automatically identifies the loop type. Specifically, the system extracts the configuration data from the cache, calls the rule table management engine to load the standardized rule table, extracts the loop type identifier from the table, compares the user input information with the identifier, and uses terminal name naming characteristics and cable specification parameter characteristics for auxiliary verification. The system matches the corresponding rule table entries to determine the loop type, and the identification result is fed back to the schematic generation module in real time.

[0008] Furthermore, the step of drawing schematic connection lines according to standards and labeling circuit numbers to complete schematic generation involves the system acquiring two matched and locked target terminal objects, determining the connection line type, calculating the optimal path and automatically avoiding existing components, labeling circuit numbers beside the lines, checking the integrity of the connection lines after drawing, synchronizing the schematic data to the intermediate data model, and establishing a connection with the terminal block diagram data.

[0009] Furthermore, based on the schematic wiring relationships and terminal definitions, the system calls the terminal allocation strategy to generate standardized terminal block diagrams and leads in batches. Specifically, the system extracts schematic wiring relationships and terminal definition data from the intermediate data model, calls the rule table terminal allocation strategy, and allocates terminals according to the cabinet layout, functional zones, and circuit associations, reserving redundancy. It matches the terminal types, calls the template library to generate standardized terminal block diagrams in batches, reads the circuit connection relationships to calculate the optimal path for the leads and draws it according to the standard, labels the cable numbers and routing arrows, adjusts the terminal block spacing to avoid lead crossings, and after checking the integrity of the diagrams, synchronizes the data to the intermediate model to establish a bidirectional association.

[0010] Furthermore, the establishment of dual-drawing data linkage means that when information in either drawing changes, the other drawing is automatically updated synchronously, and data consistency is verified. Specifically, the user triggers editing by double-clicking the schematic connection line or the terminal block circuit number. The system uses a unified intermediate data model to locate the global record of the circuit, detect the changed content and its impact range, start the bidirectional synchronization engine to update the corresponding information in the other drawing, call compliance verification items for logical verification, generate a visual comparison result and pop up a confirmation prompt, synchronously record the change log, and provide warnings and rectification suggestions when violations occur.

[0011] Furthermore, the output of DWG and PDF format drawings, as well as Excel versions of terminal block detail tables and verification reports, completes the delivery of standardized results. Specifically, the user calls the system output command, the system reads relevant information from the intermediate data model, and generates DWG drawings, PDF files, Excel detail tables containing key information on terminals and circuits, and reports containing compliance and data consistency verification results.

[0012] This application also discloses an electronic device, including: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, which, when executed by the at least one processor, enables the at least one processor to perform the above-described method for automatically drawing electrical secondary schematic diagrams and terminal block diagrams according to the present invention.

[0013] Beneficial effects: Significantly improved design efficiency: The drawing generation time for typical secondary circuits has been reduced from several hours in the traditional model to within minutes, shortening the overall design cycle and making it particularly suitable for the rapid drawing requirements of large-scale substation projects; Significantly reduced human error rate: Through rule constraints and automatic verification mechanisms, common problems such as missing wires, incorrect connections, and inconsistent numbering are effectively avoided, improving the first-time pass rate of drawings and significantly reducing rework costs; Enhanced design consistency and standardization: All drawings are generated based on a unified rule base, ensuring style consistency and naming conventions across the same project and even different projects, facilitating review, archiving, and maintenance access; Structured design knowledge accumulation Accumulation and Reuse: Rule tables, as enterprise-level knowledge assets, can continuously accumulate typical design solutions, forming a sustainably evolving digital knowledge base, reducing reliance on senior engineers and improving the team's overall design capabilities; Promoting the Digital and Intelligent Transformation of Secondary Design: A complete data loop from "functional logic → physical wiring → graphical representation" has been constructed, laying a solid foundation for subsequent access to advanced application scenarios such as 3D, BIM, digital twin platforms, and intelligent operation and maintenance systems; Supporting Multi-Platform Integration and Collaborative Design: Open data interfaces make it easy to interface with management systems such as PMS, ERP, and EIM, helping to create an integrated intelligent design ecosystem. Attached Figure Description

[0014] Figure 1 This is a flowchart of a method for automatically drawing electrical secondary schematic diagrams and terminal block diagrams according to the present invention; Figure 2 This invention provides a terminal block information processing flow for an automatic drawing method of electrical secondary schematic diagrams and terminal block diagrams. Figure 3 This is a flowchart illustrating the automatic drawing program implementation of an automatic drawing method for electrical secondary schematic diagrams and terminal block diagrams according to the present invention. Detailed Implementation

[0015] The technical solutions of the present invention will be clearly and completely described below with reference to the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present invention.

[0016] First, the terms used in this application are explained as follows: Secondary drawings: Electrical schematic diagrams of the connection relationships of secondary equipment in substations, including terminal block diagrams, wiring diagrams, and schematic diagrams; Schematic diagram: A secondary drawing used to describe the actual connection relationships and electrical structure between devices, labeling information such as the corresponding devices, circuit numbers, and terminal numbers according to rules. Terminal blocks: Terminal blocks used in electrical equipment to connect external cables, arranged according to rules and labeled with numbers, functions, and other information. This invention provides a method for automatically drawing electrical secondary schematic diagrams and terminal block diagrams, such as... Figures 1-3 As shown, the steps include: Construct a standardized rule table and terminal block database, integrate industry design specifications, typical circuit wiring logic and attribute information of all types of terminal blocks to form a unified data support system; Receive user input of device list, loop number, terminal name, terminal serial number, and cable specification configuration data; The system matches the corresponding rule table, automatically identifies the circuit type, draws the schematic connection lines according to the standard and labels the circuit number, and completes the schematic generation. Based on the wiring relationships and terminal definitions in the schematic diagram, the terminal allocation strategy is invoked to generate standardized terminal layout diagrams and lead wires in batches; Establish data linkage between the two drawings; when information on either drawing changes, the other drawing will be automatically updated and data consistency will be verified. Output DWG and PDF format drawings, as well as Excel versions of terminal block detail sheets and verification reports, to complete the delivery of standardized results.

[0017] The construction of standardized rule tables and terminal block databases involves integrating industry design specifications, typical circuit wiring logic, and attribute information for all types of terminal blocks to form a unified data support system. Specifically, this includes integrating industry design specifications such as DL / T5136 and Q / GDW1807, and clarifying the wiring logic of typical secondary circuits, including circuit types such as circuit breaker control, voltage switching, current transformers, and star grounding. Core fields of the rule tables are defined, including circuit type identifiers, signal source-target device mapping relationships, terminal allocation strategies, graphical layout parameters, and compliance verification items. Rule table data is stored in XML or JSON format, supporting user-defined extensions and version management. Terminal block information from commonly used manufacturers is collected, covering all types of terminal blocks. Static attributes of the terminal blocks are extracted, including terminal name, terminal serial number, and preset circuit number.

[0018] Extract the dynamic attributes of terminal blocks, including internal terminal numbers and remarks, establish identification logic for various types of terminal blocks, analyze the internal structure of terminal blocks, formulate standardized generation methods for terminal blocks, transform terminal blocks from different manufacturers into a unified standard form, and integrate rule tables with terminal block data to form a unified data support system.

[0019] The system receives user-inputted equipment list, loop number, terminal name, terminal serial number, and cable specification configuration data. Specifically, in implementation, the user invokes the "Insert Device Frame" command through a graphical interface, selects the target device from a pre-defined standardized equipment library (including protection devices, control boxes, etc.), or freely draws the device frame, customizing the device size, pin quantity, and orientation. In the loop information configuration dialog box, the user enters the loop number, then sequentially enters the terminal names for one side and the opposite side, fills in the terminal serial numbers for both sides, and explicitly enters the cable specification parameters. The system provides input validation, prompting for missing required fields. Batch import of equipment lists using Excel format files is supported. Imported data includes equipment name, model, quantity, etc. After input, the system stores the data in the local memory cache and automatically establishes a preliminary association between equipment terminals and loop information.

[0020] The system matches corresponding rule tables and automatically identifies circuit types. Specifically, in implementation, the system extracts configuration data from its local memory cache, including circuit number, terminal name, terminal sequence number, and cable specifications. The system then calls the rule table management engine to load the pre-built standardized rule tables. The system extracts the circuit type identifier field from the rule tables, compares the user-input circuit number with the circuit type identifier in the rule tables, uses the naming characteristics of the terminal names for assistance, and further verifies the results by referring to the parameter characteristics of the cable specifications. If a completely matching rule table entry is found, the circuit type is automatically determined. Circuit types include circuit breaker control circuits, voltage switching circuits, current transformers, star grounding circuits, etc. For user-defined extended rule table entries, the system also performs the matching process, and the identification results are fed back to the schematic generation module in real time to ensure that the identification results accurately correspond to subsequent drawing rules.

[0021] The process of drawing schematic connection lines and labeling loop numbers according to standards to generate the schematic diagram involves the system acquiring two target terminal objects locked by the matching engine, determining the connection line type according to the GB / T4728 standard (solid lines for hard contacts and dashed lines for signal transmission paths), calculating the optimal path for the connection lines, automatically avoiding existing components, and preventing connection line crossings and overlaps. Loop numbers are labeled next to the lines, with the numbers positioned close to the middle of the connection line to ensure clear visibility. After drawing, the system automatically checks the integrity of the connection lines to confirm that there are no breaks or omissions. The generated schematic diagram data is then synchronized to the intermediate data model, establishing a connection between the schematic diagram data and the terminal block diagram data, providing a data foundation for subsequent bidirectional linkage updates.

[0022] Based on the schematic diagram wiring relationships and terminal definitions, the system calls the terminal allocation strategy to generate standardized terminal block diagrams and lead wires in batches. Specifically, in implementation, the system extracts the schematic diagram wiring relationships from the intermediate data model, including terminal names, terminal numbers, cable specifications, and other information on both sides; extracts terminal definition data, including static and dynamic attributes of the terminals; calls the terminal allocation strategy in the rule table, allocates terminal positions according to the cabinet space layout parameters and functional area division principles, arranging them sequentially in the control area, power area, signal area, and spare area, giving priority to circuit correlation, arranging terminals of the same circuit adjacently, reserving redundant terminals, and executing the ratio according to the preset parameters in the rule table.

[0023] The system calls the terminal block template library to match the terminal type and select the corresponding standard graphic. Ordinary terminals, test terminals, and isolation terminals each use their respective templates to generate standardized terminal block graphics arranged vertically in batches. The terminal numbers increment according to the sorting strategy set in the rule table. The system reads the circuit connection relationship between the schematic diagram and the terminal block and calculates the optimal path for the lead wires. The lead wires are drawn according to the GB / T4728 standard, using solid lines to represent physical connections. The system automatically adjusts the spacing between terminal blocks to ensure that the lead wires do not cross or overlap. Cable numbers are marked on the lead wires, positioned close to the terminal block end for clear identification, and directional arrows are marked to indicate the signal transmission direction, pointing towards the opposite device. After generation, the system checks the completeness of the terminal block graphics to confirm that there are no missing terminals or graphic errors. The terminal block diagram data is synchronized to the intermediate data model, establishing a two-way association with the schematic diagram data, providing support for subsequent data linkage updates.

[0024] The system establishes a dual-drawing data linkage mechanism. When information on either drawing changes, the other drawing is automatically updated synchronously, and data consistency is verified. Specifically, in implementation, the user double-clicks a connection line in the schematic diagram or a loop number in the terminal block diagram to trigger an edit operation. The system uses a unified intermediate data model to locate the global record of that loop and automatically detects changes, including cable specifications, loop number, terminal name, and terminal sequence number. The system analyzes the scope of the change's impact, determines the associated data objects on the other drawing, and activates the bidirectional synchronization engine. Based on the relationships in the intermediate data model, it updates the corresponding connection lines, annotation information, and terminal attributes on the other drawing. It then calls compliance verification items from the rule table to perform logical verification on the updated data. Verification includes the uniqueness of the loop number, the rationality of the terminal allocation, and the cable specification matching degree. A visual comparison result is generated, clearly showing the differences before and after the change.

[0025] The system displays a confirmation window for the user to view and confirm the changes. After user confirmation, the system saves the update results and completes two-way synchronization. If any violations are found during verification, the system displays a warning message and recommends corrective measures. During the synchronization process, a change log is automatically recorded, including timestamps, operators, changes, and affected areas. The system ensures that the equipment information, wiring relationships, and labeling in the schematic diagram and terminal block diagram are completely consistent, with no omissions, misalignments, or numbering conflicts.

[0026] The output includes DWG and PDF format drawings, as well as an Excel version of the terminal block detail sheet and verification report, completing the standardized deliverables. Specifically, in implementation, the user calls the system's output command, and the system reads the drawing data and related configuration information from the intermediate data model to generate DWG format schematic diagrams and terminal block diagrams. The DWG format is compatible with mainstream AutoCAD versions, retains complete layer attributes, and supports subsequent editing operations. A PDF file is generated using vector graphics technology to ensure clarity remains unchanged after scaling, facilitating viewing and sharing. An Excel version of the terminal block detail sheet is generated, including terminal name, terminal number, preset circuit number, opposite terminal name, opposite terminal number, cable specifications, functional description, and remarks. A verification report is generated, including compliance verification results, clarifying whether it complies with industry standards such as DL / T5136 and Q / GDW1807, listing details of violations and corresponding rectification suggestions. The report also includes data consistency verification results, confirming that the equipment information, wiring relationships, and annotations in the schematic diagram and terminal block diagram are completely consistent. Batch output of multiple drawings and supporting files is supported.

[0027] The system automatically names files by project number to avoid naming conflicts. Users can customize the output path or use the system's default project folder path. After output is complete, the system will pop up a prompt window to show the save location of all files. It supports direct triggering of the print function, adapts to common printing specifications for engineering drawings, and the output files include metadata, including project name, designer, output time, and version number, which facilitates archiving management and traceability. All deliverables conform to industry delivery standards and can be directly used for construction, review, and archiving.

[0028] This application proposes an automatic drawing method for electrical secondary schematic diagrams and terminal block diagrams. Through a standardized operation chain of "standardized reconstruction of manufacturer terminal blocks + standardized insertion of schematic diagram circuit information + batch generation of both sides", it realizes bidirectional coupling between schematic diagrams and terminal block diagrams in secondary drawing. Based on a rule table comprehensively designed by industry design standards (such as DL / T 5136-2012 "Technical Specification for Secondary Wiring Design of Thermal Power Plants and Substations") and customized user habits, it draws circuit information such as target equipment and circuit numbers in the schematic diagram and generates standardized terminal block circuit leads in batches, thus realizing a technical closed loop.

[0029] (1) A database of terminal blocks from all manufacturers. Based on the terminal block drawing logic of commonly used manufacturers, a database of different identification logics and standardized generation methods covering all types of terminal blocks is established. Based on the necessary static attributes of terminal block information (terminal name, terminal serial number, preset circuit number) and possible dynamic attributes (internal terminal number, remarks and description information), the database intelligently determines the structural form of the manufacturer's terminal block, analyzes its internal content, and transforms it into a standard form that meets user needs, thus realizing the reconstruction of the terminal block. (2) Secondary Design Rule Table Definition and Management Engine. A structured rule table mechanism is established to describe the wiring logic and drawing specifications of various typical secondary circuits. The rule table includes several components such as the naming principles for three-phase power supply circuits, communication circuits, and optical circuits / optical ports; (3) Automatic schematic drawing. Based on the input device list and circuit configuration information, the system automatically identifies the circuit type and calls the corresponding rule table. According to the component combination logic and connection relationship in the rules, the system automatically draws the connection lines on the graphics platform based on the device frame drawn by the user and the terminal symbols to be connected. It supports creating new circuits directly by inserting circuit numbers into existing graphics, improving drawing efficiency; (4) Terminal block diagram generation. Based on the wiring relationship of the schematic diagram and the equipment terminal definition information, combined with the cabinet space layout and terminal block configuration parameters, the terminal allocation algorithm in the rule table is called to automatically generate the terminal block wiring diagram, and the circuit information such as cable number, opposite equipment, signal name, and function description is marked. (5) Achieve bidirectional data synchronization. Construct a unified data intermediate model to achieve bidirectional synchronization between schematic diagrams and terminal block diagrams. If any drawing is modified (e.g., changing cable information, modifying terminal names, etc.), the system automatically detects the affected area, triggers incremental updates to the other drawing, and provides visual comparison and confirmation prompts to ensure bidirectional data synchronization. Figure 1 To the point of being compatible; (6) Output standardized deliverables. Finally, secondary schematic diagrams and terminal block diagrams in DWG, PDF and other formats are generated, along with Excel versions of terminal block detail sheets, cable lists and verification reports, supporting archiving and construction applications.

[0030] The specific implementation process of this application will be described in detail below with reference to the accompanying drawings.

[0031] Example 1: Schematic circuit drawing method Step 1: Insert the free device frame Users can invoke the "Insert Device Frame" command provided by this invention in the AutoCAD drawing interface, select the target device (such as a protective device, control box, etc.) from the preset standardized device library or draw it freely, and drag it to the drawing area in the form of a device frame. The system supports customizing device size, number of pins, and orientation.

[0032] Step 2: Select a wide range of terminal symbols and terminal numbers. The user selects all terminal symbols to be connected and their corresponding terminal number texts (such as XT1, RD10, etc.) within the current drawing or a specified area. The system uses a graphic recognition algorithm to extract the boundaries of the terminal symbols and the positions of the associated text, establishing a preliminary "terminal number-text" pairing table.

[0033] Step 3: Input loop information A "Circuit Information Configuration" dialog box will pop up. The user enters the following circuit-related information in sequence: Circuit number (e.g., K101) Terminal name on one side (e.g., "MHW:TRIP") Terminal number on one side (e.g., "ZD3") The terminal name on the opposite side (e.g., "POV:TQ") The terminal number on the opposite side (e.g., "XD5") Cable specifications (e.g., KVVP-4×1.5) The above information constitutes a complete loop connection record, which is stored in the local memory cache.

[0034] Step 4: Automatically match the selected terminal symbols and terminal names based on the circuit information. The system activates the matching engine, performing a fuzzy search and precise location within the selected terminal set based on the input terminal names and serial numbers. A string similarity algorithm (Levenshtein Distance) is used to handle naming discrepancies (such as "TRIP" and "Trip"), and spatial proximity is combined to determine the likelihood of their physical connection, ultimately identifying the two target terminal objects.

[0035] Step 5: Generate schematic connection lines Based on the matching results, the system automatically generates connecting wires conforming to the GB / T 4728 standard (solid lines represent hard contacts, and dashed lines represent signal transmission paths). The loop number (K101) is also labeled next to the wire. The connecting wires automatically avoid existing components to prevent crossing or overlapping.

[0036] This completes the drawing of a full secondary control loop in the schematic diagram. The entire process requires no manual wiring, significantly improving drawing efficiency.

[0037] Example 2: Terminal Block Diagram Generation Method Step 1: Select the source of the terminal block to be extracted Users can choose from two data source options: Within the current file: Directly select the terminal blocks that exist in the current DWG drawing; Import other files: Supports importing other DWG files containing terminal block diagrams.

[0038] After parsing the source data, the system extracts all relevant terminal block names (such as PH1, XT2, XD3, etc.) and their subordinate terminal lists.

[0039] Step 2: Automatically identify and extract terminal ranking information and sort the list according to rules. The system calls the built-in terminal block information parsing engine to decompose the original terminal block content (such as "01A", "A106", "MHW:TRIP") and identify and separate various information such as: terminal serial number (01~999, 01A), terminal name (MHW:TRIP), preset circuit number (A106), and remarks. Then, a unified terminal block index list is generated according to the preset sorting strategy, and a mapping relationship table is established in the background.

[0040] Step 3: Select the terminal block to be extracted Users can select the target terminal blocks to be generated (such as PH1, PH2) in the generated terminal block ranking list. Multiple selections are allowed, and the direction of the lead wires of the terminal blocks can be adjusted based on the automatic generation.

[0041] Step 4: Batch generation of standard terminal blocks The system calls the "terminal strip template library" and automatically generates a standard terminal strip graphic arranged vertically based on the selected type (ordinary terminal, test terminal, isolation terminal, etc.).

[0042] Step 5: Simultaneously select the drawn schematic diagram and terminal block diagram, and generate the terminal block leads based on the circuit information. The user selects the completed schematic area and the corresponding terminal block diagram, and clicks the "Generate Leads" command. The system reads the loop connection relationship between the two, automatically adjusts the spacing between all standard terminal blocks, automatically draws the guide lines from the schematic component contacts to the corresponding positions on the terminal blocks, and labels the cable numbers and routing arrows, forming a complete wiring guide view.

[0043] Example 3: Data coupling between the schematic diagram and the terminal block diagram, with real-time synchronization for modifications. Step 1: In the schematic diagram, click on the device box or circuit number, or in the terminal block diagram, click on the circuit number to enter the modification mode. Users can trigger editing operations on either side of the drawing: Double-clicking a connection line (such as K101) in the schematic diagram will bring up the circuit editing window; Alternatively, double-click a circuit number in the terminal block diagram to open the circuit information editing window.

[0044] The system locates the global record of the loop through a shared intermediate data model.

[0045] Step 2: Modify cable specifications, loop number, and other loop information. Users can change any field in the pop-up editing interface, for example: The original cable specification "KVVP-4×1.5" was changed to "ZRC-KVVP-6×2.5"; The loop number "K101" has been corrected to "K102"; Additional notes: "With fire-retardant properties".

[0046] The system backend marks this modification as an "event to be synchronized" and records the values ​​before and after the change.

[0047] Step 3: Data on both sides are modified simultaneously. After the system detects a change in loop information, it immediately starts the bidirectional synchronization engine and performs the following operations: Update the labeling of the corresponding connection lines in the schematic diagram; Modify the cable numbers and notes for the relevant terminals in the terminal block diagram; If terminal position adjustments are involved (such as adding more cores resulting in more terminals being occupied), the affected areas will be automatically rearranged. Modification logs are automatically written to the project database, including timestamps, operators, and change summaries.

[0048] This invention realizes a shift from "manual-driven" to "rule-driven + data-linked" in the field of substation secondary design automation. The core technological breakthroughs are reflected in the following aspects: (1) Knowledge modeling mechanism based on rule table To address the issues of high reliance on experience and low standardization in secondary circuit design, a method for structurally expressing engineering design knowledge is proposed. By constructing a configurable rule table model, implicit experiences such as wiring logic, terminal allocation strategies, and graphical layout parameters of typical circuits are transformed into explicit, executable, and reusable digital rules, enabling the systematic accumulation and intelligent retrieval of design knowledge.

[0049] (2) Two-way data linkage architecture between schematic diagram and terminal block diagram Breaking away from the limitations of fragmented drawings in traditional CAD environments, a unified semantic model of equipment and intermediate database of connection relationships are established to achieve bidirectional synchronous updates of secondary schematic diagrams and terminal block diagrams. When the circuit information on either side changes, the system can automatically identify the scope of impact and trigger incremental reconstruction on the other side, ensuring data consistency and version traceability across multiple views.

[0050] (3) Rule-driven automatic drawing generation engine An automatic graph generation algorithm based on rule matching and template invocation is designed to generate standardized graphs for typical circuits (such as circuit breaker control, voltage switching, and signal uploading) without manual intervention. The engine supports multi-level rule priority judgment, conflict resolution, and anomaly alerts, exhibiting good robustness and adaptability.

[0051] (4) Embedded compliance verification and intelligent error correction capabilities Incorporate national and industry design standards (such as DL / T 5136, Q / GDW 1807), cabinet layout constraints, and strong and weak current isolation principles into the verification rule base. Perform logical rationality analysis in real time during the drawing generation process, proactively warn and recommend correction schemes when potential errors are found, significantly improving design safety and first-time pass rate.

[0052] (5) Scalable terminal block intelligent layout strategy A functional zoning-oriented automatic terminal block arrangement method is proposed. It comprehensively considers factors such as signal type (control, power, signal, spare), loop correlation, and redundancy reservation to dynamically optimize the spatial distribution of terminals, avoid the chaos caused by arbitrary wiring, and improve wiring construction efficiency and maintenance convenience.

[0053] The aforementioned core key points together constitute the technical basis of this invention, solving long-standing pain points in the prior art such as "fragmented drawings, low efficiency, frequent errors, and difficulty in knowledge transfer," and have significant technical advancement and engineering practicality.

[0054] This application also provides an embodiment of an electronic device. The electronic device is manifested in the form of a general-purpose computing device. The components of the electronic device may include, but are not limited to: one or more processors or processing units, memory, and buses connecting different components (including memory and processing units).

[0055] A bus refers to one or more of several bus architectures, including memory buses or memory controllers, peripheral buses, graphics acceleration ports, processors, or local buses using any of the various bus architectures. Examples of these architectures include, but are not limited to, Industry Standard Architecture (ISA) buses, Micro Channel Architecture (MCA) buses, Enhanced ISA buses, Video Electronics Standards Association (VESA) local buses, and Peripheral Component Interconnect (PCI) buses.

[0056] Electronic devices typically include a variety of computer-readable media. These media can be any available media that can be accessed by the electronic device, including volatile and non-volatile media, and removable and non-removable media.

[0057] The memory may include computer-readable media in the form of volatile memory, such as random access memory (RAM) and / or cache memory. Electronic devices may further include other removable / non-removable, volatile / non-volatile computer device storage media. By way of example only, the storage system may be used to read and write non-removable, non-volatile magnetic media.

[0058] The electronic device can also communicate with one or more external devices (e.g., keyboard, pointing device, camera, etc.), may include a display, and may communicate with one or more devices that enable a user to interact with the electronic device, and / or with any device that enables the electronic device to communicate with one or more other computing devices (e.g., network card, modem, etc.). This communication can be performed via an input / output (I / O) interface. Furthermore, the electronic device can communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN)) and / or public networks, such as the Internet) via a network adapter. The network adapter communicates with other modules of the electronic device via a bus. The processor executes various functional applications and data processing by running programs stored in memory, such as implementing the automatic drawing method for electrical secondary schematic diagrams and terminal block diagrams provided in the above embodiments of the present invention.

[0059] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing embodiments or make equivalent substitutions for some of the technical features. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

Claims

1. A method for automatically drawing electrical secondary schematic diagrams and terminal block diagrams, characterized in that, Includes the following steps: Construct a standardized rule table and terminal block database, integrate industry design specifications, typical circuit wiring logic and attribute information of all types of terminal blocks to form a unified data support system; Receive user input of device list, loop number, terminal name, terminal serial number, and cable specification configuration data; The system matches the corresponding rule table, automatically identifies the circuit type, draws the schematic connection lines according to the standard and labels the circuit number, and completes the schematic generation. Based on the wiring relationships and terminal definitions in the schematic diagram, the terminal allocation strategy is invoked to generate standardized terminal layout diagrams and lead wires in batches; Establish data linkage between the two drawings; when information on either drawing changes, the other drawing will be automatically updated and data consistency will be verified. Output DWG and PDF format drawings, as well as Excel versions of terminal block detail sheets and verification reports, to complete the delivery of standardized results.

2. The method for automatically drawing electrical secondary schematic diagrams and terminal block diagrams according to claim 1, characterized in that, The construction of the standardized rule table and terminal block database involves, in particular, integrating industry design specifications, sorting out typical secondary circuit wiring logic, defining the rule table to include core fields such as circuit type identifier and equipment mapping relationship, collecting terminal block information from all types of manufacturers, extracting their static and dynamic attributes, establishing identification logic and standardized generation methods, transforming terminal blocks from different manufacturers into a unified standard form, and integrating the two types of data to form a unified data support system.

3. The method for automatically drawing electrical secondary schematic diagrams and terminal block diagrams according to claim 1, characterized in that, The process of receiving user-inputted device list, loop number, terminal name, terminal serial number, and cable specification configuration data specifically involves the user calling the "Insert Device Box" command through the graphical interface, selecting a device from a preset standardized device library or drawing it freely, and customizing the device size, number of pins, and orientation. In the loop information configuration dialog box, the user enters the loop number, terminal names and serial numbers on both sides, and cable specifications. The system provides input verification, and after the input is completed, the data is stored in the local memory cache, automatically establishing a preliminary association between the device terminals and loop information.

4. The method for automatically drawing electrical secondary schematic diagrams and terminal block diagrams according to claim 1, characterized in that, The system matches the corresponding rule table and automatically identifies the circuit type. Specifically, the system extracts the configuration data from the cache, calls the rule table management engine to load the standardized rule table, extracts the circuit type identifier from the table, compares the user input information with the identifier, and uses terminal name naming characteristics and cable specification parameter characteristics for auxiliary verification. The system matches the corresponding rule table entries to determine the circuit type, and the identification result is fed back to the schematic generation module in real time.

5. The method for automatically drawing electrical secondary schematic diagrams and terminal block diagrams according to claim 1, characterized in that, The process of drawing schematic connection lines according to standards and labeling circuit numbers to complete schematic generation involves the system acquiring two matched and locked target terminal objects, determining the connection line type, calculating the optimal path and automatically avoiding existing components, labeling circuit numbers beside the lines, checking the integrity of the connection lines after drawing, synchronizing the schematic data to the intermediate data model, and establishing a connection with the terminal block diagram data.

6. The method for automatically drawing electrical secondary schematic diagrams and terminal block diagrams according to claim 1, characterized in that, Based on the schematic diagram wiring relationships and terminal definitions, the system calls the terminal allocation strategy to generate standardized terminal block diagrams and leads in batches. Specifically, the system extracts schematic diagram wiring relationship and terminal definition data from the intermediate data model, calls the rule table terminal allocation strategy, and allocates terminals according to the cabinet layout, functional areas, and circuit associations, while reserving redundancy. It matches the terminal type, calls the template library to generate standardized terminal block graphics in batches, reads the circuit connection relationship to calculate the optimal path of the leads and draws it according to the standard, labels the cable number and direction arrow, adjusts the terminal block spacing to avoid lead crossing, and after checking the integrity of the graphics, synchronizes the data to the intermediate model to establish a bidirectional association.

7. The method for automatically drawing electrical secondary schematic diagrams and terminal block diagrams according to claim 1, characterized in that, The system establishes a dual-drawing data linkage mechanism. When information on either drawing changes, the other drawing is automatically updated synchronously, and data consistency is verified. Specifically, the user triggers editing by double-clicking the schematic connection line or the terminal block circuit number. The system uses a unified intermediate data model to locate the global circuit record, detects the changed content and its impact, starts the bidirectional synchronization engine to update the corresponding information on the other drawing, calls compliance verification items for logical verification, generates a visual comparison result and pops up a confirmation prompt, synchronously records the change log, and provides warnings and rectification suggestions when violations occur.

8. The method for automatically drawing electrical secondary schematic diagrams and terminal block diagrams according to claim 1, characterized in that, The output of DWG and PDF format drawings, as well as Excel versions of terminal block detail tables and verification reports, completes the delivery of standardized results. Specifically, the user calls the system to output commands, the system reads relevant information from the intermediate data model, and generates DWG drawings, PDF files, Excel detail tables containing key information on terminals and circuits, and reports containing compliance and data consistency verification results.