Electrical schematic diagram generation method and device, equipment, medium and product

By obtaining and processing the connection relationship list of the electrical schematic diagrams, the editable electrical schematic diagrams are solved, and the design efficiency and accuracy are improved.

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

Patent Information

Application Number
CN202411791088.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-06
Publication Date
2025-03-28

AI Technical Summary

Technical Problem

In the prior art, after the electrical schematic design is completed, it is impossible to directly edit, modify and supplement the design, and the drawings need to be converted and modified through manual drawing drawings, which is time-consuming and laborious.

Method used

By obtaining the list of connection relationships corresponding to the electrical schematic, a component diagram is generated, and based on the source connection point information, wire information and target connection point information, the connection point and wire information are added to generate an editable electrical schematic diagram.

Benefits of technology

The implementation of converting PDF schematics or join relationship tables into editable CAD schematics, simplifying the engineer's design modification process, improving drawing efficiency and reducing error occurrence.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119720309A_ABST
    Figure CN119720309A_ABST
Patent Text Reader

Abstract

The invention discloses an electrical schematic diagram generation method and device, equipment, a medium and a product, and the method comprises the steps: obtaining a connection relation list corresponding to an electrical schematic diagram, and the connection relation list at least comprises an element identifier, source connection point information, target connection point information and wire information; the connection relation list is a document format list; generating a component graph based on the component identifier; then, on the basis of source connection point information corresponding to the element identifier, adding a source connection point in the element graph; then, based on the wire information corresponding to the source connection point, a wire is led out from the source connection point, and the wire information is added; and based on the target connection point information corresponding to the source connection point, adding the target connection point information at the tail end of the wire, generating an electrical schematic diagram, and displaying the electrical schematic diagram to a user. Therefore, by means of the method, an engineer can directly edit, modify and complement the schematic diagram conveniently, errors are not prone to occurring, and the drawing 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 drawing technology, and in particular to a method, device, equipment, medium and product for generating an electrical schematic diagram. Background Art

[0002] Electrical equipment R&D and manufacturing companies often use CAD software and professional electrical schematic design software to design two-dimensional electrical schematics. After the electrical schematic design is completed, it is necessary to generate various reports of electrical equipment, such as component lists, connection relationship lists, wiring diagrams, etc., by manual drawing or automatic output.

[0003] Electrical schematic design software represented by CAD and EPLAN holds a leading market share in the world. When electrical drawings output by completed projects and project data are transferred between different manufacturers, in order to protect corporate data assets, the output project files are relatively closed. They are usually schematics in PDF format, connection relationship tables and device selection tables in EXCEL format, etc., and it is impossible to directly edit, modify and supplement the schematics.

[0004] After obtaining the project data, the manufacturer cannot directly edit, modify or supplement the design. Instead, the project drawings need to be converted and modified. The process of converting schematic drawings heavily relies on engineers' manual copying and drawing, which is time-consuming and laborious. Summary of the invention

[0005] The present invention provides a method, device, equipment, medium and product for generating an electrical schematic diagram to solve the problem in the related art that there are original drawings or lists but the drawings cannot be edited.

[0006] According to a first aspect of the present invention, a method for generating an electrical schematic diagram is provided, comprising:

[0007] Acquire a connection relationship list corresponding to the electrical schematic diagram, wherein the connection relationship list includes at least a component identifier, source connection point information, target connection point information, and wire information; the connection relationship list is a document format list;

[0008] generating a component graphic based on the component identifier;

[0009] Adding a source connection point in the component graphic based on the source connection point information corresponding to the component identifier;

[0010] Based on the wire information corresponding to the source connection point, lead out a wire from the source connection point and add the wire information;

[0011] Based on the target connection point information corresponding to the source connection point, the target connection point information is added to the end of the wire, an electrical schematic diagram is generated, and displayed to the user.

[0012] Optionally, generating a component graphic based on the component identifier includes:

[0013] A black box component graphic is generated based on the component identifier, and the black box component graphic is in a blank frame shape.

[0014] Optionally, the connection relationship list further includes component selection graphic information, and generating a component graphic based on the component identifier includes:

[0015] A component selection graph is generated based on the component selection graph information corresponding to the component identifier.

