Electrical wiring diagram design method and device, electronic equipment and storage equipment

By automatically extracting the components and wiring information in the electrical connection logic data file and generating electrical wiring diagrams, the problems of large workload, slow design progress and error-prone caused by manual drawing of wiring diagrams in the prior art are solved, and efficient and accurate wiring diagram design is achieved.

CN119692293APending Publication Date: 2025-03-25利驰数字科技(苏州)有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411859810.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-17
Publication Date
2025-03-25

AI Technical Summary

Technical Problem

During the existing electrical design process, the wiring diagram needs to be manually drawn after the electrical schematic drawing is completed, resulting in large workload, slow design progress and error-prone.

Method used

By obtaining data files with electrical connection logic recorded, component information and wiring information are automatically extracted, the material stamps and connection lines are determined based on this information, the stamp layout structure is adjusted, and the material stamps, connection lines and text to be marked are displayed in the electrical wiring diagram.

Benefits of technology

Automatically generate wiring diagrams, avoiding errors caused by manual drawing copying, reducing production costs, optimizing the design process, and improving design efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119692293A_ABST
    Figure CN119692293A_ABST
Patent Text Reader

Abstract

The invention discloses an electrical wiring diagram design method and apparatus, an electronic device and a storage device. The method comprises the steps of obtaining a data file recorded with electrical connection logic; acquiring element information and wiring information based on the data file; determining a target material and a material stamp corresponding to the target material according to the element information; according to the wiring information, determining connecting lines corresponding to different end numbers in the material stamp and to-be-labeled texts corresponding to the connecting lines; and adjusting a stamp layout structure according to the material stamp and the wiring diagram constraint information, and displaying the material stamp, the connecting line and the to-be-labeled text in the electrical wiring diagram. The wiring diagram is automatically generated by importing the data file, errors caused by manual drawing are avoided, the production cost is effectively reduced, schematic diagram drawing work is omitted, the design process is optimized, and the design efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of automated design technology, and in particular to an electrical wiring diagram design method, device, electronic equipment and storage device. Background Art

[0002] In the production process of electrical cabinets, electrical wiring diagrams are usually used to help operators quickly understand the wiring information corresponding to the electrical schematic diagram. The electrical wiring diagram assists operators in completing wiring work by separately drawing the electrical branches, wiring wire diameters, wiring colors, and opposite-end wiring information contained in each component.

[0003] In the existing electrical design process, the front-end electrical design and the back-end wiring construction work are separated. Therefore, after completing the drawing of the electrical schematic diagram, the designer needs to manually draw the wiring diagram again according to the content of the schematic diagram, which is a large workload and slows down the project progress. If there are drawing errors in the front-end electrical schematic diagram, the wiring diagram needs to be modified in a timely and accurate manner, otherwise the wiring errors of the electrical cabinet are likely to occur. Summary of the invention

[0004] The present invention provides an electrical wiring diagram design method, device, electronic device and storage device to solve the problem that in the existing electrical design, a construction wiring diagram needs to be manually drawn after the electrical schematic diagram is drawn, resulting in a large workload, slow design progress and easy errors, thereby improving the design efficiency.

[0005] According to one aspect of the present invention, there is provided a method for designing an electrical wiring diagram, comprising: obtaining a data file recording electrical connection logic; obtaining component information and wiring information based on the data file; determining a target material and a material stamp corresponding to the target material according to the component information; determining connecting lines corresponding to different terminal numbers in the material stamp and text to be annotated corresponding to the connecting lines according to the wiring information; adjusting a stamp layout structure according to the material stamp and wiring diagram constraint information, and displaying the material stamp, the connecting lines and the text to be annotated in an electrical wiring diagram.

[0006] Optionally, acquiring component information and wiring information based on the data file includes: identifying a first data source associated with the component to be drawn and a second data source logically associated with the component wiring based on the data file; generating the component information based on data extracted from the first data source; generating the wiring information based on data extracted from the second data source; wherein, when the component to be drawn is a terminal block, the component information includes at least a terminal number and a terminal style.

[0007] Optionally, the first data source records at least one of the following data: project code, component name, component number, component model, component manufacturer, component type, component style and the panel to which the component belongs; the second data source records at least one of the following data: first connection point project code, first connection point terminal number, second connection point project code, second connection point terminal number, first connection point terminal model, second connection point terminal model, wire number, wire diameter and casing color.

[0008] Optionally, the wiring diagram constraint information includes: a frame size, a stamp spacing threshold, and a spacing threshold between annotations and connecting lines; adjusting the stamp layout structure according to the material stamp and the wiring diagram constraint information, and displaying the material stamp, the connecting lines and the text to be annotated in the electrical wiring diagram, includes: determining the placement position of the material stamp according to the frame size, the material stamp and the stamp spacing threshold; adding the connecting line to the corresponding position of the material stamp based on the corresponding relationship between the connecting line and the terminal number; adding the text to be annotated to the corresponding position of the connecting line according to the spacing threshold between the annotation and the connecting line.

[0009] Optionally, determining the target material and the material stamp corresponding to the target material based on the component information includes: obtaining a first pre-stored database, wherein the first pre-stored database is established based on the correspondence between pre-stored component information, materials, and stamps; comparing the component information with the pre-stored component information in the first pre-stored database, determining the material corresponding to the pre-stored component information that is consistent with the component information as the target material, and determining the stamp of the material corresponding to the pre-stored component information that is consistent with the component information as the material stamp.

[0010] Optionally, determining the connecting lines and the text to be marked corresponding to different pin numbers in the material stamp according to the wiring information includes: obtaining a second pre-stored database, wherein the second pre-stored database is established based on the correspondence between the pre-stored stamp pin numbers and the component wiring logic; matching the wiring information with the pre-stored stamp pin numbers in the second pre-stored database; when the wiring information matches the pre-stored stamp pin numbers successfully, determining the connecting lines and the text to be marked according to the component wiring logic corresponding to the pre-stored stamp pin numbers; when the wiring information fails to match the pre-stored stamp pin numbers, generating an error prompt.

[0011] Optionally, the data file is in a spreadsheet format.

[0012] According to another aspect of the present invention, there is provided an electrical wiring diagram design device, comprising: a data acquisition module for acquiring a data file recording electrical connection logic; a data parsing module for acquiring component information and wiring information based on the data file; a first matching module for determining a target material and a material stamp corresponding to the target material according to the component information; a second matching module for determining, according to the wiring information, connecting lines corresponding to different terminal numbers in the material stamp and text to be annotated corresponding to the connecting lines; a display output module for adjusting a stamp layout structure according to the material stamp and wiring diagram constraint information, and displaying the material stamp, the connecting lines and the text to be annotated in an electrical wiring diagram.

[0013] According to another aspect of the present invention, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the above-mentioned electrical wiring diagram design method.

[0014] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to implement the above-mentioned electrical wiring diagram design method when executed by a processor.

[0015] The technical solution of the embodiment of the present invention automatically extracts component information and wiring information by importing a data file recording the electrical connection logic, and then determines the target material and the material stamp corresponding to the target material according to the component information, and determines the connecting lines corresponding to different terminal numbers in the material stamp and the text to be marked corresponding to the connecting lines according to the wiring information; adjusts the stamp layout structure according to the material stamp and the wiring diagram constraint information, and displays the material stamp, connecting lines and the text to be marked in the electrical wiring diagram, which solves the problem that the existing electrical design still needs to manually draw the construction wiring diagram after completing the drawing of the electrical schematic diagram, resulting in a large workload, slow design progress and easy errors. The wiring diagram is automatically generated by importing the data file, which avoids the errors caused by manual copying, effectively reduces the production cost, eliminates the schematic diagram drawing work, optimizes the design process, and improves the design efficiency.

[0016] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0018] Figure 1 A flow chart of an electrical wiring diagram design method provided by an embodiment of the present invention;

[0019] Figure 2 A flowchart of a method for extracting drawing information based on a data file provided by an embodiment of the present invention;

[0020] Figure 3 A flowchart of a method for generating a wiring stamp for an electrical wiring diagram provided by an embodiment of the present invention;

[0021] Figure 4 A flowchart of another method for generating a wiring stamp for an electrical wiring diagram provided by an embodiment of the present invention;

[0022] Figure 5 A flow chart of an automatic layout method for an electrical wiring diagram provided by an embodiment of the present invention;

[0023] Figure 6 A schematic diagram of the structure of an electrical wiring diagram design device provided by an embodiment of the present invention;

[0024] Figure 7 A schematic diagram of the structure of an electronic device for implementing the electrical wiring diagram design method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0025] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0026] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0027] Figure 1 This is a flowchart of an electrical wiring diagram design method provided by an embodiment of the present invention. This embodiment can be applied to the application scenario of automatically generating electrical cabinet wiring diagrams based on text files, without drawing electrical schematics. The method can be executed by an electrical wiring diagram design device, which can be implemented in the form of hardware and / or software. The electrical wiring diagram design device can be configured in an electronic device equipped with a drawing design function. Figure 1 As shown, the electrical wiring diagram design method of the present application includes:

[0028] S1: Obtain a data file recording electrical connection logic.

[0029] The electrical connection logic can be understood as the rules and methods for connecting and communicating between various electrical devices, components or circuits in the electrical system through electrical connectors (such as wires, cables, terminals, etc.). This logic not only involves physical connection, but also can realize signal transmission, control logic, protection mechanism and other aspects to ensure the normal operation, safety and stability of the electrical system.

[0030] The data file can be understood as a non-graphic file for recording electrical connection logic. Optionally, the data file is in a spreadsheet format. In this embodiment, the spreadsheet includes but is not limited to any of the following: Excel spreadsheets, WPS spreadsheets, Google Sheets, Apple Numbers and other spreadsheets. Exemplarily, the data file includes but is not limited to a component record table and a connection relationship record table.

[0031] Specifically, the data recording the complete electrical connection logic can be organized in a data file in xlsx. format or xls. format according to the actual drawing needs, and the "data import" option can be set in the drawing software. The data file (such as a file in xlsx. format or xls. format) can be imported into the drawing software through the "data import" option to realize the drawing data import. It should be noted that the present application can also set a "data editing" option in the drawing software to facilitate designers to check, delete or modify the imported data files and other editing functions.

[0032] S2: Obtain component information and wiring information based on the data file.

[0033] Among them, component information can be understood as the summary information of parameters and identity characteristics corresponding to the basic components of electrical equipment in the circuit. Components are the basis of electronic circuits.

[0034] Wiring information can be understood as a summary of the order and method of interconnecting electrical devices in a circuit, as well as the materials and specifications used for the connection.

[0035] Component information and wiring information are obtained based on data files, including: identifying and recording all components required for actual drawing and the parameters and identity characteristics of each component, as well as the connecting lines required for actual drawing and the connection sequence and method corresponding to each connecting line, as well as the materials and specifications used for the connection, through data files.

[0036] Specifically, taking the data file as an Excel table as an example, all the headers of the worksheet in the data file can be read to identify the component record table and the connection relationship record table, traverse each column of the component record table, check each column header of the component record table, if a matching header is found, record the column number, copy the matching column, and mark the data recorded in the column as component information; traverse each column of the connection relationship record table, check each column header of the connection relationship record table, if a matching header is found, record the column number, copy the matching column, and mark the data recorded in the column as wiring information.

[0037] S3: Determine the target material and the material stamp corresponding to the target material according to the component information.

[0038] The target material can be understood as a component (such as a component or a terminal) obtained based on the component information matching. The material stamp can be understood as a graphic style corresponding to the target material (such as a component or a terminal).

[0039] In this embodiment, an electrical symbol library can be established to store the correspondence between materials, stamps, and wiring logic, and the corresponding material stamp can be determined by accessing the electrical symbol library and looking up a table.

[0040] Specifically, after obtaining the component information, the component information is matched with the materials in the pre-stored database, and the abstract components, terminals and other contents are converted into specific component stamps or terminal stamps to realize the graphics of text data.

[0041] S4: Determine the connecting lines corresponding to different terminal numbers in the material stamp and the texts to be marked corresponding to the connecting lines according to the wiring information.

[0042] Among them, different terminal numbers in the material stamp can be understood as the numbers corresponding to different connection points (such as pins) in the material (such as components or terminals).

[0043] The text to be marked can be understood as the marking information added to distinguish components or wiring. Optionally, the text to be marked includes but is not limited to: line number, line type, project code, and terminal number.

[0044] S5: Adjust the stamp layout structure according to the material stamp and wiring diagram constraint information, and display the material stamp, connecting lines and text to be annotated in the electrical wiring diagram.

[0045] The stamp layout structure can be understood as the placement of different graphics in the wiring diagram. The stamp layout structure adjustment includes but is not limited to: classifying multiple material stamps, adjusting spacing, paging, and line processing to determine the placement of material stamps.

[0046] Wiring diagram constraint information can be understood as layout constraint requirements that need to be followed when drawing and interpreting electrical wiring diagrams, which are established based on the safety, reliability and maintainability of the electrical system. Optionally, the wiring diagram constraint information includes: frame size, stamp spacing threshold, and spacing threshold between annotations and connecting lines. Among them, the frame size can be understood as a parameter that characterizes the size of the electrical wiring diagram, such as A2, A3, etc.; the stamp spacing threshold can be understood as the maximum and / or minimum value used to limit the spacing distance between two adjacent stamps; the spacing threshold between annotations and connecting lines can be understood as the maximum and / or minimum value used to limit the spacing distance between the text to be annotated and the connecting line.

[0047] Specifically, after obtaining a data file (such as a spreadsheet file) that can batch edit electrical connection logic, the data file is connected to the drawing software through data parameterization import (such as importing an Excel table); according to the header information of the Excel list, the component information in the component list and the wiring information in the connection list are automatically extracted. After obtaining the component information and wiring information, the component information and wiring information are matched with the materials in the pre-stored database, and the abstract components, terminals and other contents are converted into specific component stamps or terminal stamps to realize the graphics of text data. After obtaining the graphical symbol (i.e., the material stamp), the placement of the material stamp is determined by calculating the material stamp and wiring diagram constraint information, and the corresponding wiring diagram is displayed.

[0048] Therefore, by importing data files to automatically generate wiring diagrams, the problem of existing electrical design that requires manual drawing of construction wiring diagrams after completing the drawing of electrical schematics is solved, resulting in heavy workload, slow design progress, and easy errors. This avoids errors caused by manual copying of drawings, effectively reduces production costs, eliminates the work of schematic drawing, optimizes the design process, and improves design efficiency.

[0049] Optionally, Figure 2 A flowchart of a method for extracting drawing information based on a data file provided by an embodiment of the present invention. Figure 2 As shown, in the above step S2, obtaining component information and wiring information based on the data file includes:

[0050] S201: Identify, based on a data file, a first data source associated with a component to be drawn and a second data source associated with component wiring logic.

[0051] The first data source can be understood as a list or file recording component data. Optionally, the first data source records at least one of the following data: project code, component name, component number, component model, component manufacturer, component type, component style, and component panel.

[0052] The first data source can be understood as a list or file recording wiring logic. Optionally, the second data source records at least one of the following data: first connection point project code, first connection point terminal number, second connection point project code, second connection point terminal number, first connection point terminal model, second connection point terminal model, wire number, wire diameter and casing color.

[0053] In this embodiment, identifying a first data source associated with the component to be drawn and a second data source associated with the component wiring logic based on the data file includes: identifying the first data source and the second data source based on the file name and / or header information of the data file.

[0054] S202: Generate component information based on data extracted from the first data source.

