A web-based SVG substation wiring diagram drawing system
By using a wiring diagram drawing system based on SVG technology and CIM model, the problems of inconsistent graphic formats and complex operations in power grid wiring diagram drawing systems have been solved. This system achieves unified graphic formats and efficient online editing, reducing system maintenance difficulty and labor costs.
Patent Information
- Application Number
- CN202211650955.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-21
- Publication Date
- 2025-11-25
- Estimated Expiration
- 2042-12-21
AI Technical Summary
Existing power grid wiring diagram drawing systems suffer from inconsistent graphic formats, poor user interactivity, complex updates, and insufficient automatic topology and analysis capabilities, resulting in high labor and management costs.
The web-based SVG power plant wiring diagram drawing system, which combines SVG technology with CIM model standards, achieves unified graphic format and enhanced interactivity through access interface modules, drawing standard modules, intelligent drawing modules, and automatic drawing modules. It also supports cross-platform data display and online editing.
It has achieved a unified graphic format, improved the interactivity and interactivity of operation, reduced the difficulty of system maintenance, improved work efficiency, and supported multi-user concurrent editing and real-time updates.
Smart Images

Figure CN116309900B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application belongs to the field of electronic information technology, and particularly relates to a web-based SVG plant station wiring diagram drawing system and method. BACKGROUND
[0002] There are various voltage levels of power grids, different numbers of bus outgoing lines, and increasing numbers of direct-current isolation devices and small reactance devices. Due to reasons such as network construction, old line transformation, mode change, maintenance, and defect elimination, actual main wiring components and modes change in a variety of ways. To update the main wiring diagram in a timely manner, high labor and management costs need to be paid, and real-time main wiring diagrams must be used in daily dispatching operation. Whether the wiring diagram is correct directly affects the safe operation and production of the power grid. How to ensure the correctness of the wiring diagram and ensure that the main wiring diagram is consistent with the actual main wiring diagram is a production management problem that production and operation units must face. Most of the graphs of the monitoring pictures of the software systems of current various power software suppliers adopt private graph formats, and most of them adopt bitmap graph formats, which inevitably causes the graph data to be difficult to share. In addition, editing the graph and data entry and model establishment are independent and cannot be completed in one step. These bitmap graph formats have poor interactivity, updating and modification are complex, the automatic topology and analysis capability is not strong, and cannot meet the requirements of the dispatching center for the graph interactivity.
[0003] In order to solve the problems in the prior art, people have carried out long-term exploration and proposed various solutions. For example, a method for drawing an electrical wiring diagram by a WEB front end is disclosed in Chinese patent literature [201810923786.2], which includes the following steps: editing drawing, dragging and dropping graph elements, performing picture layout, and configuring picture and graph element attributes; defining structure types according to device and loop electrical quantity parameters, and adding structure definition list; in the template picture, using structure types, editing template variables, and assigning member variables under the template variables; using structure types, defining structure variables, and adding structure variable list; for template graph elements, using structure variables to replace template variables to realize batch real-time library variable binding; for non-template graph elements, using real-time library variables to bind one by one; constructing an SVG file, using a program language conversion method to convert the current picture program logic and data into an SVG file archive for WEB page loading, and realizing graph drawing.
[0004] The above scheme solves the problem of low efficiency of existing wiring diagram drawing to some extent, but the scheme still has many deficiencies, such as inconsistent graph formats leading to inconvenient wiring diagram drawing. SUMMARY
[0005] The present application aims to solve the above problems, and provides a web-based SVG plant station wiring diagram drawing system with reasonable design and unified graph format.
[0006] Another object of the present application is to provide a web-based SVG plant station wiring diagram drawing method which is convenient to draw wiring diagrams in order to solve the above problems.
[0007] To achieve the above object, the present application adopts the following technical scheme: a web-based SVG plant station wiring diagram drawing system, which comprises an access interface module, a drawing standard module, a graphic conversion module, an intelligent drawing module and an automatic drawing module, each of the above modules is developed and run based on the Batik toolkit and adopts SVG technology combined with the CIM model standard. The wiring diagram graphics and storage format standard of CIM / SVG or similar standards are used to solve the inconsistency of graphic objects output by different manufacturers, unify the drawing format, improve the graphic operation interactivity and interactivity, and facilitate wiring diagram drawing.
[0008] In the above-mentioned web-based SVG plant station wiring diagram drawing system, the access interface module adopts a web micro-service publishing technology based on VUE, and comprises the following open interfaces: a database access interface; a graphic user editing, generating tool and access interface; a network communication application layer protocol, application basic function and calling interface; and a development application interface. The access interface module supports multiple access interfaces and has the ability to correctly compile and run on a mixed platform of multiple operating systems.
[0009] In the above-mentioned web-based SVG plant station wiring diagram drawing system, the drawing standard module converts the graphic file formats of each application into SVG format storage, and the graphic conversion module converts the drawing into a vector graphic of device parameters and topological relationship. The graphic interactivity is improved by increasing the contact point area of the graphic element, the problem of too fine granularity and lack of main objects of the graphic element is solved by solving the association of master and slave objects in the CIM model, the CIM objects in the SVG file are uniformly managed, the inconsistency of SVG graphic object definitions output by different manufacturers is solved, and the SVG graphic operation interactivity and interactivity are improved.
[0010] In the above-mentioned web-based SVG plant station wiring diagram drawing system, the intelligent drawing module comprises a graphic source identification module, a device and index modeling module, a device graphic parameter extraction module and a device position positioning module. The intelligent drawing module has a network topology connection relationship, meets the demand of power flow calculation, and is convenient for modifying and editing the wiring diagram.
[0011] In the above-mentioned web-based SVG plant station wiring diagram drawing system, the automatic drawing module comprises a template layer, a data reading layer, an analysis layer and a drawing layer. The graphic is generated by using the drawing platform, and the graphic and the real-time database model are one-to-one corresponding, which simplifies the development process of the system, reduces the difficulty of system maintenance, and realizes the visual management of data.
[0012] A drawing method of a web-based SVG power plant wiring diagram drawing system, comprising the following steps:
[0013] S1: data cross-platform fusion;
[0014] S2: graphic conversion;
[0015] S3: graphic element management;
[0016] S4: graphic drawing. The method provides a graphic drawing environment dedicated to power systems, meeting the basic needs of power system graphic editing, which has both the commonality of graphic editing software and the particularity of power systems.
[0017] In the above-mentioned web-based SVG power plant wiring diagram drawing method, step S1 comprises the following steps:
[0018] S11: the system reads the power grid data, and displays the power grid data information in multiple view modes;
[0019] S12: form a whole or local system diagram, a long station wiring diagram and a power grid schematic diagram according to the power grid data. Adopting the web publishing technology based on VUE, it can be used without obstacles in different operating system environments, realizing cross-platform data display, online editing and business operation.
[0020] In the above-mentioned web-based SVG power plant wiring diagram drawing method, step S2 comprises the following steps:
[0021] S21: identify the graphic elements with typical characteristics in the drawing by analyzing tools;
[0022] S22: identify the standardized connection mode;
[0023] S23: model the equipment and its connection mode, and draw by using related functions;
[0024] S24: extract the equipment graphic parameters, abstract each main equipment according to the national standard symbol, and generate a standard unit;
[0025] S25: for the unrecognized elements, draw by the user. Analyze the existing *.dwg, *.dxf, *.vsd, *.xml and other popular design drawing formats, and convert the drawing into a vector graphic with equipment parameters and topological relationship.
[0026] In the above-mentioned web-based SVG power plant wiring diagram drawing method, step S3 comprises basic graphic elements, combined graphic elements, typical interval templates and customized graphic elements.
[0027] In the above-mentioned web-based SVG plant wiring diagram drawing method, step S4 comprises the following steps:
[0028] S41: performing basic operation on the graph;
[0029] S42: navigating to locate the designated area in the drawing area;
[0030] S43: automatically matching and drawing the wiring diagram by using the template;
[0031] S44: checking the drawn wiring diagram by using the topological connection relationship possessed by the wiring diagram;
[0032] S45: establishing the drawing model and associating the internal relationship between the device characteristics and the action logic.
[0033] Compared with the prior art, the advantages of the present application are as follows: the SVG technology is combined with the national standard of CIM model, the drawing format is unified, the guide drawing and free drawing based on the drawing library are facilitated, the SVG graph element is introduced to realize the online editing of the system wiring diagram, the users distributed on the network are allowed to edit and save the plant wiring diagram online, the dispatchers at all levels can maintain the wiring diagram at any time, and multiple users are allowed to work concurrently, thereby improving the work efficiency. BRIEF DESCRIPTION OF DRAWINGS
[0034] Figure 1 is the system principle diagram of the present application.
[0035] Figure 2 is the principle diagram of the automatic drawing module of the present application.
[0036] Figure 3 is the graph conversion flow diagram of the present application.
[0037] In the figure, the access interface module 1, the database access interface 11, the user editing, generating tool and access interface 12, the network communication application layer protocol, the application basic function and calling interface 13, the development application interface 14, the drawing standard module 2, the graph conversion module 3, the intelligent drawing module 4, the graph source identification module 41, the device and index modeling module 42, the device graph parameter extraction module 43, the device position positioning module 44, the automatic drawing module 5, the template layer 51, the data reading layer 52, the analysis layer 53 and the drawing layer 54. DETAILED DESCRIPTION
[0038] The present application will be further described in detail below in combination with the drawings and specific embodiments.
[0039] As Figure 1As shown, a web-based SVG substation wiring diagram drawing system includes an access interface module 1, a drawing standard module 2, a graphic conversion module 3, an intelligent drawing module 4, and an automatic drawing module 5, which are developed and run based on the Batik toolkit, using SVG technology combined with the CIM model standard.
[0040] Specifically, the access interface module 1 uses a VUE-based web microservice publishing technology, and includes the following open interfaces: a database access interface 11; a graphic user editing, generating tool, and access interface 12; a network communication application layer protocol, application basic function, and calling interface 13; and a development application interface 14. The access interface module 1 is based on the CIM (Common Information Model) / SVG (Scalable Vector Graphics) or similar standard substation wiring diagram graphics and storage format standard, solves the problem of inconsistent graphic object definitions output by different manufacturers, and improves the graphic operation interactivity and interactivity. The standard database access interface 11, the standard graphic user editing, generating tool, and access interface 12, and the standard network communication application layer protocol, application basic function, and calling interface 13 are used, thereby having the ability to correctly compile and run on a mixed platform of multiple operating systems; and a standard unified interface is provided, user application software program development is supported, interconnection or integration with other (dispatching system, production management information system) systems is facilitated; the development application interface 14 at the application level is provided, and the added applications can be included in the unified management of the system platform, thereby realizing cross-platform business integration.
[0041] In depth, the drawing standard module 2 converts the graphic file formats of various applications into SVG format storage. At the same time, the drawing standard module 2 uses different parsing controls to parse the existing *.dwg, *.dxf, *.vsd, *.xml, and other currently popular multiple design drawing formats, and the graphic conversion module 3 converts the drawings into vector graphics with device parameters and topological relationships. The main devices of the substation wiring diagram include main transformers, busbars, reactors, switches, switches, ground switches, PTs, and other devices; the related connection modes include incoming line modes, busbar segmentation forms, and the number of outgoing line routes. The devices and their connection modes are modeled, and related functions are used to realize corresponding drawing functions. The parameters of the drawing functions include the size ratio of the drawn graphics, the position coordinates of the graphics, the line width, and the self parameters of the graphics. The device graphic parameters are extracted, the main devices are abstracted according to the national standard symbols, abstracted into line segments, rectangles, circles, arcs, and special fillable graphics, and standard units are generated for calling in the automatic and rapid drawing process.
[0042] Further, the intelligent drawing module 4 comprises a graph source recognition module 41, a device and index modeling module 42, a device graph parameter extraction module 43 and a device position positioning module 44. The intelligent drawing module 4 establishes a drawing model, associates the internal relationship between device characteristics and action logic, realizes the intelligent drawing function, including the recognition of graph source, the modeling of device and related index, the extraction of device graph parameter, the determination of device position and the like. The connection relationship of network topology is recognized; on the basis of the function of WEB display drawing, considering the expansion, change and improvement of the wiring diagram, an independent editing function is introduced, so as to facilitate the modification and editing of the wiring diagram. On the basis of the determination of boundary condition, the automatic drawing module 5 can automatically draw the wiring diagram of new station.
[0043] The graph source recognition module 41 has the parsing function of various popular design drawing formats such as *.dwg, *.dxf, *.vsd, *.xml, adopts different parsing controls based on different drawing formats, parses the drawing and converts the drawing into vector graph with device parameters and topological relationship. The main devices of station wiring diagram include main transformer, bus, reactor, switch, knife switch, ground knife, PT and the like; the related indexes include incoming line mode, segmentation form of bus, number of outgoing line and the like. In order to realize the automatic and rapid drawing function, the above-mentioned devices and related indexes need to be modeled, the device and index modeling module 42 utilizes related functions to realize corresponding drawing function. The parameters of drawing function include the size ratio of drawing graph, position coordinates of graph, line width and self parameters of graph and the like. The device graph parameter extraction module 43 abstracts each main device according to national standard symbol, abstracts it into line segment, rectangle, circle, circular arc and special fillable graph and the like, and generates standard unit, so as to be called in the process of automatic and rapid drawing. For example, the transformer with Y / △ connection method can be abstracted as two circles, one triangle and five straight lines. In the process of intelligent drawing, the position of each device needs to be determined, and the position parameters of each device are transmitted as the parameters of graph drawing. The determination of position of each device depends on the size of graph in system diagram, the number of devices and the connection relationship of devices and the like. For example, in the electrical wiring diagram of transformer station, the incoming line mode of system, the number of outgoing line, whether to compensate and the like will affect the distribution of devices in the diagram. The device position positioning module 44 adopts the idea of structure first and device later to design the overall structure layout, determines the incoming line mode first, then determines the form of main transformer and finally determines the debugging of outgoing line, adopts the above incoming line and the below outgoing line, the incoming line side device occupies 1 / 3 of the whole diagram, the main transformer and high and low voltage bus occupy 1 / 3, the outgoing line side occupies 1 / 3, and each device is laid out according to the corresponding proportion, so as to make the proportion of graph interface appropriate and the structure reasonable.
[0044] For example, Figure 2As shown, the automatic drawing module 5 adopts integrated drawing, model, and database technology. Its core idea is to generate graphics using the drawing platform while simultaneously ensuring a one-to-one correspondence between the graphics and the real-time database model. This simplifies the system development process, reduces system maintenance difficulty, and achieves visualized data management. Based on this integrated technology, simultaneous input of graphics and data is easily achieved, and various wiring diagrams of the power system, such as substation primary wiring diagrams, system main wiring diagrams, system power flow diagrams, and substation power flow diagrams, can be updated in real time. The design of SVG elements and database tables is based on the CIM model and has a corresponding relationship with the classes in the CIM model. Therefore, SVG elements also have a corresponding relationship with the database tables. Each SVG element corresponds to one database table, and each drawn power graphic corresponds to a connection relationship table. It includes a template layer 51, which is responsible for defining templates and forming a template library; a data reading layer 52, which is responsible for reading CIM files and real-time data in the shared cache; an analysis layer 53, which is responsible for searching topology information and matching templates to generate grid coordinates of devices; and a drawing layer 54, which is responsible for dividing the display area according to the number and structure of topology islands, mapping grid coordinates to the corresponding display area, generating primitives, and drawing graphics.
[0045] A drawing method for a web-based SVG power plant wiring diagram drawing system includes the following steps:
[0046] S1: Cross-platform data integration;
[0047] S2: Graphics conversion;
[0048] S3: Element Management;
[0049] S4: Graphic drawing.
[0050] like Figure 3As shown, the graphic conversion includes DWG to SVG conversion, adding DWG drawing to the Batik project, referring to the corresponding namespace in the program, creating Application object and Document object, ModelSpace set as the attribute of the Document object, obtaining ModelSpace set object by using the Document object, and obtaining each entity in ModelSpace through a loop, judging the entity according to the entity name, and then forcibly converting the entity object into the corresponding AutoCAD operation class. At this point, the information of the entity object in the DWG file has been taken out and saved in the newly created object using the AutoCAD operation class. For different objects, different functions can be created to generate the corresponding graphic elements of the SVG file. The basic process is as follows: using the Batik control to create a Document object, according to the entity object passed in, referring to the mapping relationship in the table, creating the graphic of the SVG file using the CreateElement() method of the Document object, and assigning the object, sequentially obtaining the geometric information and attribute information of the AutoCAD entity object, setting the attributes of the graphic according to the SetAttribute() function of the VectorElement object, and when all the entity objects are converted, using the ExportSVG() method of the Document object to save as an SVG file.
[0051] In addition, step S1 includes the following steps:
[0052] S11: The system reads the power grid data to display the power grid data information in multiple view modes;
[0053] S12: Forming a whole or partial system diagram, a station wiring diagram, and a power grid schematic diagram according to the power grid data. Based on E language / component interface specification CIS, the power grid data is dynamically read to display the power grid data information in multiple view modes. Using this tool, the whole or partial system diagram, the station wiring diagram, the power grid schematic diagram, etc. can be automatically formed from the power grid data without graph modeling. The graph number relationship is changed from strong coupling to one-way derivation. Since the graph attributes such as shape, size, color, position, and connection relationship are pre-configured or dynamically and intelligently generated, the maintenance amount of the graph system is almost reduced to zero, the flexibility of power grid modeling, calculation, and analysis is improved, and the work efficiency of related personnel is improved. It is particularly suitable for application in a system for large-scale distributed data maintenance and management.
[0054] Meanwhile, step S2 includes the following steps:
[0055] S21: Identifying graph elements with typical characteristics in the drawing by using an analysis tool;
[0056] S22: Identify standardized connection methods;
[0057] S23: Model the device and its connection method, and use relevant functions to draw the diagram;
[0058] S24: Extract the graphic parameters of the equipment, abstract the main equipment according to national standard symbols, and generate standard units;
[0059] S25: For unrecognized components, the user shall draw them themselves.
[0060] Step S2, the graphic conversion, specifically includes the recognition of Visio wiring diagrams. This includes: identifying graphic elements, circuit breakers, grounding switches, equipment titles, connecting equipment, correcting graphic element scale, aligning equipment, and aligning connection lines. The Visio COM interface is used to read the Visio file and save it as a raw SVG. This raw SVG is then loaded into the wiring diagram editing platform. Graphic elements are identified using the grouping information in the raw wiring diagram. The mapping relationship between non-standard and standard graphic elements is automatically recorded and automatically loaded when recognizing other wiring diagrams. Rectangles conforming to circuit breaker identification rules are identified as circuit breakers; disconnectors and grounding combinations conforming to grounding switch identification rules are identified as grounding switches; separated text is identified as equipment titles; connection relationships are established between equipment; missing connection lines and points in the original Visio wiring diagram are added; graphic element scale is corrected according to the aspect ratio of standard graphic elements; equipment strings are aligned; and tilted connection lines are corrected to horizontal / vertical alignment.
[0061] The graphic editing display function is powerful and has been widely used in traditional drawing industry. To access the graphic element objects in CAD, first, an Application object is created, then the Document of the Application object is obtained, the ModelSpace is obtained according to the Document, and the graphic information and attribute information are obtained in the ModelSpace. Because the ModelSpace is a collection object, each graphic entity in the ModelSpace must be obtained through a loop. The complex graphics in CAD are composed of several conventional graphic entities. For some relatively complex block elements, they can also be decomposed into some simple graphic entities. Therefore, how to obtain some simple graphic entities in CAD is the key. The commonly used graphic entities include: line segment, straight line, ray, circle, circular arc, ellipse and elliptical arc, multi-segment, text, point, block, spline curve, etc. Since the elements in AutoCAD graph are only lines and texts, the recognition and conversion of AutoCAD wiring diagram are much more difficult than visio graph. The main work is completed as follows: using the background started AutoCAD to read the AutoCAD graph, using the com interface of AutoCAD to read the graphic data, and loading to the wiring diagram editing platform, synthesizing the polylines with the relative protrusions of 1 in the graph into circles, eliminating the overlapping line segments and covered line segments in the graph, eliminating the pseudo-span and area boundary in the graph, identifying the transformers, voltage transformers and transformer titles in the graph, deleting the CT and its title in the graph, identifying the busbars and busbar titles in the graph, identifying other devices in the graph, identifying the titles of the devices, identifying the models, specifications and other attributes of the devices, connecting the devices, and numbering the circuit breakers, knife switches and ground knives that are not numbered.
[0062] As can be seen, the step S3 includes basic primitives, combined primitives, typical interval templates and customized primitives. The basic primitives include horizontal busbar, vertical busbar, end point, static text, measurement value, rectangle, rounded rectangle, ellipse, triangle, connecting line, polyline and other basic graphics; the combined primitives mainly refer to the primitive symbols in the field of power system. In an electrical wiring diagram, there are many same electrical devices, such as switches, three-phase transformers, etc. Obviously, it is very time-consuming and laborious to draw each same device repeatedly when drawing an electrical wiring diagram. The combined primitive is designed to solve this problem. Different types of electrical devices are first drawn, and then saved as combined primitives. In the future, when encountering the same type of electrical device, the combined primitive can be dragged into the canvas to complete the drawing of the device. The standardized primitive library in the system provides primitives for typical devices in accordance with the requirements of industry standards, such as standardized main transformer, busbar, reactor, switch, knife switch, ground knife, PT and other devices for users to directly select and use.
[0063] The electrical main wiring diagram of power plant and substation in power system has certain specification, certain wiring mode and interval type, and the busbar of same wiring type only has difference in interval data, and the interval mode is often fixed. Aiming at this particularity, the typical interval template maintenance function is specially designed. According to the industry standard specification, some typical interval templates are built-in in the system, and the user can directly call out the template for use when drawing the graph. In addition, the user can also use the graph element in the graph element library to draw the frequently used interval, save it as a whole combination to the database to form a typical interval template. When drawing the main wiring diagram, this kind of template can be directly selected, and similar intervals can be drawn through simple operations such as copying, pasting and rotating, and can also be modified according to needs; according to actual situation, part of the wiring diagram or even the whole wiring diagram can be saved as a typical diagram for calling. The application of this method will greatly improve the drawing efficiency. For non-typical graph elements, such as various early warning icons, personalized customization can be carried out according to the needs to realize diversified display of graph elements.
[0064] Obviously, step S4 comprises the following steps:
[0065] S41: Basic operation on the graph. Move, rotate, stretch, delete, copy and paste the graph element; all device graph elements, measurements and their combinations support attribute copying between different graphs, if it is copying between plant station graphs, the plant station attribute should be automatically replaced; the plant station graph copying function is provided to automatically generate a new plant station, the device graph elements in the new plant station graph directly correspond to the device resources in the new plant station model, and all displayed measurements also correspond to the new plant station model; the interval and plant station template making and copying function is provided, after copying, the modification and replacement of the entire interval and plant station information can be easily realized, and the manual selection and selection of auxiliary equipment (such as ground knife and knife switch) and automatic labeling of device measurement are supported; when the plant station graph element in the power flow diagram is moved, the line connected to the plant station and the corresponding measurement should track the movement, and the opposite end is fixed.
[0066] : Navigation positioning of the specified area in the drawing area. The navigation window is equivalent to a thumbnail of the entire drawing area, which provides the user with preview and navigation functions of the entire drawing area, realizes fast zooming, positioning and moving according to the size of the wiring diagram, and facilitates the user to accurately and quickly position when drawing the wiring diagram; and assists the user to layout the drawn wiring diagram as a whole, so that the drawn wiring diagram is more beautiful;
[0067] S43: Automatic matching of templates to draw the wiring diagram. Based on the consideration of safety and reliability, the main wiring of the plant station generally adopts a typical wiring form; and for the same wiring form, the arrangement mode of the equipment in the wiring diagram is fixed, i.e. there is a template corresponding to each wiring form, so that the self-generation problem of the main wiring diagram of the plant station can be converted into a template matching problem; the main wiring diagram of the plant station is composed of various intervals, if the positions of the intervals in the diagram are determined, the positions of various elements are also determined, so that the interval of each device is the basic unit of drawing. According to the principle that the wiring form of the plant station is quite standard, the knowledge and experience of the design of the relevant plant station wiring type and its graphics can be arranged and defined into rules to establish a rule database that can be expanded by the user, so that the problem of drawing the graphics can be solved. On the basis of determining the boundary conditions, the wiring diagram of the new plant station can be automatically drawn by the software wizard.
[0068] The busbar of the highest voltage level is arranged at the upper left part of the image, and then the number of branches possessed by the busbars of other voltage levels is analyzed, and rules are used to determine the positions of the busbars on the image. The principle is to strive for the uniformity of the branch spacing in the upper and lower parts of the screen. Then the positions of the main transformers are determined according to the number of the main transformers; the positions of the branches contained in each group of busbars are determined by searching the power grid resource database, and the branch spacing can be calculated according to the total number of branches in the upper or lower part of the screen. The connection relationship between elements is determined based on the maximum power grid framework model and the power grid topology database.
[0069] : Using the topological connection relationship possessed by the wiring diagram, the drawn wiring diagram is checked, i.e. whether the connected elements appear disconnected connection state or whether the elements are misconnected, such as the direct connection of devices with inconsistent voltage levels (non-transformer devices). After the system detects similar situations, the user is prompted to appear the "problem" element on the canvas in a flashing manner, and the user can quickly determine the problem element and modify it. The system provides multiple checking mechanisms to ensure the correctness of parameters, models and consistency of the library, including but not limited to: input parameter legality checking (illegal characters, valid range, name conflict, etc.); connection relationship legality checking (different voltage level conductive devices are not allowed to be connected, conductive devices are not allowed to be connected by themselves, the same switch connection point can only be connected to one conductive device, etc.). At the same time, checking tools can be provided to check some errors that may exist in the graphics and models.
[0070] : Establish a drawing model to associate the internal relationship between device characteristics and action logic. Realize intelligent drawing and identify network topology connection relationship; including expansion, change and improvement of the wiring diagram, independent editing function to facilitate modification and editing of the wiring diagram.
[0071] In summary, the principle of the embodiment is to convert the format of graphic files between different systems into SVG format for storage and Web display by using SVG technology combined with the national standard of CIM model, to perform online editing of the wiring diagram by users, and to automatically generate SVG graphics by using data model and graphic model.
[0072] The specific embodiments described herein are merely illustrative of the principles of this application. Numerous modifications or adaptations will be readily apparent to those skilled in the art of this application without departing from the spirit or scope of the application as defined by the following claims.
[0073] Although the terms access interface module 1, database access interface 11, user editing, generating tool and access interface 12, network communication application layer protocol, application basic function and calling interface 13, development application interface 14, drawing standard module 2, graphic conversion module 3, intelligent drawing module 4, graphic source identification module 41, equipment and index modeling module 42, equipment graphic parameter extraction module 43, equipment position positioning module 44, automatic drawing module 5, template layer 51, data reading layer 52, analysis layer 53, drawing layer 54 are used more frequently herein, the possibility of using other terms is not excluded. The use of these terms is merely for the convenience of describing and explaining the essence of the application; any interpretation of them as any kind of additional limitation is contrary to the spirit of the application.
Claims
1. A web-based SVG plant wiring diagram drawing system, characterized in that, The wiring diagram drawing system includes an access interface module (1), a drawing standard module (2), a graphics conversion module (3), an intelligent drawing module (4), and an automatic drawing module (5). The access interface module (1) adopts Vue-based Web microservice publishing technology and includes the following open interfaces: database access interface (11); graphical user editing, generation tools and access interface (12); network communication application layer protocol, application basic functions and calling interface (13); application development interface (14). The above modules are developed and run based on the Batik toolkit, using SVG technology combined with the CIM model standard. The system adopts the following drawing method: S1: Cross-platform data integration; S11: The system dynamically reads power grid data based on the E language / component interface specification CIS and displays the power grid data information in multiple view modes; S12: Based on power grid data, generate overall or partial system diagrams, substation wiring diagrams, and power grid schematic diagrams; S2: Graphics conversion; S21: Identify graphic elements with typical characteristics in drawings using analytical tools; S22: Identify standardized connection methods; S23: Model the device and its connection method, and use relevant functions to draw the diagram; S24: Extract the graphic parameters of the equipment, abstract the main equipment according to national standard symbols, and generate standard units; S25: For unrecognized components, the user must draw them themselves; S3: Element Management; S4: Graphic drawing.
2. The web-based SVG plant wiring diagram drawing system according to claim 1, characterized in that, The drawing standard module (2) converts the graphic file format of each application into SVG format for storage, and the graphic conversion module (3) converts the drawing into vector graphics of equipment parameters and topological relationships.
3. The web-based SVG plant wiring diagram drawing system according to claim 1, characterized in that, The intelligent drawing module (4) includes a source image recognition module (41), an equipment and indicator modeling module (42), an equipment graphic parameter extraction module (43), and an equipment location positioning module (44).
4. The web-based SVG plant wiring diagram drawing system according to claim 1, characterized in that, The automatic drawing module (5) includes a template layer (51), a data reading layer (52), an analysis layer (53), and a drawing layer (54).
5. The web-based SVG plant wiring diagram drawing system according to claim 1, characterized in that, Step S3 includes basic graphic elements, combined graphic elements, typical interval templates, and customized graphic elements.
6. The web-based SVG plant wiring diagram drawing system according to claim 1, characterized in that, Step S4 includes the following steps: S41: Perform basic operations on graphics; S42: Specifies the area in the navigation and positioning drawing area; S43: Automatically draw wiring diagrams using template matching; S44: Utilize the topological connections provided in the wiring diagram to perform error detection on the drawn wiring diagram; S45: Establish a drawing model and link the inherent connections between device characteristics and action logic.
Citation Information
Patent Citations
Method for drawing an electrical wiring diagram of WEB front end
CN109190196A
Automatic layout method and system for wiring diagram of plant station
CN115204093A