[0016] Optionally, before generating the component graphic based on the component identifier, the method further includes:

[0017] Extracting the total number of component identifiers, the total number of source connection points, the total number of target connection points and the total number of wires based on the connection relationship list;

[0018] The size and number of pages of the drawing for generating the electrical schematic diagram are determined according to the total number of the component identifiers, the total number of the source connection points, the total number of the target connection points and the total number of the wires.

[0019] Optionally, presenting to the user includes:

[0020] The model and serial number of each component identifier are extracted, and the electrical schematics corresponding to each component identifier are sorted according to the model and serial number of the component identifier, and then displayed to the user.

[0021] Optionally, obtaining a connection relationship list corresponding to the electrical schematic diagram includes:

[0022] Extracting connection relationship features from the electrical schematic diagram in PDF format and generating the connection relationship list;

[0023] Alternatively, a connection relationship list corresponding to the electrical schematic diagram imported by a user is received.

[0024] Optionally, the connection relationship list includes one of Excel format, CSV format or TXT format.

[0025] Optionally, after generating the electrical schematic, also include:

[0026] When it is determined based on the source connection point information and the target connection point information that the corresponding source connection point and the target connection point are in the same drawing, a link is formed between the corresponding source connection point and the target connection point.

[0027] According to a second aspect of the present invention, there is provided a device for generating an electrical schematic diagram, comprising:

[0028] An acquisition module is used to acquire a connection relationship list corresponding to the electrical schematic diagram, wherein the connection relationship list includes at least a component identifier, source connection point information, target connection point information, and wire information; the connection relationship list is a document format list;

[0029] A component graphic generation module, used for generating a component graphic based on the component identifier;

[0030] A source connection point adding module, used for adding a source connection point in the component graph based on the source connection point information corresponding to the component identifier;

[0031] A wire adding module, used for leading out a wire at the source connection point based on the wire information corresponding to the source connection point, and adding the wire information;

[0032] The target connection point information adding module is used to add the target connection point information at the end of the wire based on the target connection point information corresponding to the source connection point, generate an electrical schematic diagram, and display it to the user.

[0033] According to a third aspect of the present invention, there is provided an electronic device, the electronic device comprising:

[0034] at least one processor; and

[0035] a memory communicatively connected to the at least one processor; wherein,

[0036] 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 method for generating an electrical schematic diagram described in any embodiment of the present invention.

[0037] According to a fourth 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 method for generating an electrical schematic diagram described in any embodiment of the present invention when executed by a processor.

[0038] According to a fifth aspect of the present invention, a computer program product is provided. The computer program product comprises a computer program. When the computer program is executed by a processor, the method for generating an electrical schematic diagram according to any embodiment of the present invention is implemented.

[0039] The technical solution of the embodiment of the present invention is to obtain a connection relationship list corresponding to the electrical schematic diagram, wherein the connection relationship list includes at least a component identifier, source connection point information, target connection point information and wire information; the connection relationship list is a document format list; then, a component graphic is generated based on the component identifier; then, based on the source connection point information corresponding to the component identifier, a source connection point is added to the component graphic; then, based on the wire information corresponding to the source connection point, a wire is led out from the source connection point and wire information is added; then, based on the target connection point information corresponding to the source connection point, the target connection point information is added to the end of the wire, an electrical schematic diagram is generated, and displayed to the user. Therefore, the above method can convert a PDF schematic diagram or a connection relationship table into an editable CAD schematic diagram, which is convenient for engineers to directly edit, modify and supplement the design of the schematic diagram, and is not prone to errors, thereby improving drawing efficiency.

[0040] 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

[0041] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. 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.

[0042] Figure 1 is a flow chart of a method for generating an electrical schematic diagram according to an embodiment of the present invention;

[0043] Figure 2 It is a schematic diagram of the expression method of a black box graph in the method for generating an electrical schematic diagram proposed in an embodiment of the present invention;

[0044] Figure 3 It is a schematic diagram after adding source connection points in a black box graphic expression in the method for generating an electrical schematic diagram proposed in an embodiment of the present invention;

[0045] Figure 4 It is a schematic diagram after adding wire information in a black box graphic expression in the method for generating an electrical schematic diagram proposed in an embodiment of the present invention;

[0046] Figure 5 It is a schematic diagram after adding target electrical connection point information in a black box graphic expression in the method for generating an electrical schematic diagram proposed in an embodiment of the present invention;

[0047] Figure 6It is a schematic diagram of the expression method of the standard selection graph in the method for generating the electrical schematic diagram proposed in the embodiment of the present invention;

[0048] Figure 7 It is a schematic diagram of multiple components expressed in a black box graphic manner in a method for generating an electrical schematic diagram provided in an embodiment of the present invention;

[0049] Figure 8 It is a schematic diagram of multiple components expressed in a standard selection graph in a method for generating an electrical schematic diagram according to an embodiment of the present invention;

[0050] Fig. 9 A schematic diagram of the structure of an electronic device that can be used to implement an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0051] 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.

[0052] 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.

[0053] Figure 1 FIG. 1 is a flow chart of a method for generating an electrical schematic diagram according to an embodiment of the present invention. Figure 1 As shown, the method for generating the electrical schematic diagram includes:

[0054] S101, obtaining a connection relationship list corresponding to the electrical schematic diagram, wherein the connection relationship list includes at least a component identifier, source connection point information, target connection point information, and wire information; the connection relationship list is a document format list.

[0055] It should be understood that the component identifier, source connection point information, target connection point information and wire information recorded in the connection relationship list all have a corresponding relationship. Exemplarily, the list includes multiple component identifiers, multiple source connection point information, multiple target connection point information, and multiple wire information. Take the example of two component identifiers, namely, source component identifier F1 and target component identifier D1. Among them, the source component identifier and the target component identifier can be the same or different, and the difference is used as an example for explanation here. The source component identifier F1 has four source connection points, namely source connection point 1, source connection point 2, source connection point 3, and source connection point 4. The target component identifier D1 has four target connection points corresponding to the four source connection points, namely target connection point 1, target connection point 2, target connection point 3, and target connection point 4. In addition, a source-target pair is formed between the source connection point and the corresponding target connection point. It can be recorded as source connection point 1-target connection point 3, source connection point 2-target connection point 4, source connection point 3-target connection point 1, and source connection point 4-target connection point 2. In addition, wires (such as wire number, color, model, length, etc.) are also provided between each source connection point and the target connection point. The corresponding source-target pair corresponds to the corresponding wire information. Table 1 shows a list of connection relationships formed by the source component identifier F11 and the target component identifier D11, and the source component identifier F12 and the target component identifier D12. The wire information is marked with the wire number. The color, model and length of the wire are replaced by ellipsis, which can be filled in in actual operation.

[0056] Table 1

[0057]

[0058] It can be understood that Table 1 is only an example for understanding the solution, and the form of the connection relationship list is not limited thereto.

[0059] S102, generating a component graphic based on the component identifier.

[0060] After receiving the connection relationship table, the component identifier information is obtained, such as F1, D1, etc. It should be noted that the drawing software will configure the component graphics corresponding to the component identifier in advance, so as to generate the component graphics based on the corresponding relationship and the obtained component identifier.

[0061] It is understandable that the corresponding relationship may be a one-to-one corresponding relationship, for example, a national standard electrical component graphic, or a custom generated electrical component graphic.

[0062] In a special example, it can be a many-to-one relationship, that is, each component identifier corresponds to the same component graphic (such as a geometric rectangle). The same component graphic can be called a black box graphic.

[0063] Then, a corresponding component graphic can be generated based on the corresponding component identifier and the corresponding relationship. Furthermore, in one embodiment, the component identifier can also include information such as the model and name of the corresponding electrical component. After the component graphic is generated, this part of information can be synchronously displayed on the component graphic, such as Figure 2 The black box figure shown is an example of a component figure, where Xxxx is the model number.

[0064] S103, adding a source connection point in the component graph based on the source connection point information corresponding to the component identifier.

[0065] Here, still taking the component identifier F1 as an example, the component identifier F1 has four source connection points, and then four source connection points can be added to the component graphic generated in step S102. The graphics of the four source connection points are generally dots, or they can be configured as other graphics in advance. In addition, the relative position relationship between the four source connection points and the component graphic can be configured through the configuration window after importing the connection relationship list. For example, arrange the component graphics with the same horizontal spacing (such as Figure 3 As shown), or they may be arranged in other ways. Furthermore, after adding source connection points to the component graphic, each source connection point may be labeled with a serial number. The serial number labeling method may also be configured in advance, such as arranging them in order in the horizontal direction of the component graphic, or arranging them in increasing order with the two sides of the component graphic as the starting point and the end point, etc., or a coordinate system may be established based on the component graphic, and the spacing of the origin of the coordinate system may be used for sorting and placing serial numbers, etc. (the placement of the aforementioned source connection points may also refer to this method).

[0066] S104, based on the wire information corresponding to the source connection point, lead out the wire from the source connection point and add the wire information.

[0067] After adding a source connection point in the component graph, the corresponding wire can be led out, and an outward arrow can be set on the wire to indicate the meaning of leading out from the source connection point. It can be understood that in this step, the line shape and length of the wire connected to each source connection point can be configured in advance. And after each source connection point generates a wire, the corresponding information of the wire (such as the wire number, model, color, etc. obtained from the connection relationship list) can be added to the wire, such as Figure 4 Example of wires annotated on a black box component shown.

[0068] S105, based on the target connection point information corresponding to the source connection point, the target connection point information is added to the end of the wire, an electrical schematic diagram is generated, and displayed to the user.

[0069] Among them, Figure 4Based on the information shown in FIG. 1 , a source-target pair in the connection relationship list can be added to the end of the wire to express the information of which target connection point the source connection point is connected to (eg Figure 5 Thus, through the above steps S101 to S105, the connection relationship list is converted into an editable electrical schematic diagram and displayed in the drawing interface.

[0070] Optionally, generating a component graphic based on the component identifier includes:

[0071] A black box component graphic is generated based on the component identifier, and the black box component graphic is a blank frame.

[0072] Among them, generating a black box component graphic based on a component identifier is one of the ways. This black box component graphic appears as a blank box. The shape of the blank box can be rectangular, square, etc. According to display requirements, users can configure it in advance. The component graphics generated in this way can provide a basic framework structure for the subsequent addition of source connection points, target connection points, wires and other information. And the final electrical schematic displays less information, which can reduce the computing power of the computer.

[0073] In one example, when the component identifier is "R1" to represent a resistor, the drawing software will generate a blank black box component graphic based on this identifier. At a specific location in this blank box, an area will be reserved for marking and connecting related electrical information. Then, based on the source connection point information, add the source connection point identifier, such as "A", to the specified location in the box. Based on the wire information, the corresponding wire is led out from this source connection point, and the relevant wire information, such as the wire specification, color, etc., is marked on the wire. Finally, based on the target connection point information, determine and add the target connection point identifier, such as "B", at the end of the wire.

[0074] This method of generating black box component graphics helps to achieve standardization and normalization in the process of generating electrical schematics. No matter what complex circuit structure you are facing, you can generate component graphics in a unified format and rules, avoiding the difficulty of understanding and interpretation caused by graphic differences. Secondly, it improves the accuracy and readability of the schematic. Clear and clear blank box graphics and orderly added connection points and wire information enable engineers to understand the structure and connection relationship of the circuit at a glance, reducing misjudgments caused by confusing or unclear information. Furthermore, this method facilitates subsequent modifications and optimizations. When the circuit design needs to be adjusted, it can be easily modified and updated based on the existing black box component graphics, saving time and energy for redrawing.

[0075] Optionally, the connection relationship list also includes component selection graphic information, and generating the component graphic based on the component identifier includes: generating the component selection graphic based on the component selection graphic information corresponding to the component identifier.

[0076] The component selection graphic information can be in the form of standard symbols such as IEC / GB, or user-defined symbols. For example, the standard symbol form for a circuit breaker is Figure 6 This allows more information to be displayed for engineers to review.

[0077] Specifically, the component identifier "F1" represents a specific type of integrated circuit. If the connection relationship list contains not only the identifier "F1" but also detailed component selection graphic information such as the pin layout, size, and package form of the integrated circuit, then the drawing software will generate a component selection graphic based on this information that is completely consistent with the actual integrated circuit in terms of appearance and pin arrangement. Figure 6 shown.

[0078] This method of generating component graphics based on component selection graphic information can accurately meet the stringent requirements for component graphics in terms of details and professionalism. In the complex and high-precision electrical design in the field of high-precision and cutting-edge technology, the characteristics and parameters of each component are crucial. Accurate component selection graphics play an irreplaceable role in ensuring that the performance of the circuit meets the expected standards and the reliability and stability of the system. And this method greatly enhances the practical application value of electrical schematics. When facing the generated precise component selection graphics, engineers can intuitively and clearly understand the specific characteristics and connection methods of each component. It enables engineers to directly build, debug, and subsequently maintain and troubleshoot circuits based on such graphics, avoiding errors and delays caused by inaccurate or incomplete component graphics, thereby greatly improving the efficiency and quality of the entire workflow.

[0079] Optionally, before generating component graphics based on component identifiers, the method also includes: extracting the total number of component identifiers, the total number of source connection points, the total number of target connection points and the total number of wires based on the connection relationship list; determining the size and number of pages of the drawing for generating the electrical schematic diagram according to the total number of component identifiers, the total number of source connection points, the total number of target connection points and the total number of wires.

[0080] It should be noted that before generating component graphics based on component identifiers, the method of the present invention also includes an important preprocessing step. That is, through comprehensive analysis and data extraction of the connection relationship list, the total number of component identifiers, the total number of source connection points, the total number of target connection points, and the total number of wires and other key elements are accurately obtained. Based on this information, the size and number of pages of the drawings for generating electrical schematics can be determined.

[0081] In one embodiment, the relationship between the increase ratio of the size and number of pages of the drawing and the increase ratio of the key elements such as the total number of component identifiers, the total number of source connection points, the total number of target connection points, and the total number of wires can be preset in advance in the drawing software. For example, if the number of component identifiers increases by 5, the size of the drawing is enlarged by 5 times, and / or the number of pages increases by 2 pages. In this way, after extracting the total number of key elements such as the total number of component identifiers, the total number of source connection points, the total number of target connection points, and the total number of wires in the connection relationship list, the size and number of pages of the drawing for generating the electrical schematic diagram can be determined.

[0082] It is understandable that if a circuit system contains many components, connection points and complex wire layouts, and the total number of these elements is large through calculation, then it is necessary to select a larger size drawing or increase the number of pages of the drawing to ensure that all components and connection relationships can be clearly and completely displayed in the electrical schematic to avoid crowding and confusion. On the contrary, if the circuit is relatively simple and the total number of elements is small, a smaller size drawing or fewer pages can be selected to achieve reasonable use of resources and simplicity of the schematic.

[0083] Therefore, this method of determining the drawing specifications based on the actual number of key elements of the circuit can achieve efficient use of the drawing space, and will not cause the drawing to be too small to accommodate all the information, nor will it cause waste of blank space due to the drawing being too large. At the same time, the reasonably determined drawing size and number of pages will help improve the readability and aesthetics of the electrical schematic, allowing engineers to more easily and accurately understand the structure and connection relationship of the circuit, thereby facilitating subsequent circuit design, analysis and maintenance.

[0084] Optionally, displaying to the user includes: extracting the model and serial number of each component identifier, and sorting the electrical schematics corresponding to each component identifier according to the model and serial number of the component identifier, and then displaying to the user.

[0085] It should be noted that the component identifier has a corresponding model. When multiple component identifiers have different models, the component identifiers with the same model can be grouped together so that engineers can uniformly view the component identifiers of the same type in the entire schematic.

[0086] like Figure 7 and Figure 8As shown, the components whose component identifiers are all circuit breaker models are arranged in order (for example, in the order of generation) and then displayed. Figure 7 is the representation of black box graphics, Figure 8 This is a representation of the standard graphic selection. Figure 7 In the example, the target connection point is F1-X.1 / 1.c.F5, which means that the first pin in F1 is connected to the first pin in X, and X is located at the 5th column of row F in the 1.c drawing. The target connection point information is automatically generated based on the page number, area of ​​the drawing, and the connection point in the target component identifier. Figure 8 In the embodiment, the target connection point information only shows the target point. In other embodiments, Figure 7 The target connection point information is displayed in the

[0087] like Figure 7 and Figure 8 The electrical components of the same type are displayed in sequence, which is neat in appearance and helps engineers to understand the layout of the electrical components of the same type.

[0088] Optionally, obtaining a connection relationship list corresponding to the electrical schematic diagram includes:

[0089] Extract the connection relationship features in the electrical schematic diagram in PDF format and generate a connection relationship list;

[0090] Alternatively, a connection relationship list corresponding to the electrical schematic diagram imported by the user is received.

[0091] It is understandable that the drawing software receives the connection relationship list, which can be generated by the electrical schematic diagram of the PDF imported by the user, such as extracting the information of the electrical schematic diagram in the PDF to generate the corresponding connection relationship list. Alternatively, the connection relationship list manually filled in by the user can be directly received in a text format, such as the connection relationship list includes one of the Excel format, CSV format or TXT format. A variety of connection relationship list receiving methods and multiple formats can meet different needs.

[0092] Optionally, after generating the electrical schematic, also include:

[0093] When it is determined based on the source connection point information and the target connection point information that the corresponding source connection point and the target connection point are in the same drawing, a link is formed between the corresponding source connection point and the target connection point.

[0094] It can be understood that in the same drawing, after the source connection point and the target connection point form a link, the full picture of the electrical schematic diagram is restored as much as possible, which is convenient for engineers to consult better.

[0095] In a specific embodiment, the method for generating the electrical schematic diagram includes:

[0096] Step 1: Select the connection relationship list file, which can be in the format of Excel, CSV, TXT or other document types, or a database table file, which must contain the source connection point, target connection point, line number, wire definition and other information of each connection relationship.

[0097] Step 2: You can optionally input the selection information of the components in the connection relationship list, and optionally input the component model database information, which contains the graphic symbols of the component models and other information.

[0098] Step 3: Processing of input information such as connection relationship list, including extraction of component identifier statistics list, component connection point statistics, component connection point target connection point statistics, connection line number definition and wire definition (source connection point position, target connection point position, etc.), component selection (if any), component symbol graphics (if any) and other information.

[0099] Step 4: Create project files and read configuration and layout rules.

[0100] Step 5: Add drawing pages and frames.

[0101] Step 6: Automatically create electrical schematic symbols for each component, which can be expressed in three forms: (1) black box component, a general expression form, (2) IEC / GB and other standard symbol expression forms, and (3) user-defined symbols. Among them, the standard symbol or user-defined symbol can be matched to the component based on the component selection information and database information. If there is no matching symbol, the black box component form is used by default.

[0102] Step 7: For each component symbol, establish a wiring relationship in the form of breakpoints / linkpoints. The breakpoints can be named in the form of serial ID or source-target (such as Figure 5 and Figure 6 F11.1-D11.3 etc. shown in the figure).

[0103] Step 8: For each connection symbol, use the wire number definition method to establish the connection wire number, wire model and other attributes (such as Figure 5 and Figure 6 101, 102, etc. shown in the figure).

[0104] Step 9: Assign electrical properties such as selection information to each component symbol (such as Figure 5 and Figure 6Component symbol names and model numbers shown in ).

[0105] Step 10: After all components are automatically mapped, they are arranged according to certain rules. The schematic effect is as follows: Figure 7 and Figure 8 shown.

[0106] Therefore, according to the method for generating an electrical schematic diagram proposed in an embodiment of the present invention, the electrical schematic diagram can be automatically generated through input information in the form of documents, such as a connection relationship list, a component selection information table (optional), a component model database (optional), etc., to avoid the process of manual copying and drawing. And the automatically created schematic diagram can clearly express the connection points of each component and the connection points of the target component. It can express the wire number and wire information of each connection. It can assign selection information to the component. The automatically created schematic diagram can read and modify electrical properties through electrical design software, and supplementary design can be performed. It can read electrical information through electrical design software and automatically output reports, such as component lists, component selection summary tables, connection relationship tables, terminal tables, etc.

[0107] An embodiment of the present invention provides a device for generating an electrical schematic diagram, comprising:

[0108] An acquisition module is used to acquire a connection relationship list corresponding to the electrical schematic diagram, wherein the connection relationship list includes at least a component identifier, source connection point information, target connection point information, and wire information; the connection relationship list is a document format list;

[0109] A component graphic generation module, used for generating a component graphic based on a component identifier;

[0110] A source connection point adding module, used for adding a source connection point in a component graphic based on source connection point information corresponding to a component identifier;

[0111] A wire adding module, used for leading out a wire at a source connection point based on the wire information corresponding to the source connection point, and adding the wire information;

[0112] A target connection point information adding module is used to add the target connection point information at the end of the wire based on the target connection point information corresponding to the source connection point to generate an electrical schematic diagram;

[0113] Display module, used to show the electrical schematic diagram to the user.

[0114] Optionally, the component graphic generation module includes:

[0115] The first generating unit is used to generate a black box component graphic based on the component identifier, where the black box component graphic is a blank frame.

[0116] Optionally, the connection relationship list also includes component selection graphic information, and the basic component graphic generation module includes:

[0117] The second generating unit is used to generate a component selection graph based on the component selection graph information corresponding to the component identifier.

[0118] Optionally, the device further comprises:

[0119] An extraction module, used for extracting the total number of component identifiers, the total number of source connection points, the total number of target connection points and the total number of wires based on the connection relationship list;

[0120] The drawing adjustment module is used for determining the size and number of pages of the drawing for generating the electrical schematic diagram according to the total number of component identifiers, the total number of source connection points, the total number of target connection points and the total number of wires.

[0121] Optionally, the display module includes:

[0122] The display unit is used to extract the model and serial number of each component identifier, sort the electrical schematics corresponding to each component identifier according to the model and serial number of the component identifier, and display them to the user.

[0123] Optionally, obtain a module, including:

[0124] A first acquisition unit is used to extract connection relationship features in the electrical schematic diagram in PDF format and generate a connection relationship list;

[0125] Alternatively, the second acquisition unit is used to receive a connection relationship list corresponding to the electrical schematic diagram imported by a user.

[0126] Optionally, the connection relationship list includes one of Excel format, CSV format or TXT format.

[0127] Optionally, the device further comprises:

[0128] The link generation module is used to determine, based on the source connection point information and the target connection point information, that when the corresponding source connection point and the target connection point are in the same drawing, form a link between the corresponding source connection point and the target connection point.

[0129] The device for generating an electrical schematic diagram provided in the embodiment of the present invention can execute the method for generating an electrical schematic diagram provided in any embodiment of the present invention, and has the functional modules and beneficial effects corresponding to the execution method.

[0130] An embodiment of the present invention provides an electronic device, the electronic device comprising:

[0131] at least one processor; and

[0132] a memory communicatively connected to the at least one processor; wherein,

[0133] 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 method for generating an electrical schematic diagram described in any embodiment of the present invention.

[0134] Fig. 9 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can 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.

[0135] like Fig. 9 As 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 random access memory (RAM) 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the read-only memory (ROM) 12 and the random access memory (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.

[0136] A number of components in the electronic device 10 are connected to an input / output (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.

[0137] 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 executes the various methods and processes described above, such as a method for generating an electrical schematic diagram.

[0138] In some embodiments, the method for generating an electrical schematic diagram 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 a read-only memory (ROM) 12 and / or a communication unit 19. When the computer program is loaded into a random access memory (RAM) 13 and executed by the processor 11, one or more steps of the method for generating an electrical schematic diagram described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the method for generating an electrical schematic diagram in any other appropriate manner (e.g., by means of firmware).

[0139] 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.

[0140] 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.

[0141] An embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for generating an electrical schematic diagram described in any embodiment of the present invention when executed.

[0142] 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.

[0143] 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).

[0144] 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.

[0145] 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.

[0146] An embodiment of the present invention provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the method for generating an electrical schematic diagram according to any embodiment of the present invention is implemented.

[0147] The technical solution of the embodiment of the present invention is to obtain a connection relationship list corresponding to the electrical schematic diagram, wherein the connection relationship list includes at least a component identifier, source connection point information, target connection point information and wire information; the connection relationship list is a document format list; then, a component graphic is generated based on the component identifier; then, based on the source connection point information corresponding to the component identifier, a source connection point is added to the component graphic; then, based on the wire information corresponding to the source connection point, a wire is led out from the source connection point and wire information is added; then, based on the target connection point information corresponding to the source connection point, the target connection point information is added to the end of the wire, an electrical schematic diagram is generated, and displayed to the user. Therefore, the above method can convert a PDF schematic diagram or a connection relationship table into an editable CAD schematic diagram, which is convenient for engineers to directly edit, modify and supplement the design of the schematic diagram, and is not prone to errors, thereby improving drawing efficiency.

[0148] 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.

[0149] 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 generating an electrical schematic diagram, characterized in that: include: Acquire a connection relationship list corresponding to the electrical schematic diagram, wherein the connection relationship list includes at least a component identifier, source connection point information, target connection point information, and wire information; The connection relationship list is a document format list; generating a component graphic based on the component identifier; Adding a source connection point in the component graphic based on the source connection point information corresponding to the component identifier; Based on the wire information corresponding to the source connection point, lead out a wire from the source connection point and add the wire information; Based on the target connection point information corresponding to the source connection point, the target connection point information is added to the end of the wire, an electrical schematic diagram is generated, and displayed to the user.

2. The method for generating an electrical schematic diagram according to claim 1, characterized in that: Generating a component graphic based on the component identifier comprises: A black box component graphic is generated based on the component identifier, and the black box component graphic is in a blank frame shape.

3. The method for generating an electrical schematic diagram according to claim 1, characterized in that: The connection relationship list also includes component selection graphic information, and generating a component graphic based on the component identifier includes: A component selection graph is generated based on the component selection graph information corresponding to the component identifier.

4. The method for generating an electrical schematic diagram according to claim 1, characterized in that: Before generating a component graphic based on the component identifier, the method further includes: Extracting the total number of component identifiers, the total number of source connection points, the total number of target connection points, and the total number of wires based on the connection relationship list; The size and number of pages of the drawing for generating the electrical schematic diagram are determined according to the total number of the component identifiers, the total number of the source connection points, the total number of the target connection points and the total number of the wires.

5. The method for generating an electrical schematic diagram according to claim 1, characterized in that: The display to the user includes: The model and serial number of each component identifier are extracted, and the electrical schematics corresponding to each component identifier are sorted according to the model and serial number of the component identifier, and then displayed to the user.

6. The method for generating an electrical schematic diagram according to claim 1, characterized in that: Obtaining a list of connection relationships corresponding to an electrical schematic diagram includes: Extracting connection relationship features from the electrical schematic diagram in PDF format to generate the connection relationship list; or receiving the connection relationship list corresponding to the electrical schematic diagram imported by a user.

7. The method for generating an electrical schematic diagram according to claim 1, characterized in that: The connection relationship list includes one of Excel format, CSV format or TXT format.

8. The method for generating an electrical schematic diagram according to claim 1, characterized in that: After generating the electrical schematic, it also includes: When it is determined based on the source connection point information and the target connection point information that the corresponding source connection point and the target connection point are in the same drawing, a link is constructed between the corresponding source connection point and the target connection point.

9. A device for generating an electrical schematic diagram, characterized in that: include: An acquisition module is used to acquire a connection relationship list corresponding to the electrical schematic diagram, wherein the connection relationship list includes at least a component identifier, source connection point information, target connection point information, and wire information; the connection relationship list is a document format list; A component graphic generation module, used for generating a component graphic based on the component identifier; A source connection point adding module, used for adding a source connection point in the component graph based on the source connection point information corresponding to the component identifier; A wire adding module, used for leading out a wire at the source connection point based on the wire information corresponding to the source connection point, and adding the wire information; The target connection point information adding module is used to add the target connection point information at the end of the wire based on the target connection point information corresponding to the source connection point, generate an electrical schematic diagram, and display it to the user.

10. 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 method for generating an electrical schematic diagram according to any one of claims 1 to 8.

11. 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 method for generating an electrical schematic diagram according to any one of claims 1 to 8 when executed.

12. A computer program product, characterized in that The computer program product comprises a computer program, which, when executed by a processor, implements the method for generating an electrical schematic diagram according to any one of claims 1 to 8.