[0055] When the component to be drawn is a terminal block, the component information includes at least the terminal number and terminal style. The terminal number can be understood as the number of different wiring terminals in the terminal block; the terminal style can be understood as the specific shape, structure and connection method of the terminal.

[0056] S203: Generate wiring information based on the data extracted from the second data source.

[0057] Specifically, the project code, component name, component number, component model, component manufacturer, component type, component style and the panel to which the component belongs can be recorded in different areas (such as different columns or different rows) of the first data source (such as component list), and the header information of each area can be read based on actual needs to realize component information extraction. The first connection point project code, the first connection point terminal number, the second connection point project code, the second connection point terminal number, the first connection point terminal model, the second connection point terminal model, the wire number, the wire diameter and the casing color can be recorded in different areas (such as different columns or different rows) of the second data source (such as wiring list), and the header information of each area can be read based on actual needs to realize wiring information extraction. Therefore, by automatically importing data files (such as component lists, connection lists), hundreds or even thousands of data can be recorded at the same time, replacing the original method of manually transcribing to draw wiring diagrams, effectively maintaining the consistency of text files and wiring diagram data, facilitating the provision of error checking functions, and effectively reducing the error rate in drawing.

[0058] Optionally, determining a target material and a material stamp corresponding to the target material based on component information includes: obtaining a first pre-stored database, wherein the first pre-stored database is established based on the correspondence between pre-stored component information, materials, and stamps; comparing the component information with pre-stored component information in the first pre-stored database, determining the material corresponding to the pre-stored component information that is consistent with the component information as the target material, and determining the stamp of the material corresponding to the pre-stored component information that is consistent with the component information as the material stamp.

[0059] Figure 3 A flowchart of a method for generating a wiring stamp for an electrical wiring diagram provided by an embodiment of the present invention. Figure 3 As shown, in the above step S3, determining the target material and the material stamp corresponding to the target material according to the component information includes the following steps:

[0060] S301: Acquire a first pre-stored database.

[0061] The first pre-stored database is established based on the correspondence between pre-stored component information, materials, and stamps.

[0062] Specifically, the first pre-stored database can be established based on an existing electrical symbol library or a designer's customized material graphics. The designer can also modify, delete or add data in the first pre-stored database based on actual drawing needs.

[0063] S302: Compare the component information with pre-stored component information in a first pre-stored database.

[0064] S303: Determine whether the component information is consistent with the pre-stored component information in the first pre-stored database.

[0065] If the component information is consistent with the pre-stored component information in the first pre-stored database, step S304 is executed; if the component information is inconsistent with the pre-stored component information in the first pre-stored database, step S305 is executed.

[0066] S304: The material corresponding to the pre-stored component information that is consistent with the component information is determined as the target material, and the stamp of the material corresponding to the pre-stored component information that is consistent with the component information is determined as the material stamp.

[0067] S305: Generate a material matching failure prompt.

[0068] The material matching failure prompt can be understood as information used to prompt the designer that the material information is missing, wrong or inconsistent. Typically, the material matching failure prompt can be in the form of image text or sound and light warning, which is not limited.

[0069] Specifically, based on at least one of the component name, component number, component model, component manufacturer, component type, and component style filled in the component list, the corresponding material and the stamp corresponding to the material can be found in the first pre-stored database.

[0070] Optionally, determining the connecting lines and text to be marked corresponding to different terminal numbers in the material stamp according to the wiring information includes: obtaining a second pre-stored database, wherein the second pre-stored database is established based on the correspondence between the pre-stored stamp terminal numbers and the component wiring logic; matching the wiring information with the pre-stored stamp terminal numbers in the second pre-stored database; when the wiring information matches the pre-stored stamp terminal numbers successfully, determining the connecting lines and text to be marked according to the component wiring logic corresponding to the pre-stored stamp terminal numbers; when the wiring information fails to match the pre-stored stamp terminal numbers, generating an error prompt.

[0071] Figure 4 A flowchart of another method for generating a wiring stamp for an electrical wiring diagram provided by an embodiment of the present invention. Figure 4 As shown, in the above step S4, the connection lines and texts to be marked corresponding to different terminal numbers in the material stamp are determined according to the wiring information, including the following steps:

[0072] S401: Acquire a second pre-stored database.

[0073] The second pre-stored database is established based on the correspondence between the pre-stored stamp pin numbers and the component wiring logic.

[0074] The pre-stored stamp terminal numbers can be understood as the numbers corresponding to different connection points (such as pins) in stamps of different materials stored in the second pre-stored database.

[0075] Specifically, the second pre-stored database can be established based on the electrical connection logic of the inherent circuit or the wiring logic customized by the designer. The designer can also modify, delete or add data in the second pre-stored database based on actual drawing needs.

[0076] S402: Match the wiring information with the pre-stored stamp terminal number in the second pre-stored database.

[0077] S403: Determine whether the wiring information matches the pre-stored stamp terminal number in the second pre-stored database successfully.

[0078] If the connection information matches the pre-stored stamp pin number successfully, step S404 is executed; if the connection information matches the pre-stored stamp pin number unsuccessfully, step S405 is executed.

[0079] S404: Determine the connection lines and the text to be annotated according to the component wiring logic corresponding to the pre-stored stamp terminal number.

[0080] S405: Generate an error message.

[0081] The error prompt can be understood as information used to prompt the designer of material identification errors or inconsistencies. Typically, the error prompt can be in the form of image text or sound and light warning, which is not limited.

[0082] Specifically, based on the stamp pin number recorded in the connection list and the connection information corresponding to the pin number (such as the connection information between components, or the connection information between components and terminals), the pre-stored stamp pin number of the corresponding component in the second pre-stored database can be matched. When the stamp pin number matches the pre-stored stamp pin number, the connection line and the text to be annotated corresponding to the pre-stored stamp pin number are added to the final electrical wiring diagram; when the stamp pin number does not match the pre-stored stamp pin number, an error message is given to remind the designer to update the database or check the matching results. By building a database for material stamps and wiring information, text data can be directly converted into graphic symbols, and wiring diagrams can be automatically generated, eliminating the work of drawing schematic diagrams, greatly improving design efficiency, providing effective help for shortening product production cycles, and reducing production costs. At the same time, it can help design units integrate more design templates, thereby optimizing the entire production process.

[0083] Optionally, Figure 5 A flowchart of an automatic layout method for an electrical wiring diagram provided by an embodiment of the present invention. Figure 5 As shown, in the above step S5, the stamp layout structure is adjusted according to the material stamp and the wiring diagram constraint information, and the material stamp, the connecting line and the text to be marked are displayed in the electrical wiring diagram, including:

[0084] S501: Determine the placement position of the material stamp according to the frame size, the material stamp and the stamp spacing threshold.

[0085] S502: Adding the connection line to the corresponding position of the material stamp based on the corresponding relationship between the connection line and the terminal number.

[0086] S503: Add the text to be annotated to the corresponding position of the connecting line according to the spacing threshold between the annotation and the connecting line.

[0087] Specifically, after obtaining all the material stamps required for actual drawing, the size of each material stamp in the electrical wiring diagram (such as the size of the terminal block and the size of the components) is calculated, and the pin number in the material stamp is displayed at the corresponding position in the stamp. The effective boundary of the drawing frame is calculated according to the constraint information of the wiring diagram, and the number of stamps that can be arranged in each row and each page of the drawing are determined in combination with the stamp spacing threshold. After adjusting the spacing, paging, and line division of the material stamps, the placement of each material stamp is determined. Then, the connecting line is added to the pin number of the corresponding material stamp. Finally, based on the spacing threshold between the annotation and the connecting line, the text to be annotated is annotated at the near end (the side close to the pin number) or the opposite end (the side away from the pin number) of the connecting line.

[0088] Based on the same inventive concept as the above embodiments, an embodiment of the present invention further provides an electrical wiring diagram design device, which can execute the electrical wiring diagram design method described in any of the above embodiments. Figure 6 The present invention provides a schematic diagram of the structure of an electrical wiring diagram design device. Figure 6 As shown, the electrical wiring diagram design device includes: a data acquisition module 101, a data analysis module 102, a first matching module 103, a second matching module 104 and a display output module 105.

[0089] Among them, the data acquisition module 101 is used to obtain a data file recording the electrical connection logic; the data analysis module 102 is used to obtain component information and wiring information based on the data file; the first matching module 103 is used to determine the target material and the material stamp corresponding to the target material according to the component information; the second matching module 104 is used to determine the connecting lines corresponding to different terminal numbers in the material stamp and the text to be marked corresponding to the connecting lines according to the wiring information; the display output module 105 is used to adjust the stamp layout structure according to the material stamp and the wiring diagram constraint information, and display the material stamp, connecting lines and the text to be marked in the electrical wiring diagram.

[0090] Optionally, the data parsing module 102 is configured to: identify a first data source associated with the component to be drawn and a second data source associated with the component wiring logic based on the data file; generate component information based on the data extracted from the first data source; generate wiring information based on the data extracted from the second data source; wherein, when the component to be drawn is a terminal strip, the component information includes at least the terminal number and the terminal style.

[0091] Optionally, the first data source records at least one of the following data: project code, component name, component number, component model, component manufacturer, component type, component style and the panel to which the component belongs; the second data source records at least one of the following data: first connection point project code, first connection point terminal number, second connection point project code, second connection point terminal number, first connection point terminal model, second connection point terminal model, wire number, wire diameter and casing color.

[0092] Optionally, the wiring diagram constraint information includes: a frame size, a stamp spacing threshold, and a spacing threshold between annotations and connecting lines.

[0093] Optionally, the display output module 105 is configured to: determine the placement position of the material stamp based on the frame size, the material stamp and the stamp spacing threshold; add the connecting line to the corresponding position of the material stamp based on the correspondence between the connecting line and the terminal number; add the text to be annotated to the corresponding position of the connecting line according to the spacing threshold between the annotation and the connecting line.

[0094] Optionally, the first matching module 103 is configured to: obtain a first pre-stored database, wherein the first pre-stored database is established based on the correspondence between pre-stored component information, materials, and stamps; compare the component information with the pre-stored component information in the first pre-stored database, determine the material corresponding to the pre-stored component information that is consistent with the component information as the target material, and determine the stamp of the material corresponding to the pre-stored component information that is consistent with the component information as the material stamp.

[0095] Optionally, the second matching module 104 is configured to: obtain a second pre-stored database, wherein the second pre-stored database is established based on the correspondence between the pre-stored stamp pin numbers and the component wiring logic; match the wiring information with the pre-stored stamp pin numbers in the second pre-stored database; when the wiring information matches the pre-stored stamp pin numbers successfully, determine the connecting lines and the text to be marked according to the component wiring logic corresponding to the pre-stored stamp pin numbers; when the wiring information fails to match the pre-stored stamp pin numbers, generate an error prompt.

[0096] Optionally, the data file is in a spreadsheet format.

[0097] The electrical wiring diagram design device provided in the embodiment of the present invention can execute the electrical wiring diagram design method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0098] Based on the above embodiments, an embodiment of the present invention further provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the above electrical wiring diagram design method.

[0099] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to implement the above-mentioned electrical wiring diagram design method when executed by a processor.

[0100] Figure 7 A schematic diagram of the structure of an electronic device for implementing the electrical wiring diagram design method of an embodiment of the present invention. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0101] like Figure 7As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0102] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0103] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as the above-mentioned electrical wiring diagram design method.

[0104] In some embodiments, the electrical wiring diagram design method described above may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the electrical wiring diagram design method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the electrical wiring diagram design method described above in any other appropriate manner (e.g., by means of firmware).

