CN114996886A - Multi-metadata-fused complete automatic drawing system and method for distribution network single line diagram - Google Patents

Multi-metadata-fused complete automatic drawing system and method for distribution network single line diagram Download PDF

Info

Publication number
CN114996886A
CN114996886A CN202210555428.7A CN202210555428A CN114996886A CN 114996886 A CN114996886 A CN 114996886A CN 202210555428 A CN202210555428 A CN 202210555428A CN 114996886 A CN114996886 A CN 114996886A
Authority
CN
China
Prior art keywords
module
database
information
distribution network
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210555428.7A
Other languages
Chinese (zh)
Inventor
徐经民
刘昱航
郭亮
邓才波
陈琛
刘洋
徐在德
安义
蒙天琪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
State Grid Corp of China SGCC
Electric Power Research Institute of State Grid Jiangxi Electric Power Co Ltd
Original Assignee
State Grid Corp of China SGCC
Electric Power Research Institute of State Grid Jiangxi Electric Power Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by State Grid Corp of China SGCC, Electric Power Research Institute of State Grid Jiangxi Electric Power Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN202210555428.7A priority Critical patent/CN114996886A/en
Publication of CN114996886A publication Critical patent/CN114996886A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/18Network design, e.g. design based on topological or interconnect aspects of utility systems, piping, heating ventilation air conditioning [HVAC] or cabling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/206Drawing of charts or graphs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • G06T7/66Analysis of geometric attributes of image moments or centre of gravity
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2113/00Details relating to the application field
    • G06F2113/04Power grid distribution networks
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y04INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
    • Y04SSYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
    • Y04S10/00Systems supporting electrical power generation, transmission or distribution
    • Y04S10/50Systems or methods supporting the power network operation or management, involving a certain degree of interaction with the load-side end user applications

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Geometry (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computational Mathematics (AREA)
  • Remote Sensing (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Data Mining & Analysis (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention belongs to the field of planning and design of a power distribution network, and relates to a complete automatic drawing system and a complete automatic drawing method for a single line diagram of a distribution network with multi-metadata fusion, wherein the system comprises a database, a data retrieval module, a drawing module for picture frames and title bars, a drawing module for circuit topology, an insertion module for explanatory texts and dynamic legends, and a local drawing module for graphs; the drawing module of the picture frame and the title bar, the drawing module of the circuit topology, the inserting module of the description text and the dynamic legend and the local amplifying module of the graph are respectively connected with a database, the database is connected with the data retrieval module, and the drawing module of the circuit topology is connected with the local amplifying module of the graph; the method has the advantages that the diagram forming idea of modularization, systematization and parameterization is adopted to fuse multiple data such as primitives, legends, layers and labels, and the batch generation of distribution network single line diagram drawings can be automatically achieved.

Description

Multi-metadata-fused complete automatic drawing system and method for distribution network single line diagram
Technical Field
The invention relates to a complete automatic drawing system and method for a distribution network single line diagram with multi-metadata fusion, and belongs to the field of planning and design of distribution networks.
Background
In the process of planning, designing and constructing the power distribution network, the distribution network single line diagram is mainly generated by manually drawing basic team and team personnel, and the problem of inconsistent distribution network engineering diagrams is increasingly prominent due to large overall workload and complex procedures. When a certain content is modified manually, a great amount of changes of planning and designing results such as drawings, texts and tables and technical data often exist, and the working efficiency is greatly reduced due to untimely aspects such as manual drawing of the graphics and data processing. If the medium-low voltage line drawing in the complete distribution network can be automatically generated, manual work such as drawing, data statistics and text compiling is replaced, the planning design and the intelligent level of the distribution network are greatly improved, and the working pressure of base-level teams and groups is greatly reduced.
At present, methods for automatically generating a single line diagram of a medium and low voltage distribution network at home and abroad mainly adopt secondary development of a professional drawing software interface, artificial intelligence algorithm study and judgment and the like, complete drawing cannot be realized by using the methods, a distribution line design scheme is lacked, and the practicability is poor. Therefore, the invention provides a complete automatic drawing system and a complete automatic drawing method for a distribution network single line diagram with multi-metadata fusion, a friendly human-computer interaction platform and a database are designed, complete batch drawing of the diagram can be realized, and the requirement of differential design of a distribution network is met.
Disclosure of Invention
The invention aims to solve the problem that the existing distribution network single line diagram cannot be automatically drawn into a diagram in a complete set manner, automatically realize batch generation of distribution network single line diagram drawings while ensuring the drawing quality of the diagrams, and reduce the design and maintenance workload of distribution network basic team diagrams.
The technical scheme adopted by the invention is as follows: a complete automatic drawing system of a distribution network single line diagram with multi-metadata fusion comprises a database, a data retrieval module, a drawing module of a picture frame and a title bar, a drawing module of a circuit topology, an insertion module of an explanatory text and a dynamic legend and a local graphic amplification module; the drawing module of the picture frame and the title bar, the drawing module of the circuit topology, the inserting module of the description text and the dynamic legend and the local amplifying module of the graph are respectively connected with the database, and the drawing module of the circuit topology and the local amplifying module of the graph are mutually connected; the distribution network single line drawing complete set automatic drawing generation method comprises a drawing frame and title bar drawing module, a line topology drawing module, an explanatory text and dynamic legend inserting module and a figure local amplifying module, and realizes the distribution network single line drawing complete set automatic drawing generation by calling AutoCAD drawing software and combining related information such as equipment types, equipment connection modes, equipment attributes, wire types and the like in a database. According to the invention, related information of a distribution line and equipment is obtained by utilizing a power grid GIS system or manual input and stored in a database, the topology of the line is retrieved according to line and platform project, and the multiple data such as primitives, legends, layers, labels and the like are fused by cooperatively calling among modules, so that the complete automatic drawing of medium and low voltage distribution network single line drawings is realized.
Furthermore, the database is used for integrating topology information and engineering information required by the distribution network single line diagram drawing to assist in realizing automatic drawing of the distribution network single line diagram drawing;
the data retrieval module is used for verifying the logical tightness of database data, realizing trueness and sorting of distribution network line engineering data and assisting in batch generation of different distribution network engineering drawings;
the drawing module of the drawing frame and the title bar is used for realizing the automatic drawing of the drawing frame and the title bar and the automatic insertion of the map file by calling the size of the drawing frame and the information of the title bar in the database;
the circuit topology drawing module is used for realizing automatic drawing and automatic label generation of drawing equipment and circuits by reading information such as drawing proportion, equipment type, lead model, laying type and the like in a database;
the description text and dynamic legend insertion module is used for realizing the self-adaptive automatic drawing of the description contents and legend legends of the drawings by reading the dimension information of the primitives and the description text information in the database;
the local graphic amplifying module is used for selecting the areas with low recognizability and crossed and overlapped graphic fonts in the drawing, calling the circuit topology drawing module to realize the amplification and redrawing of the designated area and automatically generating the local area graphics with high recognizability and definition.
Further, the database comprises a basic information database and a graph drawing database, the data retrieval module comprises a data sorting module and a data checking module, and the basic information database, the data sorting module and the data checking module are connected with each other;
the basic information database is used for storing and recording line topology information such as provincial and city information, geographical position information, equipment models, relevant time, connection modes among equipment, equipment attributes, wire types and the like of the distribution lines and providing a data basis for drawing a distribution network single line diagram;
the graph drawing database comprises a graphic element design library, a dynamic graphic example library, a drawing frame and title bar database and is used for assisting in realizing automatic drawing of the circuit graphic elements, the drawing frame and the title bar;
the data sorting module is used for respectively classifying data information belonging to different power distribution network projects by retrieving geographic position information, station area information and time information of a database circuit, and assisting in batch generation of different power distribution network project drawings;
the data checking module is used for checking the tightness of data logic by judging whether the database has isolated and connected error equipment.
Preferably, the primitive design library is used for expressing power equipment required in the power distribution network graphically and symbolically, and is used for realizing modular generation of primitive graphs and ensuring the consistency and the normalization of primitive graph design by storing primitive size information including relevant contents such as points, straight lines, multi-section lines, circles, characters, filling and the like.
Further preferably, the dynamic graph case library acquires the names and the types of the existing devices in the drawing by querying the primitive design library, and acquires the primitive size and the primitive description text length information, so as to automatically generate a drawing legend for describing the names of the drawing devices and the circuit primitives, and ensure that the legend includes all the devices appearing in the drawing.
Preferably, the drawing frame and title bar database is used for storing drawing frame size data, drawing proportion, map information and title bar information which meet national standards; the title information comprises the name of the line or the station area to which the drawing content belongs, the project name, the design, the approval, the signature information of the qualification personnel, the drawing generation date description, the drawing record number, the two-dimensional code and the like, and is used for automatically generating the drawing frame and the title bar information required by the national standard.
Preferably, the line topology drawing module includes a primitive connection drawing module and a labeling module. The primitive connection drawing module calculates a primitive GPS conversion coordinate, a primitive insertion point and a primitive arrangement angle for automatically drawing a picture by reading primitive information in a database, and automatically draws the picture according to a drawing proportion, a database wire model and a laying type; the marking module comprises equipment marking and line marking, the distance and the deflection angle between the wire and the equipment are obtained according to the requirement that the heights of all fonts in a national standard specified drawing are consistent, the minimum width factor meeting the marking requirement is calculated by combining the length of a marking character string, and automatic marking of the equipment and the line is realized.
Further preferably, the explanatory text and dynamic legend inserting module includes an explanatory text inserting module and a dynamic legend inserting module; the description text insertion module reads description text contents in a database, calculates the insertion width of the description text corresponding to each line by identifying the ASCII value of each character, and determines the description contents of the drawing by searching the blank area of the drawing; the dynamic legend inserting module is used for converting the maximum basic size of the graphic element and the maximum length information of the graphic element description text in the dynamic legend database into the height and the row width length required in legend drawing and automatically drawing to form the drawing legend description meeting the project acceptance requirement.
Further preferably, the calculation method of the primitive GPS conversion coordinate, the primitive insertion point and the primitive placement angle is as follows:
a1, retrieving a database to obtain GPS coordinates of each device under the same power distribution network project and storing the GPS coordinates into an array, and calculating the corresponding coordinates of the GPS coordinate center point of the array as the relative coordinate center point of a drawable area of the graph;
step A2, making a difference between each equipment coordinate in the array and a GPS central point coordinate, obtaining the distance between the equipment and a relative central point through a unit longitude and latitude corresponding to an AutoCAD millimeter coordinate value and a drawing proportion, thereby obtaining an equipment coordinate taking the relative coordinate central point as a coordinate origin, wherein the coordinate value is a drawing insertion point of the equipment;
step A3, calculating the primitive inserting and placing angles, wherein the database not only contains main line data but also branch line data, all angles related to the primitive equipment in the database are inquired and stored in a temporary array, and the maximum angle difference is calculated by rearranging and calculating the difference between the angles in the order from small to large;
and A4, calculating the angle corresponding to the angular bisector of the maximum angle difference, wherein the angle is the placing angle of the primitive.
The invention also provides a complete automatic drawing method of the distribution network single line diagram with the multi-metadata fusion, which comprises the following steps:
step S1, database entry: recording information of distribution lines and equipment geographic position coordinates, connection topology and the like into a database;
step S2, data logical check: searching whether isolated and wrong connection equipment data exist in the database through a data checking module, if so, executing a step S3, and if not, directly executing a step S4;
step S3, prompting the user whether to continue generating a distribution network single line diagram drawing, automatically deleting error information in the database if the drawing system continues to draw the diagram, generating an error report if the drawing system does not continue to draw the diagram, informing the user of problems in the database, quickly positioning error data rows and re-executing the step S1;
step S4, the data sorting module retrieves the power distribution project information of the database, classifies the data belonging to different power distribution projects respectively, and generates a folder for drawing according to the power distribution project names under the designated path;
step S5, drawing a picture frame and a title bar, drawing a circuit topology, inserting a description text and a dynamic legend, and calling AutoCAD drawing software by a graph local amplification module to automatically draw a distribution network single-line graph;
step S6, outputting a power distribution network project single line diagram drawing, and storing the drawn single line diagram in a folder corresponding to a project name;
and S7, repeating the step S5 and the step S6, and drawing the next power distribution network engineering single line diagram in the database until all the power distribution network engineering single line diagrams are automatically drawn.
The distribution network single line diagram complete automatic drawing system and method based on multi-metadata fusion has the advantages that compared with the traditional distribution network single line diagram drawing method, the system and method based on the multi-metadata fusion adopts the modular, systematic and parameterized diagram forming concept, all contents of a distribution network single line diagram can be completely and automatically drawn through standardized primitive design and intelligent data processing, distribution network engineering drawings with clear topology, standard labels and clear levels are generated in a complete set mode, and the system and method based on the multi-metadata fusion have strong engineering implementation necessity and significance. In the embodiment of the invention, through standardized primitive design and intelligent data processing, all contents of a distribution network single line drawing can be completely drawn, and a distribution network engineering drawing with clear topology, standard label and clear hierarchy is generated in a set manner, so that the manual maintenance workload of the drawing is greatly reduced, and the differential design and practical requirements of the distribution network engineering are met.
Drawings
Fig. 1 is a schematic structural composition diagram of a complete automatic drawing system of a distribution network single line diagram with multi-metadata fusion.
Fig. 2 is a flow chart of a complete automatic drawing method of a distribution network single line diagram with multivariate data fusion.
Fig. 3 is a diagram of a distribution line single line diagram complete automatic drawing effect.
Detailed Description
The invention is elucidated in further detail below with reference to the drawing.
As shown in fig. 1, the complete automatic drawing system of the distribution network single line diagram with the multi-metadata fusion comprises a database, a data retrieval module, a drawing module of a picture frame and a title bar, a drawing module of a line topology, an insertion module of an explanatory text and a dynamic legend, and a local graphic amplification module, wherein the drawing module of the picture frame and the title bar, the drawing module of the line topology, the insertion module of the explanatory text and the dynamic legend, and the local graphic amplification module are respectively connected with the database, and the drawing module of the line topology and the local graphic amplification module are connected with each other. And each module (comprising a drawing module of a picture frame and a title bar, a drawing module of a line topology, an illustration text and dynamic legend inserting module and a local graphic amplifying module) calls AutoCAD drawing software through a computer program, and realizes the complete automatic drawing generation of the distribution network single line drawing by combining the related information such as the equipment type, the equipment connection mode, the equipment attribute, the wire type and the like acquired from the database.
The database comprises a basic information database and a graph drawing database, the data retrieval module comprises a data sorting module and a data verification module, and the basic information database, the data sorting module and the data verification module are connected with one another.
In this embodiment, the basic information database is used for storing and recording line topology information such as provincial and city information, geographical location information, device models, time information, connection modes between devices, device attributes, wire types and the like of the distribution lines, and provides a data basis for drawing a distribution network single line diagram; the graph drawing database is used for expressing the information of the power equipment primitives, the drawing frames, the legends, the drawing frames and the title bars required in the power distribution network in a graphical and symbolic mode, and assists in realizing automatic drawing of the circuit primitives, the legends, the drawing frames and the title bars.
In this embodiment, the data sorting module respectively sorts the data information of different power distribution network projects in the basic information database by retrieving the geographic position information, the area information and the time information of the database lines, and assists in realizing the batch generation of different power distribution network project drawings; the data checking module is used for judging whether isolated and connection error equipment exists in the basic information database or not so as to realize data logic checking.
In this embodiment, the graphic drawing database includes a graphic element design library, a dynamic graphic example library, a frame and title bar database, and is used to assist in automatically drawing the line graphic elements, the graphic examples, the frame and the title bar.
The primitive design library is used for expressing power equipment required in the power distribution network in a graphical and symbolic mode, and is used for realizing modular generation of primitive graphs and guaranteeing consistency and normalization of primitive graph design by storing primitive size information of relevant contents.
The dynamic graph example library acquires the names and the types of the existing equipment in the graph by inquiring the graph element design library, and acquires the information of the graph element size and the graph element description text length, so that a graph element legend for describing the names of the graph equipment and the line graph element is automatically generated, and the graph element legend is ensured to cover all the equipment appearing in the graph.
The drawing frame and title bar database is used for storing drawing frame size data, drawing proportion, map information and title bar information which accord with the national standard; the title information comprises the name of the line or the station area to which the drawing content belongs, the project name, the design, the approval, the signature information of the qualification personnel, the drawing generation date description, the drawing record number, the two-dimensional code and the like, and is used for automatically generating the drawing frame and the title bar information required by the national standard.
In this embodiment, the line topology drawing module includes a primitive connection drawing module and a labeling module; the primitive connection drawing module calculates a primitive GPS conversion coordinate, a primitive insertion point and a primitive arrangement angle for automatically drawing a picture by reading primitive information in a database, and automatically draws the picture according to a drawing proportion, a database wire model and a laying type; the marking module comprises equipment marking and line marking, the distance and the deflection angle between the lead and the equipment are obtained according to the requirement that the heights of all fonts in a national standard specified drawing are consistent, the minimum width factor meeting the marking requirement is calculated by combining the length of a marking character string, and automatic marking of the equipment and the line is realized.
More specifically, the method for calculating the primitive GPS conversion coordinate, the primitive insertion point and the primitive placement angle is as follows:
a1, retrieving a database to obtain GPS coordinates of each device under the same power distribution network project, storing the GPS coordinates into an array, and calculating the corresponding central point of the GPS coordinates of the array as the central point of the relative coordinates of a drawable area of the graph;
step A2, making a difference between each device coordinate in the array and the GPS center point coordinate, obtaining the distance between the device and the relative center point through the unit longitude and latitude corresponding to the AutoCAD millimeter coordinate value and the drawing proportion, thereby obtaining the device coordinate taking the relative coordinate center point as the coordinate origin, the coordinate value being the drawing insertion point of the device, as follows:
Coordinate[node][0]=(nodeGPS[0]-StartGPS[0])*longitudeLength/drawScale
Coordinate[node][1]=(nodeGPS[1]-StartGPS[1])*latitudeLength/drawScale
wherein: coordinate [ node ] [0] represents the abscissa value of the AutoCAD insertion point of the ith device; coordinate [ node ] [1] represents the longitudinal Coordinate value of the AutoCAD insertion point of the ith device; nodeGPS [0] represents longitude coordinate value of ith device; nodeGPS [1] represents latitude coordinate value of ith equipment; StartGPS [0] represents a GPS coordinate center point longitude coordinate value; StartGPS [1] represents the latitude coordinate value of the center point of the GPS coordinate; longitudelelength represents an AutoCAD millimeter coordinate value corresponding to a longitude difference; latitudeleLength represents an AutoCAD millimeter coordinate value corresponding to a latitude difference value; drawScale represents the drawing scale;
step A3, calculating the primitive inserting and placing angles, wherein the database not only contains main line data but also branch line data, all angles related to the primitive equipment in the database are inquired and stored in a temporary array, and the maximum angle difference is calculated by rearranging and calculating the difference between the angles in the order from small to large;
and A4, calculating the angle corresponding to the angular bisector when the maximum angle difference exists, wherein the angle is the placing angle of the graphic primitive.
In this embodiment, the drawing module of the drawing frame and the title bar is used for automatically drawing the drawing frame and the title bar of the drawing by calling the drawing frame size, the drawing proportion, the map and the title bar information in the database of the drawing frame and the title bar, and automatically inserting the drawing frame and the title bar after the map of the database is intercepted according to the drawing frame size. The circuit topology drawing module is used for automatically drawing and marking the drawing equipment and the circuit by reading information such as drawing proportion, equipment type, lead model, laying type and the like in a database.
The marking comprises equipment marking and line marking, the distance and the deflection angle between the wire and the equipment are obtained according to the requirement that the heights of all fonts in a national standard specified drawing are consistent, the minimum width factor meeting the marking requirement is calculated by combining the length of a marking character string, and automatic marking of the equipment and the line is realized.
In this embodiment, the description text and dynamic legend insertion module is configured to read primitive size information and description text information in a database, so as to implement adaptive automatic drawing of drawing description contents and legend descriptions; the local graphic amplifying module selects the areas with low recognizability and crossed and overlapped graphic fonts in the drawing, calls the circuit topology drawing module to realize the amplification and redrawing of the designated area, and automatically generates the local area graphics with high recognizability and definition.
In this embodiment, the explanatory text and dynamic legend insertion module includes an explanatory text insertion module and a dynamic legend insertion module; the description text insertion module reads description text contents in a database, calculates the insertion width of the description text corresponding to each line by identifying the ASCII value of each character, and determines the size and the line feed position of each character by searching a blank area of a picture frame to realize the self-adaptive automatic drawing of the description contents of the drawings, such as line model summary, line length and the like; the dynamic legend inserting module is used for converting the maximum basic size of the graphic element and the maximum length information of the graphic element description text in the dynamic legend database into the height and the row width length required in legend drawing and automatically drawing to form the drawing legend description meeting the project acceptance requirement.
In this embodiment, the graph local amplification module is configured to implement selection, amplification and redrawing of a specified area in a distribution network single-line drawing, select an area with low recognizability and cross-overlapped graph fonts existing in the drawing, redefine a drawing center by using a graph equivalence principle, and then amplify and draw, thereby automatically generating a local area graph with high recognizability and definition.
The steps of utilizing the equivalence principle to carry out graphic amplification drawing are as follows:
(1) inserting and drawing original graphic primitives into the selected area of the drawing to be equivalent to the central point of the selected intercepting area, and temporarily changing the drawing proportion;
(2) and retrieving the database, extracting the line information, retrieving all line coordinates connected with the outside in the area, and calling a related module to redraw related contents such as the line, the primitive, the label and the like of the area.
In addition, as shown in fig. 2, the method for automatically drawing a network distribution single line diagram set by multivariate data fusion, provided by the invention, comprises the following steps:
step S1, database entry: recording information of distribution lines and equipment geographic position coordinates, connection topology and the like into a database;
step S2, data logical check: searching whether isolated and connection error equipment data exist in the database through a data checking module, if so, executing step S3, and if not, directly executing step S4;
step S3, prompting the user whether to continue generating a distribution network single line diagram drawing, automatically deleting error information in the database if the drawing system continues to draw the diagram, generating an error report if the drawing system does not continue to draw the diagram, informing the user of problems in the database, quickly positioning error data rows and re-executing the step S1;
step S4, the data sorting module retrieves the power distribution project information of the database, classifies the data belonging to different power distribution projects respectively, and generates a folder for drawing according to the power distribution project names under the designated path;
step S5, drawing a picture frame and a title bar, drawing a circuit topology, inserting a description text and a dynamic legend, and calling AutoCAD drawing software by a graph local amplification module to automatically draw a distribution network single-line graph; step S6, outputting a power distribution network project single line diagram drawing, and storing the drawn single line diagram in a folder corresponding to a project name;
and S7, repeating the steps S5 and S6, and drawing the next power distribution network project single line diagram in the database until all the power distribution network project single line diagrams are automatically drawn.
In the invention, whether the isolated and connection error equipment exists in the database or not is judged by the following steps:
step S21, inquiring whether the device has a connection device, if no connection device exists, inquiring whether the device connected with the connection device exists in the database, if no connection device exists, the device is an isolated device, otherwise, the device is not isolated;
step S22, inquiring whether the area name and provincial and city information of the connected device are consistent with the initial selected device, if not, indicating that the node connection information is wrong, inquiring whether the device in the area has a device connected with the node, if not, deleting the information of the connected device in the non-area and the node is an isolated node;
step S23, when an isolated node or non-platform area connection equipment appears, prompting a user whether to continue generating a distribution network single line diagram drawing, and if so, automatically deleting the isolated node or deleting connection information; if not, an error report is generated and the user is informed of the problems in the database, so that the error data row can be quickly positioned.
In order to verify the effectiveness of the system and the method for automatically drawing the single line diagram of the distribution network in a complete set based on the multi-metadata fusion, the invention will be described below with reference to the accompanying drawings by taking a low-voltage distribution line of a certain company in the west of the river as an example.
As shown in fig. 3, the distribution line single line diagram is automatically drawn into a diagram in a complete set, in this embodiment, the data sorting module retrieves engineering data for classification, and the distribution network engineering single line diagram is automatically drawn and generated.
According to the distribution network single-line diagram complete automatic drawing system and method with multivariate data fusion, the modular, systematized and parameterized drawing concept is adopted, all contents of a distribution network single-line drawing can be completely and automatically drawn through standardized primitive design and intelligent data processing, and distribution network engineering drawings with clear topology, standard labels and clear layers are completely and completely formed. The manual maintenance of the graph is small, the power distribution network design and operation personnel can directly use the graph, and the differential design and practical requirements of the power distribution network engineering are met.
The embodiments of the present invention have been described in detail with reference to the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge of those skilled in the art without departing from the gist of the present invention.

Claims (10)

1. A complete automatic drawing system of a distribution network single line diagram fused with multi-metadata is characterized by comprising a database, a data retrieval module, a drawing module of a picture frame and a title bar, a circuit topology drawing module, an explanatory text and dynamic legend inserting module and a graph local amplifying module; the drawing module of the picture frame and the title bar, the drawing module of the circuit topology, the inserting module of the description text and the dynamic legend and the local amplifying module of the graph are respectively connected with the database, and the drawing module of the circuit topology and the local amplifying module of the graph are mutually connected; the drawing module of the drawing frame and the title bar, the drawing module of the circuit topology, the insertion module of the description text and the dynamic legend and the local graphic amplification module realize the complete automatic drawing of the distribution network single line drawing by calling the AutoCAD drawing software and combining the related information in the database.
2. The multi-data-converged distribution network single-line diagram complete automatic drawing system according to claim 1,
the database is used for integrating topology information and engineering information required by the drawing of the distribution network single line diagram and assisting in realizing the automatic drawing of the distribution network single line diagram drawing;
the data retrieval module is used for verifying the logical tightness of database data, realizing trueness and sorting of distribution network line engineering data and assisting in batch generation of different distribution network engineering drawings;
the drawing module of the drawing frame and the title bar is used for realizing the automatic drawing of the drawing frame and the title bar and the automatic insertion of the map file by calling the size of the drawing frame and the information of the title bar in the database;
the circuit topology drawing module is used for realizing automatic drawing and automatic label generation of drawing equipment and circuits by reading information such as drawing proportion, equipment type, lead model, laying type and the like in a database;
the description text and dynamic legend insertion module is used for realizing the self-adaptive automatic drawing of the description contents and legend legends of the drawings by reading the dimension information of the primitives and the description text information in the database;
the local graphic amplifying module is used for selecting the areas with low recognizability and crossed and overlapped graphic fonts in the drawing, calling the circuit topology drawing module to realize the amplification and redrawing of the designated area and automatically generating the local area graphics with high recognizability and definition.
3. The distribution network single-line diagram complete automatic drawing system based on multi-metadata fusion as claimed in claim 1,
the database comprises a basic information database and a graph drawing database, the data retrieval module comprises a data sorting module and a data verification module, and the basic information database, the data sorting module and the data verification module are connected with each other;
the basic information database is used for storing and recording provincial and city information, geographical position information, equipment models, related time and line topology information among equipment of the distribution lines, and provides a data basis for drawing a distribution network single line diagram;
the graph drawing database comprises a graphic element design library, a dynamic graphic example library, a drawing frame and title bar database and is used for assisting in realizing automatic drawing of the circuit graphic elements, the drawing frame and the title bar;
the data sorting module is used for respectively classifying data information belonging to different power distribution network projects by retrieving geographic position information, distribution area information and time information of a database circuit, and assisting in batch generation of different power distribution network project drawings;
the data checking module is used for checking the tightness of data logic by judging whether the database has isolated and connected error equipment.
4. The system of claim 3, wherein the primitive design library is used for representing power equipment required in the power distribution network graphically and symbolically, and is used for realizing modular generation of primitive graphs by storing primitive size information of related contents, so that consistency and normalization of primitive graph design are ensured.
5. The system of claim 3, wherein the dynamic graph instance library obtains names and types of existing devices in a graph by querying a graph element design library, obtains graph element size and graph element description text length information, is used for automatically generating a graph element legend for describing graph devices and line graph element names, and ensures that the graph element legend covers all devices appearing in the graph.
6. The system according to claim 3, wherein the drawing frame and title bar database is used for storing drawing frame size data, drawing scale, map information and title bar information which meet national standards; the title information comprises the name of the line or the station area to which the drawing content belongs, the project name, the design, the approval, the signature information of the qualification personnel, the drawing generation date description, the drawing record number, the two-dimensional code and the like, and is used for automatically generating the drawing frame and the title bar information required by the national standard.
7. The system of claim 1, wherein the line topology drawing module comprises a primitive linkage drawing module and a labeling module;
the primitive connection drawing module calculates a primitive GPS conversion coordinate, a primitive insertion point and a primitive arrangement angle for automatically drawing a picture by reading primitive information in a database, and automatically draws the picture according to a drawing proportion, a database wire model and a laying type;
the marking module comprises equipment marking and line marking, the distance and the deflection angle between the wire and the equipment are obtained according to the requirement that the heights of all fonts in a national standard specified drawing are consistent, the minimum width factor meeting the marking requirement is calculated by combining the length of a marking character string, and automatic marking of the equipment and the line is realized.
8. The distribution network single-line diagram complete automatic drawing system based on multi-metadata fusion of claim 1, wherein the description text and dynamic legend insertion module comprises a description text insertion module and a dynamic legend insertion module;
the description text insertion module reads description text contents in a database, calculates the insertion width of the description text corresponding to each line by identifying the ASCII value of each character, and determines the description contents of the drawing by searching the blank area of the drawing;
the dynamic legend inserting module is used for converting the maximum basic size of the graphic elements and the maximum length information of the graphic element description texts in the dynamic legend database into the height and the row width required in legend drawing and automatically drawing to form the drawing legend descriptions meeting the project acceptance requirements.
9. The system of claim 7, wherein the calculation method of the primitive GPS conversion coordinate, the primitive insertion point and the primitive placement angle comprises the following steps:
a1, retrieving a database to obtain GPS coordinates of each device under the same power distribution network project and storing the GPS coordinates into an array, and calculating the corresponding coordinates of the GPS coordinate center point of the array as the relative coordinate center point of a drawable area of the graph;
step A2, making a difference between each device coordinate in the array and a GPS center point coordinate, and obtaining the distance between the device and a relative center point through a unit longitude and latitude corresponding to an AutoCAD millimeter coordinate value and a drawing proportion, so as to obtain a device coordinate taking the relative coordinate center point as a coordinate origin, wherein the coordinate value is a drawing insertion point of the device;
step A3, calculating the primitive inserting and placing angles, wherein the database not only contains main line data but also branch line data, all angles related to the primitive equipment in the database are inquired and stored in a temporary array, and the maximum angle difference is calculated by rearranging and calculating the difference between the angles in the order from small to large;
and A4, calculating the angle corresponding to the angular bisector when the maximum angle difference exists, wherein the angle is the placing angle of the graphic primitive.
10. The multi-data fusion distribution network single line diagram complete automatic drawing method of the multi-data fusion distribution network single line diagram complete automatic drawing system adopting the multi-data fusion of claims 1-6, is characterized by comprising the following steps:
step S1, database entry: recording information of distribution lines and equipment geographic position coordinates, connection topology and the like into a database;
step S2, data logical check: searching whether isolated and connection error equipment data exist in the database through a data checking module, if so, executing step S3, and if not, directly executing step S4;
step S3, prompting the user whether to continue generating a distribution network single line diagram drawing, automatically deleting error information in the database if the drawing system continues to draw the diagram, generating an error report if the drawing system does not continue to draw the diagram, informing the user of problems in the database, quickly positioning error data rows and re-executing the step S1;
step S4, the data sorting module retrieves the power distribution project information of the database, classifies the data belonging to different power distribution projects respectively, and generates a folder for drawing according to the power distribution project names under the designated path;
step S5, drawing a picture frame and title bar, drawing a circuit topology, inserting a description text and a dynamic legend into the module, and calling AutoCAD drawing software to automatically draw a single line diagram of the distribution network by a local graphic amplification module;
step S6, outputting a power distribution network project single line diagram drawing, and storing the drawn single line diagram in a folder corresponding to a project name;
and S7, repeating the step S5 and the step S6, and drawing the next power distribution network engineering single line diagram in the database until all the power distribution network engineering single line diagrams are automatically drawn.
CN202210555428.7A 2022-05-20 2022-05-20 Multi-metadata-fused complete automatic drawing system and method for distribution network single line diagram Pending CN114996886A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210555428.7A CN114996886A (en) 2022-05-20 2022-05-20 Multi-metadata-fused complete automatic drawing system and method for distribution network single line diagram

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210555428.7A CN114996886A (en) 2022-05-20 2022-05-20 Multi-metadata-fused complete automatic drawing system and method for distribution network single line diagram

Publications (1)

Publication Number Publication Date
CN114996886A true CN114996886A (en) 2022-09-02

Family

ID=83027983

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210555428.7A Pending CN114996886A (en) 2022-05-20 2022-05-20 Multi-metadata-fused complete automatic drawing system and method for distribution network single line diagram

Country Status (1)

Country Link
CN (1) CN114996886A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116385253A (en) * 2023-01-06 2023-07-04 格兰菲智能科技有限公司 Primitive drawing method, device, computer equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116385253A (en) * 2023-01-06 2023-07-04 格兰菲智能科技有限公司 Primitive drawing method, device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN104616207B (en) Power network topology visualization system and method
CN107590206B (en) Method for generating reverse self-organizing signal flow graph of nuclear power plant control system
CN111062196B (en) Batch process flow card generation method based on CAD and Excel
CN105320811A (en) Method for establishing topological connected model of urban underground electricity pipe network
CN109977162A (en) A kind of urban and rural planning data transfer device, system and computer readable storage medium
CN110942403B (en) Table area topology model standing book acquisition system and method for mobile equipment
CN109491735B (en) Integrated data generation and verification integrated monitoring human-computer interface configuration implementation method
CN105279243A (en) Spatial data conversion method and system
US20030020765A1 (en) Method and system for transforming limited source graphical data
CN102184299A (en) Model conversion method and system from CAD (Computer Aided Design) system to three-dimensional checking system
CN112287773A (en) Primary wiring diagram primitive identification method based on convolutional neural network
CN105608119A (en) Rapid thematic map drawing technology
CN106528943B (en) A kind of cable shaft data drawing methods
CN114996886A (en) Multi-metadata-fused complete automatic drawing system and method for distribution network single line diagram
CN116167365B (en) Flow chart generation method based on form template
Ten et al. Extraction of geospatial topology and graphics for distribution automation framework
CN115757513A (en) Method for automatically arranging transformer area models into image based on structured data
CN114020857A (en) Rapid database building method and system for land survey
CN111830918B (en) EPLAN platform-based nuclear power DCS control cabinet complete drawing upgrading method and system
CN107240150A (en) A kind of three-dimensional tube numeral dissolves drawing method
JP2906826B2 (en) Equipment management system
CN109639520B (en) Computer-aided test method for network communication of reactor protection system
CN115576955B (en) Sensing equipment self-built coordinate information storage method and system based on database
Wiggins et al. Computing aspects of a large geographic information system for the European Community
CN111859589A (en) Method for automatically laying out primitives in transformer substation suitable for setting calculation software

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination