Electrical schematic diagram editing method and device, electronic equipment and storage equipment
By identifying and generating editable files, and using modified files for batch modification and reverse analysis, the problem of low efficiency in schematic design modification in the existing technology is solved, and the rapid and efficient editing of electrical schematics is achieved.
Patent Information
- Application Number
- CN202411859441.7
- 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
The existing schematic design modification requires designers to manually adjust the schematic content one by one, resulting in a serious increase in design time and low efficiency.
By obtaining the drawing editing object, identifying its content and attributes, generating an editable file, obtaining a modified file containing the target attributes, and batch modifying the editable file. Finally, the modified data is reversely parsed and displayed in the schematic diagram.
It realizes rapid batch modification and editing of electrical schematics, simplifies operations, improves design efficiency, and solves the time and efficiency problems caused by designers' need to manually adjust drawings.
Smart Images

Figure CN119692283A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of automated design technology, and in particular to an electrical schematic editing method, device, electronic equipment and storage device. Background Art
[0002] In the process of automated electrical design, schematic design is an important part of electrical design. In the process of schematic design, designers usually draw drawings according to project requirements. After completing the drawing of the entire project, they sort out the corresponding design parameters (such as component parameters, signal parameters, topology, etc.).
[0003] In the existing schematic design scheme, it is impossible to batch modify the design parameters in the drawings. Therefore, when a large number of drawing information needs to be modified, designers need to manually adjust the schematic contents one by one, which seriously increases the design time and is inefficient. Summary of the invention
[0004] The present invention provides an electrical schematic editing method, device, electronic device and storage device to solve the problem that the existing schematic design modification requires designers to manually adjust the schematic contents one by one, resulting in a serious increase in design time and low efficiency.
[0005] According to one aspect of the present invention, there is provided an electrical schematic editing method, comprising: obtaining a drawing editing object based on a single or multiple schematics; identifying the content and attributes of the drawing editing object, and generating an editable file based on the identification result; obtaining a modification file containing target attributes, and batch modifying the editable files based on the modification file; reverse parsing the modified editable files, and displaying the reverse parsed data in the schematic.
[0006] Optionally, the identifying the content and attributes of the drawing editing object and generating an editable file based on the identification result includes: acquiring graphic information in the drawing editing object, and determining the editing content according to the graphic information; comparing the editing content with pre-stored content recorded in a preset database, and determining the pre-stored attributes corresponding to the pre-stored content that are consistent with the comparison as initial attributes; and displaying the editing content and the initial attributes in the editable file.
[0007] Optionally, the editing content includes at least one of the following: components, PLCs, terminals, link points and connecting lines.
[0008] Optionally, the reverse parsing of the modified editable file and displaying the reverse parsed data in the schematic diagram includes: obtaining attribute information recorded in the modified editable file; comparing the attribute information with pre-stored attributes recorded in a preset database, and determining pre-stored content corresponding to the pre-stored attributes that are consistent as content to be displayed; and displaying the content to be displayed in the schematic diagram.
[0009] Optionally, the acquiring of the modification file containing the target attribute and batch modifying the editable files based on the modification file includes:
[0010] One or more of the target attributes in the modified file are obtained, and the target attributes are imported into the editable file so that the target attributes replace the initial attributes in the editable file.
[0011] Optionally, obtaining a drawing editing object based on a single or multiple schematics includes: in response to a box selection operation on a single schematic, extracting all features within the box selection range to form the editing object; and / or, in response to a project selection operation on multiple schematics, extracting all features within the selected projects to form the editing object.
[0012] Optionally, both the modification file and the editable file are in electronic spreadsheet format.
[0013] According to another aspect of the present invention, there is provided an electrical schematic editing device, comprising: an editing object acquisition module, used to acquire a drawing editing object based on a single or multiple schematics; an identification module, used to identify the content and attributes of the drawing editing object, and generate an editable file based on the identification result; a batch editing module, used to acquire a modification file containing target attributes, and batch modify the editable files based on the modification file; and an image drawing module, used to reversely parse the modified editable file, and display the reverse parsed data in the schematic.
[0014] 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 schematic editing method.
[0015] 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 enable a processor to execute the above-mentioned electrical schematic editing method.
[0016] The technical solution of the embodiment of the present invention obtains a drawing editing object; identifies the content and attributes of the drawing editing object, and generates an editable file based on the identification result; obtains a modification file containing target attributes, and batch modifies the editable file based on the modification file; reversely parses the modified editable file, and displays the reverse parsed data in the schematic diagram. This solves the problem that the existing schematic design modification requires designers to manually adjust the schematic contents one by one, which leads to a serious increase in design time and low efficiency. By introducing editable files, electrical schematics can be quickly modified and edited in batches, the operation is simple, easy to implement, and the design efficiency can be improved.
[0017] 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
[0018] 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.
[0019] Figure 1 A flowchart of an electrical schematic diagram editing method provided in Embodiment 1 of the present invention;
[0020] Figure 2 A flowchart of a method for generating an editable file based on an electrical schematic diagram provided by an embodiment of the present invention;
[0021] Figure 3 A flowchart of an electrical schematic diagram editing method based on an editable file provided by an embodiment of the present invention;
[0022] Figure 4 A schematic diagram of the structure of an electrical schematic diagram editing device provided by an embodiment of the present invention;
[0023] Figure 5 A schematic diagram of the structure of an electronic device for implementing the electrical schematic diagram editing method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0024] 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.
[0025] 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.
[0026] Figure 1 This is a flowchart of an electrical schematic editing method provided in the first embodiment of the present invention. This embodiment can be applied to batch edit attribute parameters in electrical schematics based on externally imported files. The method can be executed by an electrical schematic editing device. The electrical schematic editing device can be implemented in the form of hardware and / or software. The electrical schematic editing device can be configured in an electronic device. Figure 1 As shown, the electrical schematic diagram editing method of the present application comprises the following steps:
[0027] S1: Get drawing editing objects based on single or multiple schematics.
[0028] The drawing editing object can be understood as the drawing content that needs to be modified and edited based on actual needs. In this embodiment, the schematic diagram is a dwg format file, and the drawing editing object can be all graphics and text information in the dwg format file.
[0029] Optionally, obtaining a drawing editing object based on a single or multiple schematics includes: in response to a box selection operation for a single schematic, extracting all features within the box selection range to form an editing object; and / or, in response to a project selection operation for multiple schematics, extracting all features within the selected project to form an editing object. Among them, the feature can be understood as valid information recorded in the schematic. In this embodiment, the feature includes graphics and text information. The project selection operation can be understood as a pick-up operation implemented based on the project code corresponding to the schematic. Specifically, taking the schematic as a dwg format file as an example, the designer can perform a box selection operation on all or part of the area in a single schematic, and extract all graphics and text information within the box selection range as an editing object. The designer can also select multiple schematics through the project code pick-up option, and extract all graphics and text information in the selected schematic as an editing object.
[0030] S2: Identify the content and attributes of the drawing editing object, and generate an editable file based on the identification results.
[0031] The content can be understood as the category to which the graphics and text information in the drawing editing object belongs. Typically, the content of the drawing editing object includes but is not limited to: components, terminals, PLCs, link points and connecting lines. Link points represent marking symbols pointing from the current position of the schematic to the opposite position.
[0032] Attributes can be understood as the characteristics, parameters and identity corresponding to the graphics and text information in the drawing editing object. Typically, the attributes of components include but are not limited to: name, code, pin number, manufacturer, model and connection logic; the attributes of terminals include but are not limited to: terminal serial number, terminal type, manufacturer and connection logic; the attributes of PLC include but are not limited to: name, code, pin number, manufacturer, model, firmware and software version, I / O port definition, IP address and connection logic; the attributes of link points include but are not limited to: code and link logic; the attributes of connecting lines include but are not limited to: wire diameter, wire type, casing color, number of wire cores, manufacturer and connection logic.
[0033] Content and attribute recognition of drawing editing objects means identifying the categories to which the graphics and text information in the drawing editing objects belong (such as components, terminals, PLCs, link points and connecting lines), and the attribute information corresponding to each category of content (name, code, terminal number, manufacturer, model and connection logic).
[0034] In this embodiment, the editable file can display the recognized content and its corresponding attributes. Optionally, the editable file is in a spreadsheet format. In this embodiment, the spreadsheet format includes but is not limited to any of the following: Excel spreadsheets, WPS spreadsheets, Google Sheets, Apple Numbers and other spreadsheets.
[0035] Specifically, by identifying the attribute information corresponding to different categories of content in the schematic diagram and recording them in corresponding editable files (such as Excel tables), designers can select multiple or even entire project contents for editing in the corresponding editable files (such as Excel tables).
[0036] S3: Obtain a modification file containing target attributes, and batch modify editable files based on the modification file.
[0037] Optionally, the modification file may be in electronic spreadsheet format. In this embodiment, the electronic spreadsheet format includes but is not limited to any of the following: Excel spreadsheets, WPS spreadsheets, Google Sheets, Apple Numbers and other electronic spreadsheets.
[0038] Optionally, a modification file containing target attributes is obtained, and batch modification is performed on the editable file based on the modification file, including: obtaining one or more target attributes in the modification file, and importing the target attributes into the editable file, so that the target attributes replace the initial attributes in the editable file. Specifically, the target attributes can be imported into the corresponding data area in the editable file by copying and pasting, such as pasting the target attributes into a data list with the same header, so as to realize the modification of multiple rows and columns of the table.
[0039] S4: Reverse parse the modified editable file and display the reverse parsing data in the schematic diagram.
[0040] The reverse parsing may be understood as parsing and obtaining the content of the editing object recorded in the editable file and its corresponding attribute information.
[0041] In this embodiment, the correspondence between different categories of content attribute information and graphic text information in the dwg format file can be established through calibration, thereby achieving reverse parsing of the editable file.
[0042] Specifically, the schematic diagram is identified for content, and different categories of editing objects such as components, PLCs, terminals, link points, connections, and their corresponding attribute information are organized in corresponding editable files (such as Excel tables). Designers can select multiple or even the entire content for editing in the tables corresponding to different categories of editing objects. By batch acquiring modification files (such as Excel tables) containing target attributes from the outside, the target attributes recorded in the modification files are copied and pasted into the editable files, and the initial attributes of the corresponding positions are replaced. For example, the firmware and software versions of the PLC, the I / O port definition and other attributes are modified to achieve batch editing of content attribute information. Furthermore, the modified content and its corresponding attribute information are compared with the content attribute information in the pre-stored corresponding relationship, and the consistent graphic text information is displayed in the modified schematic diagram.
[0043] Therefore, the technical solution of the present application, by introducing editable files, can quickly batch modify and edit electrical schematics, solving the problem that existing schematic design modifications require designers to manually adjust the schematic contents one by one, resulting in a serious increase in design time and low efficiency. The operation is simple and easy to implement, which can greatly improve design efficiency.
[0044] Optionally, Figure 2 A flowchart of a method for generating an editable file based on an electrical schematic diagram provided by an embodiment of the present invention. Figure 2 As shown, in the above step S2, the content and attributes of the drawing editing object are identified, and an editable file is generated based on the identification result, which specifically includes:
[0045] S201: Acquire graphic information in a drawing editing object, and determine editing content according to the graphic information.
[0046] Optionally, the editing content includes at least one of the following: a component, a PLC, a terminal, a link point, and a connection line.
[0047] S202: Compare the edited content with the pre-stored content recorded in the preset database, and determine the pre-stored attributes corresponding to the pre-stored content that is consistent with the comparison as the initial attributes.
[0048] Among them, the initial attributes can be understood as the attributes that need to be modified in the schematic diagram.
[0049] In this embodiment, the preset database is used to record the different categories of content to which the editing object belongs, the attribute information corresponding to the different content, and the correspondence between the content attributes and the graphic text information in the dwg format file. Optionally, the preset database can use a SQLit database. The preset database can be deployed in an application with an electrical drawing design function.
[0050] S203: Display the edited content and initial attributes in the editable file.
[0051] Specifically, different drawing objects in the schematic diagram can be edited into blocks (such as component graphics and their corresponding texts, PLC graphics and their corresponding texts, terminal graphics and their corresponding texts, link point graphics and their corresponding texts, and connection line graphics and their corresponding texts). By identifying the graphics of the blocks in the schematic diagram, the editing content (components, PLCs, terminals, link points, and connection lines) can be matched; the attribute information corresponding to each edited content can be recorded in a preset database (such as an SQLit database), and the initial attributes can be obtained by extracting the parameter information recorded in the SQLit database of the edited content, and the edited content and its corresponding initial attributes can be displayed in a table format. Therefore, by building a library for schematic diagram graphics, content, and attribute information, classified storage of different content attributes can be achieved, which facilitates the conversion of schematic diagram graphics to table files. It is simple and easy to use, stable and reliable, and has low cost and complexity.
[0052] Optionally, Figure 3 A flowchart of an electrical schematic diagram editing method based on an editable file provided by an embodiment of the present invention. Figure 3 As shown, in the above step S4, the modified editable file is reverse parsed, and the reverse parsed data is displayed in the schematic diagram, including:
[0053] S401: Acquire the attribute information recorded in the modified editable file.
[0054] In this embodiment, the attribute information is recorded in an Excel table, and the attribute information corresponding to specific graphic blocks in the drawing is imported and modified in batches through an externally imported Excel table.
[0055] S402: Compare the attribute information with the pre-stored attributes recorded in the preset database, and determine the pre-stored content corresponding to the pre-stored attributes that match the comparison as the content to be displayed.
[0056] The pre-stored content and the content to be displayed may be graphics and text information in a dwg file.
[0057] In this embodiment, the preset database is used to record the different categories of content to which the editing object belongs, the attribute information corresponding to the different content, and the correspondence between the content attributes and the graphic text information in the dwg format file. Optionally, the preset database can use a SQLit database. The preset database can be deployed in an application with an electrical drawing design function.
[0058] S403: Display the content to be displayed in the schematic diagram.
[0059] Specifically, when batch modifying drawings, the attribute information corresponding to specific graphic blocks in the drawings is batch imported and modified based on Excel tables, and the imported attribute information is recorded in a preset database (such as SQLit database) for classified storage. By associating the graphic text information in the schematic (dwg format file) with the database parameters, the modified attributes are displayed in the schematic. Therefore, by building a library for schematic graphics, content and attribute information, classified storage of different content attributes is achieved, which facilitates the conversion of table files to graphic files. It is simple and easy to use, stable and reliable, and has low cost and complexity.
[0060] Based on the same inventive concept, an embodiment of the present invention also provides an electrical schematic editing device. The electrical schematic editing device provided by the embodiment of the present invention can execute the electrical schematic editing method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0061] Figure 4 The present invention provides a schematic diagram of the structure of an electrical schematic diagram editing device. Figure 4 As shown, the electrical schematic diagram editing device includes: an editing object acquisition module 101, a recognition module 102, a batch editing module 103 and an image drawing module 104.
[0062] Among them, the editing object acquisition module 101 is used to obtain the drawing editing object based on a single or multiple schematic diagrams; the identification module 102 is used to identify the content and attributes of the drawing editing object, and generate an editable file based on the identification result; the batch editing module 103 is used to obtain the modification file containing the target attribute, and batch modify the editable files based on the modification file; the image drawing module 104 is used to reversely parse the modified editable file and display the reverse parsed data in the schematic diagram.
[0063] Optionally, the identification module 102 is configured to: obtain graphic information in the drawing editing object, and determine the editing content based on the graphic information; compare the editing content with the pre-stored content recorded in the preset database, and determine the pre-stored attributes corresponding to the pre-stored content that is consistent with the comparison as the initial attributes; display the editing content and the initial attributes in the editable file.
[0064] Optionally, the editing content includes at least one of the following: a component, a PLC, a terminal, a link point, and a connection line.
[0065] Optionally, the image drawing module 104 is configured to: obtain attribute information recorded in the modified editable file; compare the attribute information with pre-stored attributes recorded in a preset database, and determine the pre-stored content corresponding to the pre-stored attributes that match as the content to be displayed; and display the content to be displayed in the schematic diagram.
[0066] Optionally, the batch editing module 103 is configured to: obtain one or more target attributes in the modification file, and import the target attributes into the editable file so that the target attributes replace the initial attributes in the editable file.
[0067] Optionally, the editing object acquisition module 101 is configured to: in response to a box selection operation on a single schematic diagram, extract all features within the box selection range to form an editing object; and / or, in response to a project selection operation on multiple schematic diagrams, extract all features within the selected project to form an editing object.
[0068] Optionally, the modified files and editable files of the present application are in spreadsheet format.
[0069] Based on the above embodiments, an embodiment of the present invention further provides an electronic device, which includes: 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 schematic editing method.
[0070] Figure 5 A schematic diagram of the structure of an electronic device for implementing the electrical schematic editing 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.
[0071] like Figure 5 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 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.
[0072] 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.
[0073] 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 the electrical schematic editing method described above.
[0074] In some embodiments, the electrical schematic editing 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 schematic editing method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the electrical schematic editing method described above in any other appropriate manner (e.g., by means of firmware).
[0075] 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.
[0076] 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.
[0077] 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.
[0078] 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).
[0079] 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.
[0080] 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.
[0081] 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.
[0082] 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 editing an electrical schematic diagram, characterized in that: include: Get drawing editing objects based on single or multiple schematics; Identify the content and attributes of the drawing editing object, and generate an editable file based on the identification result; Obtaining a modification file containing target attributes, and batch modifying the editable files based on the modification file; The modified editable file is reverse parsed, and the reverse parsed data is displayed in the schematic diagram.
2. The electrical schematic editing method according to claim 1, characterized in that: The step of identifying the content and attributes of the drawing editing object and generating an editable file based on the identification result includes: Acquire graphic information in the drawing editing object, and determine editing content according to the graphic information; Comparing the edited content with pre-stored content recorded in a preset database, and determining the pre-stored attributes corresponding to the pre-stored content that are consistent with the comparison as the initial attributes; The edited content and the initial attributes are displayed in the editable file.
3. The electrical schematic editing method according to claim 2, characterized in that: The editing content includes at least one of the following: components, PLCs, terminals, link points, and connecting lines.
4. The electrical schematic editing method according to claim 1, characterized in that: The reverse parsing of the modified editable file and displaying the reverse parsing data in the schematic diagram includes: Obtaining the modified attribute information recorded in the editable file; Comparing the attribute information with pre-stored attributes recorded in a preset database, and determining the pre-stored content corresponding to the pre-stored attributes that are consistent with the comparison as the content to be displayed; The content to be displayed is displayed in the principle diagram.
5. The electrical schematic editing method according to claim 1, characterized in that: The obtaining of the modification file containing the target attribute and batch modifying the editable files based on the modification file includes: One or more of the target attributes in the modified file are obtained, and the target attributes are imported into the editable file so that the target attributes replace the initial attributes in the editable file.
6. The electrical schematic editing method according to claim 1, characterized in that: The obtaining of a drawing editing object based on a single or multiple schematic diagrams includes: In response to a box selection operation on a single schematic diagram, all features within the box selection range are extracted to form the editing object; and / or, In response to the item selection operation for the plurality of schematic diagrams, all features in the selected items are extracted to form the edited objects.
7. The electrical schematic editing method according to any one of claims 1 to 6, characterized in that: The modification file and the editable file are both in electronic spreadsheet format.
8. An electrical schematic diagram editing device, characterized in that: include: An editing object acquisition module is used to acquire drawing editing objects based on a single or multiple schematic diagrams; An identification module, used to identify the content and attributes of the drawing editing object and generate an editable file based on the identification result; A batch editing module, used for obtaining a modification file containing target attributes, and batch modifying the editable files based on the modification file; The image drawing module is used to reversely analyze the modified editable file and display the reverse analyzed data in the schematic 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 schematic editing 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 schematic editing method according to any one of claims 1 to 7 when executed.