[0105] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0106] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0107] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0108] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0109] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0110] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0111] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0112] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for designing an electrical wiring diagram, characterized in that: include: Obtaining a data file recording electrical connection logic; Acquire component information and wiring information based on the data file; Determine a target material and a material stamp corresponding to the target material according to the component information; Determine the connection lines corresponding to different terminal numbers in the material stamp and the text to be marked corresponding to the connection lines according to the wiring information; The stamp layout structure is adjusted according to the material stamp and the wiring diagram constraint information, and the material stamp, the connecting line and the text to be marked are displayed in the electrical wiring diagram.

2. The electrical wiring diagram design method according to claim 1, characterized in that: The acquiring component information and wiring information based on the data file includes: Identify, based on the data file, a first data source associated with the component to be drawn and a second data source associated with the component wiring logic; generating the component information based on the data extracted from the first data source; generating the wiring information based on the data extracted from the second data source; Wherein, when the component to be drawn is a terminal row, the component information at least includes a terminal number and a terminal style.

3. The electrical wiring diagram design method according to claim 2, characterized in that: The first data source records at least one of the following data: project code, component name, component number, component model, component manufacturer, component type, component style, and the panel to which the component belongs; The second data source records at least one of the following data: first connection point project code, first connection point terminal number, second connection point project code, second connection point terminal number, first connection point terminal model, second connection point terminal model, wire number, wire diameter and casing color.

4. The electrical wiring diagram design method according to claim 1, characterized in that: The wiring diagram constraint information includes: frame size, stamp spacing threshold, and spacing threshold between annotations and connecting lines; The step of adjusting the stamp layout structure according to the material stamp and the wiring diagram constraint information, and displaying the material stamp, the connecting line and the text to be annotated in the electrical wiring diagram, comprises: Determining a placement position of the material stamp according to the frame size, the material stamp and the stamp spacing threshold; Adding the connection line to the corresponding position of the material stamp based on the corresponding relationship between the connection line and the terminal number; The text to be annotated is added to a corresponding position of the connecting line according to a spacing threshold between the annotation and the connecting line.

5. The electrical wiring diagram design method according to claim 1, characterized in that: The step of determining a target material and a material stamp corresponding to the target material according to the component information includes: Acquire a first pre-stored database, wherein the first pre-stored database is established based on the correspondence between pre-stored component information, materials, and stamps; The component information is compared with the pre-stored component information in the first pre-stored database, and the material corresponding to the pre-stored component information that is consistent with the component information is determined as the target material, and the stamp of the material corresponding to the pre-stored component information that is consistent with the component information is determined as the material stamp.

6. The electrical wiring diagram design method according to claim 1, characterized in that: The step of determining the connection lines and texts to be marked corresponding to different terminal numbers in the material stamp according to the wiring information includes: Acquire a second pre-stored database, wherein the second pre-stored database is established based on a correspondence between pre-stored stamp pin numbers and component wiring logics; Matching the wiring information with the pre-stored stamp terminal number in the second pre-stored database; When the wiring information successfully matches the pre-stored stamp pin number, determining the connection line and the text to be marked according to the component wiring logic corresponding to the pre-stored stamp pin number; When the wiring information fails to match the pre-stored stamp terminal number, an error message is generated.

7. The electrical wiring diagram design method according to any one of claims 1 to 6, characterized in that: The data file is in a spreadsheet format.

8. An electrical wiring diagram design device, characterized in that: include: A data acquisition module, used for acquiring a data file recording electrical connection logic; A data parsing module, used for acquiring component information and wiring information based on the data file; A first matching module, used to determine a target material and a material stamp corresponding to the target material according to the component information; A second matching module is used to determine the connection lines corresponding to different terminal numbers in the material stamp and the text to be marked corresponding to the connection lines according to the wiring information; The display output module is used to adjust the stamp layout structure according to the material stamp and the wiring diagram constraint information, and display the material stamp, the connecting line and the text to be marked in the electrical wiring diagram.

9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the electrical wiring diagram design method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the electrical wiring diagram design method according to any one of claims 1 to 7 when executed.