A system and method for real-time automatic generation of electrical drawings
Through real-time data exchange between the manager and the server, real-time automatic generation and automatic analysis of electrical drawings is realized, solving the problem that electrical drawings cannot be edited and analyzed in real time in the existing technology, and improving the accuracy and efficiency of electrical drawings.
Patent Information
- Application Number
- CN202011163692.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-27
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2040-10-27
AI Technical Summary
The prior art cannot edit electrical drawings in real time, and cannot automatically analyze the current direction and judge the abnormal operating status of the electrical system based on the electrical data provided by the drawings and hardware equipment.
The manager is used to collect electrical data from the distribution cabinet, exchange data with the server through Ethernet, the server processes and draws electrical diagrams, and the browser displays electrical diagrams, real-time automatic generation and automatic analysis of electrical drawings.
It improves the accuracy and efficiency of electrical diagrams, reduces human factors, can automatically display the current direction and judge abnormal operating status, realize distributed drawing editing and storage, and automatically update through real-time connection between the manager and the server.
Smart Images

Figure CN112270091B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a real-time automatic generation system and method for electrical drawings, belonging to the technical field of electrical drawings. Background Art
[0002] The electrical system diagram is a simple diagram that describes the layout of the electrical system and the power transmission process. It is the basis of power system management. Without the diagram, the management of the power supply and distribution system will be impossible. Traditionally, when a system failure occurs, power maintenance personnel go to the site to troubleshoot the problem with paper drawings in hand.
[0003] With the development of electronic communication technology in recent years, paper drawings have gradually been digitized. Managers can view drawings on the web through computers or mobile phones, and the drawings can display the electrical data of the current line. In order to achieve this function, the industry currently usually uses intelligent instruments + Internet access terminals + data servers + web browsers to achieve this. Their basic framework is as follows Figure 1 shown.
[0004] IoT developers in traditional industries use static graphics to convert electrical engineering CAD drawings directly into images and then display them on web pages (some developers may use vector graphics, which can be zoomed in and out without affecting the display effect). Then a data concentrator is used to collect the data of each instrument and then use GPRS or other forwarding modules to send the data to the server. The server background program will classify the data into the database and then fill the data into a fixed position on the page according to the preset program. In this way, the effect of an electrical drawing + real-time data display is achieved.
[0005] The existing technology uses the Internet of Things technology to realize data transmission, storage and simple display, but the drawing part is a whole picture that cannot be edited in real time. The system itself cannot "read" the electrical diagram, and cannot automatically analyze the current direction and determine whether the current operating status of each cabinet is abnormal based on the drawing and the telemetry and telesignaling provided by the hardware equipment. Summary of the invention
[0006] The purpose of the present invention is to overcome the deficiencies in the prior art and provide a system and method for automatically generating electrical drawings in real time, so as to solve the technical problem of automatically drawing electrical drawings based on drawings and electrical data provided by hardware devices.
[0007] To achieve the above object, the present invention is implemented by adopting the following technical solutions:
[0008] In a first aspect, the present invention provides a real-time automatic generation system for electrical drawings, comprising: a manager, used to collect electrical data of a power distribution system of a distribution cabinet and exchange data with a server via Ethernet; a server, said server being used to process the electrical data of the power distribution system uploaded by said manager and draw electrical diagrams based on the processed data; and a browser, said browser being able to receive signals from the server and present the electrical diagrams.
[0009] Furthermore, the server is connected to multiple managers via a router.
[0010] In a second aspect, the present invention provides a method for real-time automatic generation of electrical drawings, which is based on the above-mentioned real-time automatic generation system of electrical drawings and includes the following steps: collecting electrical data of the distribution system in units of distribution cabinets; aggregating and processing the collected electrical data of the distribution system through a server, and drawing an electrical diagram based on the processed electrical data; and displaying the electrical diagram through a browser.
[0011] Furthermore, the method for collecting electrical data of the distribution system based on distribution cabinets includes: entering the list of materials of the distribution equipment in the distribution cabinet through the manager; uploading the distribution cabinet characteristic data of the distribution cabinet through a mobile device; and uploading the distribution cabinet characteristic data and the entered list of materials of the distribution equipment to the server via Ethernet.
[0012] Furthermore, the method of summarizing and processing the collected electrical data of the distribution system through the server includes: constructing a server data structure based on the collected electrical data of the distribution system; the server data structure includes distribution cabinet characteristic data, distribution equipment material list and distribution cabinet related data: the distribution cabinet characteristic data is uploaded by the mobile terminal device, including the installation location, type and title of the distribution cabinet; the distribution equipment material list in the distribution cabinet is uploaded by the manager, including the distribution cabinet number, number of components, component coding, component model, component status, component rated current, component length and component accuracy; the distribution cabinet related data includes component attribute information pre-entered into the database and the distribution cabinet unique identifier and component unique identifier set by the server; the component attribute information pre-entered into the database includes component name, component graphic feature data, component graphic identifier, main branch data and component drawing attributes.
[0013] Furthermore, the method for drawing an electrical diagram based on the processed electrical data includes the following steps: extracting a material list of distribution equipment and related data of the distribution cabinet in the corresponding distribution cabinet based on the characteristic data of the distribution cabinet; drawing a distribution system and its connecting lines based on the extracted material list of distribution equipment and related data of the distribution cabinet; after completing the drawing of the distribution system of the distribution cabinet, the program continues to search for the next distribution system and draw it until the drawing of all distribution systems is completed.
[0014] Furthermore, the method for drawing a power distribution system and its connecting lines includes the following steps: determining whether the direction attribute of the power distribution cabinet is valid; if so, drawing the direction of the power distribution cabinet according to the direction attribute; otherwise, drawing the direction of the power distribution cabinet according to the direction attribute of the previous power distribution cabinet; determining whether the power distribution cabinet is a low-voltage incoming line cabinet; if so, processing the high-voltage outgoing cable between the high-voltage outgoing line cabinet and the low-voltage incoming line cabinet; determining whether the power distribution cabinet is a capacitor cabinet; if so, processing the distance between the power distribution cabinet and the previous power distribution cabinet; drawing the components in the power distribution cabinet according to the list of materials for the power distribution equipment; determining whether the current power distribution cabinet is an isolation cabinet, an incoming line cabinet or a metering cabinet; if so, rotating the entire power distribution cabinet and its component graphics 180°; generating a power distribution cabinet title and a detail viewing button.
[0015] Furthermore, the method for drawing components in a distribution cabinet according to a material list of a distribution equipment includes the following steps: retrieving corresponding graphic feature data in a database according to a component code, wherein the graphic feature data includes component vector graphics; constructing a connection method between the component and other components through main branch data; optimizing and adjusting the drawing coordinates of the component vector graphics according to the component type; adjusting the scaling ratio and placement position of the component vector graphics according to the component type; and arranging the component vector graphics on a canvas.
[0016] Furthermore, the component vector graphics are vector graphics files in SVG format.
[0017] Furthermore, the method of drawing components in a distribution cabinet according to a material list of a distribution equipment also includes the following steps: monitoring the status of a distribution system in the distribution cabinet through a manager; and drawing connection lines using different colors according to the current status of components.
[0018] Compared with the prior art, the present invention has the following beneficial effects:
[0019] 1. The present invention uses a manager installed on the distribution cabinet to edit and store the material list of the distribution equipment in the corresponding distribution cabinet. The user can compare the content in the material list with the actual object with his own eyes to see whether it is consistent, which can minimize errors; the server automatically obtains the list data from the manager without manual intervention and then draws the entire electrical diagram by itself, which minimizes human factors, improves the accuracy and efficiency of generating electrical diagrams, and saves the trouble of manual drawing;
[0020] 2. The present invention collects the electrical data of the power distribution system by using the power distribution cabinet as a unit, summarizes and processes the collected electrical data of the power distribution system, and draws the electrical diagram according to the processed electrical data, thereby realizing distributed drawing editing and storage, and distributing the data of the entire power supply and distribution drawing into small pieces to each power distribution cabinet unit. The data processing is efficient and simple, and the electrical data uploaded by the manager is fully automatically generated into electrical drawings with high accuracy;
[0021] 3. The present invention can automatically display the current trend and judge whether the current operating status of each cabinet is abnormal or not according to the drawings and the electrical data provided by the hardware equipment;
[0022] 4. The present invention displays electrical data through a browser, automatically adjusts line colors according to load conditions, and can perform fully automatic operation status analysis and troubleshooting;
[0023] 5. Connect to the server in real time through the manager. When the manager adjusts the data, the server will automatically update.
[0024] 6. Graphic files in SVG format can ensure scalability when scaling. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 It is a standard intelligent instrument block diagram;
[0026] Figure 2 It is the framework for implementing manager and server functions;
[0027] Figure 3 It is a logical diagram of material classification;
[0028] Figure 4 It is a schematic diagram of the hardware structure of the manager;
[0029] Figure 5 It is the manager material entry interface;
[0030] Figure 6 is a schematic diagram of the manager application;
[0031] Figure 7 It is a schematic diagram of the server software structure;
[0032] Figure 8 is the server data structure;
[0033] Fig. 9 It is the addGroup method that executes the logic diagram;
[0034] Fig.10 It is the flow chart of the addImage method execution of the component drawing;
[0035] Fig.11 It is a component graphic material library;
[0036] Fig.12 This is an example of the effect of the completed drawing. DETAILED DESCRIPTION
[0037] The present invention will be further described below in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and cannot be used to limit the protection scope of the present invention.
[0038] Embodiment 1:
[0039] This embodiment provides a real-time automatic generation system for electrical drawings, including: a manager, which is installed on a distribution cabinet and is used to collect electrical data of a distribution system of the distribution cabinet and exchange data with a server via Ethernet; a server, which is used to process the electrical data of the distribution system uploaded by the manager and draw an electrical diagram based on the processed data; the server can be connected to a mobile device via Ethernet; and a browser can receive a signal from the server and present the electrical diagram. The server is connected to multiple managers via a router.
[0040] This embodiment uses a manager installed on the distribution cabinet to edit and store the material list of the distribution equipment in the corresponding distribution cabinet. The user can compare with his own eyes whether the contents of the material list are consistent with the actual object, which can minimize errors; the server automatically obtains the list data from the manager without human intervention and then draws the entire electrical diagram by itself, which minimizes human factors and improves the accuracy and efficiency of generating electrical diagrams.
[0041] Embodiment 2:
[0042] This embodiment provides a real-time automatic electrical drawing generation method based on the real-time automatic electrical drawing generation system described in Example 1, comprising the following steps: collecting electrical data of the distribution system based on distribution cabinets; aggregating and processing the collected electrical data of the distribution system through a server, and drawing an electrical diagram based on the processed electrical data; and displaying the electrical diagram through a browser.
[0043] This embodiment collects the electrical data of the distribution system by distribution cabinet, summarizes and processes the collected electrical data of the distribution system, draws the electrical diagram based on the processed electrical data, realizes distributed drawing editing and storage, and disperses the data of the entire power supply and distribution drawing into each distribution cabinet unit. The data processing is efficient and simple, and the electrical drawings are automatically generated from the electrical data uploaded by the manager with high accuracy.
[0044] Embodiment three:
[0045] This embodiment provides a system and method for real-time automatic generation of electrical drawings. The system includes a manager, a router, a server, and a browser. The system hardware framework provided by this embodiment is as follows: Figure 2 shown.
[0046] This embodiment configures multiple distribution system managers that can be installed on different types of distribution cabinets. The manager can collect various electrical data in the corresponding distribution system, has good human-computer interaction functions, and uses Ethernet to exchange data with the server. The data structure of the bill of materials is introduced in the manager system software. Its specific implementation idea is as follows: There are certain rules to follow for the electrical configuration structure in the distribution cabinet, so the commonly used electrical equipment is summarized as follows Figure 3 This embodiment divides common electrical equipment into four categories: power access points, transformers, disconnect devices, and other equipment. Then, each device is further subdivided according to its characteristics, and finally a total of 56 subdivided materials are obtained. The material classification is as follows: Fig.11 As shown, the manager program pre-collects 56 material names, default models, default specifications (length, rated current, accuracy), simplified diagrams, equipment electrical models and other data. When using the manager for the first time, the user needs to manually enter the power distribution equipment in the power distribution cabinet in order. The user enters and adds equipment one by one according to the actual configuration of the power distribution cabinet, and finally forms a material list for the power distribution cabinet.
[0047] The manager will save the material list entered by the user and automatically upload it to the server via Ethernet. A complete power distribution system is composed of several types of power distribution cabinets. The manager of each power distribution cabinet can provide the corresponding list to the server. After the server summarizes the data, it draws a complete drawing based on these data. This embodiment calls this method distributed material list editing and storage, and its essence is that the data of the entire power supply and distribution drawing is broken down into small pieces and uploaded by the manager of each cabinet.
[0048] When the manager uploads the bill of materials, it also transmits the distribution cabinet number, such as "#1", to identify the distribution cabinet location and data classification.
[0049] The hardware structure of the manager is as follows Figure 4As shown in the figure, the main chip of the manager is a 32-bit ARM architecture microcontroller with built-in high-speed AD (analog-to-digital conversion) and DSP unit. The secondary signals collected by the voltage and current transformers are properly conditioned - filtered and voltage raised, and then transmitted to the microcontroller. The microcontroller converts the signals through the high-speed AD unit and then processes the data through the DSP unit to obtain the effective values of the 0-31 harmonics of each voltage and current (0th harmonic is the DC component and 1st harmonic is the fundamental component). Strong power switch signals, such as the voltage loss alarm signal and the closing circuit and opening circuit signals, are all between 110V and 220V. They need to pass through the current limiting resistor and then drive the optical coupler to realize the on-off detection of the microcontroller. Other passive switch signals, such as the knife switch trolley and other signals, directly control the optical coupler to connect to realize the detection of the microcontroller. EEPROM is used to store system parameters, user configuration parameters and power information. External flash is used to store alarm information, fault recording data, protection setting data and material list data. The USB serial port is used to communicate with the host computer. The CAN interface is used to exchange data with other managers, the RS485 interface is used to exchange data with the dehumidifier, and the Ethernet is used to exchange data with the server. The manager provides good human-computer interaction logic so that users can edit the material list more conveniently. The manager material entry interface is as follows Figure 5 As shown, the left column is the title sorting of the materials. After selecting the corresponding component, the right side is the detailed information of the component, including the name, model, specification, rated current, length, and precision attributes of the component. Different types of components have different attributes. The manager can support the editing and storage of 28 materials (the manager of the reactive compensation cabinet can provide the editing and storage of 150 materials).
[0050] The manager is installed on the distribution cabinet to monitor the power distribution system of the entire distribution cabinet. Its application scenarios include: Figure 6 shown.
[0051] The server is connected to the manager via Ethernet, and the server software in the server can automatically draw electrical drawings based on the electrical data uploaded by the manager; Figure 7 As shown in the figure, the server software is divided into three parts: front-end software, back-end software, and socket service. The front-end software runs on the browser of the user's device and is the direct execution part of the drawing of the electrical diagram. The back-end software and database implement the data processing logic in the whole set of software. The socket service is used to realize the communication function between the server and the hardware (manager).
[0052] The entire power distribution electrical drawing is broken down into parts and stored in each manager hardware. Each manager stores the bill of materials of the distribution cabinet where it is located and transmits it to the server via Ethernet. After the server obtains the number of each distribution cabinet and the bill of materials of the distribution equipment in each distribution cabinet, it can start drawing the complete electrical drawing. The data to be processed by the server can be divided into three categories: distribution cabinet feature data, component data in the distribution cabinet, and electrical data. First of all, the feature data of the distribution cabinet is mainly input by the user, such as how many distribution cabinets there are in total, the number of each distribution cabinet and the type of each distribution cabinet, and the manager identification code (BID) on each distribution cabinet. The above is filled in by the user using a mobile terminal. Each time the server draws an electrical diagram, it extracts the feature data of a distribution cabinet each time, and then extracts the component data in each distribution cabinet and enters the drawing process.
[0053] like Figure 8 As shown, the data types related to the power distribution cabinet are composed of number, number of components, details of components, installation location, type, title, and unique identifier. The number identifies the number of the power distribution cabinet on the electrical drawing, such as the type of "#1-1". The number of components indicates how many components there are in the power distribution cabinet, and each component detail contains more content. The number, number of components, and details of each component are uploaded by the manager. The installation location, type, and title are uploaded by the user through the mobile software. The unique identifier is set by the server to manage each component.
[0054] The encoding, model, rated current, length, precision and other information in the attributes of each component are uploaded by the manager. The most important graphic feature is the vector graphics drawn by the developer for each component, which is the main data for completing the graphic drawing. The server extracts the corresponding graphic feature data from the database through the graphic identification of the component. The main branch is used to describe the connection method between the component and other components, mainly in series and parallel. In order to realize the establishment of graphics and data intercommunication, we need to establish a data type in the back-end and front-end software to describe the distribution cabinet and each component. The data structure of power distribution chestModel and its meaning are shown in Table 1:
[0055] Table 1 Data structure of power distribution cabinet
[0056]
[0057] The data in the chestModel structure is provided by the back-end software to the front-end software. After receiving the data, the front-end software starts to execute the addGroup method to draw the distribution cabinet and its connecting lines.
[0058] like Fig. 9As shown in the figure, the addGroup method implements the drawing logic of the distribution cabinet. First, determine whether the direction attribute of the distribution cabinet is valid. If it is valid, draw the direction of the distribution cabinet according to the corresponding parameters. Then determine whether the distribution cabinet is a low-voltage incoming cabinet, because the placement of the transformer is involved between the low-voltage incoming cabinet and the high-voltage outgoing cabinet. The basic layout is that the high-voltage distribution cabinet is placed on the same horizontal line, and the low-voltage distribution cabinet is placed on a horizontal line. The bridge between the high-voltage distribution cabinet and the low-voltage distribution cabinet is the high-voltage outgoing cable. The starting position of the high-voltage outgoing cable is the high-voltage outgoing cabinet, and its end position determines the starting position of the low-voltage incoming cabinet. Therefore, before drawing the low-voltage incoming cabinet, it is necessary to determine the drawing path of the high-voltage outgoing cable. Then determine whether the distribution cabinet is a capacitor cabinet. If it is, you need to adjust the layout of the capacitor cabinet. The default distance between the capacitor cabinet and the previous distribution cabinet is 350 pixels. However, since some low-voltage feeder cabinets (drawer cabinets) occupy a wider position on the diagram, you need to adjust the length of the horizontal connecting line (mother bridge) on the capacitor cabinet. Here, when drawing the previous distribution cabinet, you need to store the number of outgoing lines of the feeder cabinet, and adjust the distance of the bus when drawing the bus above the capacitor cabinet according to the number of outgoing lines.
[0059] Next, the method addImage of drawing components is called to realize the drawing of components. After the cabinet of the distribution cabinet is drawn, it continues to determine whether the current distribution cabinet is an isolation cabinet, an incoming line cabinet, or a metering cabinet. Because the bill of materials on the manager is edited according to the direction of current, and the current direction of these distribution cabinets is from bottom to top, the order of the bill of materials is opposite to the order of components in the actual distribution cabinet. Therefore, these distribution cabinets need to be adjusted after being drawn according to the addImage method-rotated 180 degrees. After that, the title of the distribution cabinet needs to be generated. Except for the low-voltage incoming line cabinet and the low-voltage feeder cabinet, the titles of the remaining distribution cabinets are directly displayed above the distribution cabinet area. If the distribution cabinet is a low-voltage incoming line cabinet, then the position of the transformer needs to be reserved above the distribution cabinet, so the title needs to be placed on the right or left side of the distribution cabinet. If it is a low-voltage feeder cabinet, there will generally be multiple branches, so it is necessary to first obtain the total number of branches of the feeder cabinet and then place the title in the middle.
[0060] The addImage method mentioned above is the core function for implementing the drawing of components. We also need to define the data structure of a single component as shown in Table 2, where id represents the type of component and its value corresponds to the numbering of 56 components in the manager. uuid represents the unique identifier of the component, which is generated by the back-end software. name is a description of the component. position represents the drawing area of the component. Its value is usually 1, indicating that the component is drawn on the main line. If it is 2, it means that the component needs to be drawn on the left side of the main line. If it is 3, it needs to be drawn on the right side of the main line. For example, the live display needs to be drawn on the left side of the main line, so the position value of the live display component is usually 2. The execution process of the addImage method is as follows Fig.10 As shown, execution depends on runtimeData (calculated by the backend software and passed to the frontend software), _this (the frontend software fills in data according to the algorithm), and the material library imageName.svg (database storage). The essence of the addImage method is to use a specific algorithm to intelligently add component material images according to the current running status, scale and adjust them reasonably, and finally display them on the canvas. Whenever an algorithm is executed, the drawing properties in _this will be adjusted (x, y, width, height, name, image).
[0061] Table 2 Component data structure
[0062]
[0063]
[0064] In the execution process of the addImage method, different colors will be used for outlining according to the current status of the components. When there is current on the current line and the current is less than 80% of the rated current, it will be green. When it is greater than 80% and less than 100%, it will be yellow. When it is greater than 100%, it will be red. If there is no current and the corresponding distribution cabinet has no voltage, no outlining will be performed. If there is current and the distribution cabinet is a reactive compensation cabinet, it will be blue. The next step is to find the corresponding material type in the database according to the data status at runtime. For example, the knife switch will have two component vector graphics, closed and open. If the status (switch or h_position) passed by the back-end software, the software needs to load the component vector graphics when the knife switch is closed. The next step is to adjust the scaling and placement of the component vector graphics according to the type of component. The x and y in _this represent the horizontal and vertical coordinates of the loading position of the component vector graphics, and the width and height represent the width and height of the component vector graphics respectively. Since the component vector graphics need to be centered for splicing, the horizontal coordinate x of the component vector graphics needs to be centered, that is, x-width / 2+position*width. Finally, load the component vector graphics and perform image adjustments according to the parameters in _this and finally load it onto the canvas. Component vector graphics can also be called extracted materials. Figure 3 The division method in the above example draws the materials of 56 components and generates graphic files in SVG format. The graphic files in SVG format can ensure the scalability when scaling. The styles of the material graphics are as follows: Fig.11 shown.
[0065] After completing the drawing of a component, the program will continue to search for the next component and draw it. When the last component of the distribution cabinet (basically the busbar) is found, the component drawing process of a distribution cabinet is completed. Fig.12 shown.
[0066] This embodiment uses a manager installed on the distribution cabinet to edit and store the material list of the distribution equipment in the corresponding distribution cabinet. The user can compare the content in the material list with the actual object to minimize errors. The user does not need to make changes after editing once.
[0067] The server automatically obtains the inventory data from the manager without human intervention and then draws the entire electrical diagram by itself, minimizing human factors. The server has full control over the drawings it "personally" generates, including the electrical principles and electrical models of the drawings, which can be simulated, truly meeting the requirements of the "smart grid".
[0068] For the manager on the cabinet, the performance of human-computer interaction can be improved to enhance the efficiency of user editing lists, and software import can be used to complete list editing; in addition, this embodiment can also import the customized list (BOM list) of the power distribution equipment in the distribution cabinet directly into the manager without manual entry, which can further improve the efficiency of the operation.
[0069] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0070] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0071] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0072] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0073] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0074] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0075] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A real-time automatic generation system for electrical drawings, characterized in that: include: A manager, the manager is used to collect electrical data of the power distribution system and exchange data with the server via Ethernet; A server, the server being used to process the electrical data of the power distribution system uploaded by the manager and to draw an electrical diagram based on the processed data; a browser capable of receiving a signal from the server and presenting the electrical diagram; The server is connected to a plurality of managers via a router; The method for the manager to collect electrical data of the power distribution system includes: Enter the list of materials for the power distribution equipment in the power distribution cabinet through the manager; Upload the characteristic data of the power distribution cabinet through the mobile device; Upload the distribution cabinet characteristic data and the entered distribution equipment material list to the server via Ethernet; The method in which the server processes the electrical data of the power distribution system uploaded by the manager and draws an electrical diagram based on the processed data comprises: constructing a server data structure based on the collected electrical data of the power distribution system; The server data structure includes distribution cabinet feature data, distribution equipment material list and distribution cabinet related data: The distribution cabinet characteristic data is uploaded by the mobile terminal device, including the installation location, type and title of the distribution cabinet; The power distribution equipment material list is uploaded by the manager, including the number of the power distribution cabinet, the number of components, the component code, the component model, the component status, the component rated current, the component length and the component accuracy; The power distribution cabinet related data includes component attribute information pre-entered into the database and the power distribution cabinet unique identification and component unique identification set by the server; The component attribute information pre-entered into the database includes component name, component graphic feature data, component graphic identification, main branch data and component drawing attributes; The method for drawing an electrical diagram based on processed electrical data comprises the following steps: Extract the corresponding power distribution equipment material list and power distribution cabinet related data according to the power distribution cabinet feature data; Draw the distribution cabinet and its connection lines based on the extracted distribution equipment material list and distribution cabinet related data; After the electrical structure of the distribution cabinet is drawn, continue to search for the next distribution cabinet and draw it until all distribution systems are drawn; The method of drawing a distribution cabinet and its connecting lines includes the following steps: Determine whether the direction attribute of the distribution cabinet is valid. If it is valid, draw the direction of the distribution cabinet according to the direction attribute; otherwise, draw the direction of the distribution cabinet according to the direction attribute of the previous distribution cabinet; Determine whether the power distribution cabinet is a low-voltage incoming cabinet. If so, process the high-voltage outgoing cable between the high-voltage outgoing cabinet and the low-voltage incoming cabinet. Determine whether the power distribution cabinet is a capacitor cabinet. If so, process the distance between the power distribution cabinet and the previous power distribution cabinet; Draw the components in the power distribution cabinet according to the material list of the power distribution equipment; Determine whether the current distribution cabinet is an isolation cabinet, incoming line cabinet or metering cabinet. If so, rotate the entire distribution cabinet and its component graphics 180°; Generate the distribution cabinet title and detail viewing button; The method for drawing components in a power distribution cabinet according to a material list of power distribution equipment comprises the following steps: Retrieving corresponding graphic feature data in a database according to the component code, wherein the graphic feature data includes component vector graphics; Construct the connection mode between the component and other components through the main branch data; Optimize and adjust the drawing coordinates of component vector graphics according to component types; Adjust the scaling and placement of component vector graphics according to the component type; Arrange component vector graphics onto the canvas; The component vector graphics are vector graphics files in SVG format; The method for drawing components in the power distribution cabinet according to the material list of the power distribution equipment also includes the following steps: Monitor the status of the power distribution system in the power distribution cabinet through the manager; Draw the connection lines in different colors according to the current status of the components.
2. A method for real-time automatic generation of electrical drawings, characterized in that: The real-time automatic generation system of electrical drawings according to claim 1 comprises the following steps: Collect electrical data of the power distribution system based on the power distribution cabinet; The collected electrical data of the power distribution system are aggregated and processed through the server, and an electrical diagram is drawn based on the processed electrical data; displaying the electrical diagram via a browser; The method for collecting electrical data of a power distribution system using a power distribution cabinet as a unit comprises: Enter the list of materials for the power distribution equipment in the power distribution cabinet through the manager; Upload the characteristic data of the power distribution cabinet through the mobile device; Upload the distribution cabinet characteristic data and the entered distribution equipment material list to the server via Ethernet; The method for aggregating and processing the collected electrical data of the power distribution system through the server includes: constructing a server data structure according to the collected electrical data of the power distribution system; The server data structure includes distribution cabinet feature data, distribution equipment material list and distribution cabinet related data: The distribution cabinet characteristic data is uploaded by the mobile terminal device, including the installation location, type and title of the distribution cabinet; The power distribution equipment material list is uploaded by the manager, including the number of the power distribution cabinet, the number of components, the component code, the component model, the component status, the component rated current, the component length and the component accuracy; The power distribution cabinet related data includes component attribute information pre-entered into the database and the power distribution cabinet unique identification and component unique identification set by the server; The component attribute information pre-entered into the database includes component name, component graphic feature data, component graphic identification, main branch data and component drawing attributes; The method for drawing an electrical diagram based on processed electrical data comprises the following steps: Extract the corresponding power distribution equipment material list and power distribution cabinet related data according to the power distribution cabinet feature data; Draw the distribution cabinet and its connection lines based on the extracted distribution equipment material list and distribution cabinet related data; After the electrical structure of the distribution cabinet is drawn, continue to search for the next distribution cabinet and draw it until all distribution systems are drawn; The method of drawing a distribution cabinet and its connecting lines includes the following steps: Determine whether the direction attribute of the distribution cabinet is valid. If it is valid, draw the direction of the distribution cabinet according to the direction attribute; otherwise, draw the direction of the distribution cabinet according to the direction attribute of the previous distribution cabinet; Determine whether the power distribution cabinet is a low-voltage incoming cabinet. If so, process the high-voltage outgoing cable between the high-voltage outgoing cabinet and the low-voltage incoming cabinet. Determine whether the power distribution cabinet is a capacitor cabinet. If so, process the distance between the power distribution cabinet and the previous power distribution cabinet; Draw the components in the power distribution cabinet according to the material list of the power distribution equipment; Determine whether the current distribution cabinet is an isolation cabinet, incoming line cabinet or metering cabinet. If so, rotate the entire distribution cabinet and its component graphics 180°; Generate the distribution cabinet title and detail viewing button; The method for drawing components in a power distribution cabinet according to a material list of power distribution equipment comprises the following steps: Retrieving corresponding graphic feature data in a database according to the component code, wherein the graphic feature data includes component vector graphics; Construct the connection mode between the component and other components through the main branch data; Optimize and adjust the drawing coordinates of component vector graphics according to component types; Adjust the scaling and placement of component vector graphics according to the component type; Arrange component vector graphics onto the canvas; The component vector graphics are vector graphics files in SVG format; The method for drawing components in the power distribution cabinet according to the material list of the power distribution equipment also includes the following steps: Monitor the status of the power distribution system in the power distribution cabinet through the manager; Draw the connection lines in different colors according to the current status of the components.
