CN108509676B - A kind of geographical retraction automatic drafting method of figure of power system - Google Patents

A kind of geographical retraction automatic drafting method of figure of power system Download PDF

Info

Publication number
CN108509676B
CN108509676B CN201810146647.3A CN201810146647A CN108509676B CN 108509676 B CN108509676 B CN 108509676B CN 201810146647 A CN201810146647 A CN 201810146647A CN 108509676 B CN108509676 B CN 108509676B
Authority
CN
China
Prior art keywords
equipment
distance
object set
coordinate
mark
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.)
Active
Application number
CN201810146647.3A
Other languages
Chinese (zh)
Other versions
CN108509676A (en
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.)
Foshan Power Supply Bureau of Guangdong Power Grid Corp
Original Assignee
Foshan Power Supply Bureau of Guangdong Power Grid Corp
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 Foshan Power Supply Bureau of Guangdong Power Grid Corp filed Critical Foshan Power Supply Bureau of Guangdong Power Grid Corp
Priority to CN201810146647.3A priority Critical patent/CN108509676B/en
Publication of CN108509676A publication Critical patent/CN108509676A/en
Application granted granted Critical
Publication of CN108509676B publication Critical patent/CN108509676B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • 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
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/06Energy or water supply

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Geometry (AREA)
  • Business, Economics & Management (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Economics (AREA)
  • Health & Medical Sciences (AREA)
  • Pure & Applied Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • Mathematical Analysis (AREA)
  • Computational Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Public Health (AREA)
  • Water Supply & Treatment (AREA)
  • Mathematical Optimization (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present invention relates to the technical fields of electric power supervisory control management method, more particularly, to a kind of geographical retraction automatic drafting method of figure of power system, use is not waited than geographical retraction placement algorithm, substation carries out retraction layout with reference to actual coordinate, the relative position between reservation station and station;Outlet switch is evenly distributed on substation's surrounding, using paper space and reduces crossing elimination;Equipment annotation is upper and lower by the mark progress of neighbouring device according to drawing white space, is dislocated, and realizes that equipment annotation is not overlapped;Placement algorithm guarantees that route only takes the air line, and keeps drawing layout clear beautiful, whole style is smooth vertical and horizontal.The system diagram drawing drawn using method of the invention, route is smooth vertical and horizontal, device layout is accurate, reasonable, beautiful, mark avoids excessively being overlapped, close to the use habit of power business department, and the probability that the expenditure of cost of human resources can be reduced and malfunctioned by hand, improve the intelligence of drawing work, it is ensured that drawing is properly generated and updated in time.

Description

A kind of geographical retraction automatic drafting method of figure of power system
Technical field
The present invention relates to the technical fields of electric power supervisory control management method, more particularly, to a kind of figure of power system Geographical retraction automatic drafting method.
Background technique
System diagram is one of electric system core drawing, can clearly show substation in electric system/power supply station's totality The full wired network relationship of power distribution network.System diagram can ensure that distribution scheduling implements the network control of the full wiring of power distribution network, i.e., by matching The visualization of power equipment communication relationship shows to promote entire distribution scheduling monitoring management ability in net system diagram.Such as: working as electricity When net encounters major network heavy-overload load need to be immediately controlled, it can believe by distribution line communication relationship between the station of system diagram and contact point Breath, auxiliary dispatching person immediately determine that the feeder line where associated loadings, and analysis decision load transfer plan and live load control system Scheme.And when for occurrence of large-area power outage event, system diagram is even more to carry out extensive, efficient power to restore effective Tool.In terms of Electric Power Network Planning construction, by distribution network systems figure, it can clearly show weak ring between main distribution power supply point Section, to provide most strong data supporting for electric grid investment planning, power generation configuration, user distribution etc..
Currently, electric power enterprise, research institute, scientific research colleges and universities are concentrated mainly on the research of figure of power system drafting pattern: (1) The manual drawing of figure of power system is realized using tools such as AutoCAD, Visio;(2) electrical connection equipment pel mould is established Type is laid out power equipment figure using power guidance algorithm.However, traditional manual drawing is slow at figure efficiency, need big The cartographer of amount carrys out manual maintenance, and cost of human resources is high, and drawing updates not in time, ununified pel standard at figure Specification, causing drawing to be drawn, style is different, and equipment shows confusion, and Hand drawing is easy error, safeguards band to railroad embankment Carry out security risk;Figure of power system is drawn automatically using power guidance algorithm, if power equipment quantity is more in drawing, Algorithm needs the positional relationship between continuous iterative cycles processing equipment, slow at figure efficiency, it is more to occupy computing resource, and participate in cloth The number of devices of office is inversely proportional with final layout effect, i.e., number of devices is more, and layout effect is more undesirable;Final layout effect Fruit is rendered as equipment and is uniformly distributed netted effect, different with the smooth vertical and horizontal layout type of power supply enterprise's system diagram used in everyday It causes, and is unable to embodiment device geographic direction information in drawing;Equipment wiring condition in station cannot objectively be showed.
Summary of the invention
It is an object of the invention to overcome the deficiencies of the prior art and provide a kind of geographical retractions of figure of power system to draw automatically Method processed, the probability that can be reduced the expenditure of cost of human resources and malfunction by hand, improves the intelligence of drawing work, it is ensured that figure Paper is properly generated and is updated in time.
In order to solve the above technical problems, the technical solution adopted by the present invention is that:
A kind of geographical retraction automatic drafting method of figure of power system is provided, comprising the following steps:
S10. figure of power system drawing model, including drawing object set, device object set, connection point object are established Set, connecting line object set and mark object set;
S20. data resource master data electric network model file is imported in figure of power system drawing model, and power grid mould is written Power equipment primary attribute, equipment room topological connection relation, equipment room subordinate relation, equipment latitude and longitude coordinates letter in type file Breath;
S30. drawing object set, device object set, tie point object set are read in figure of power system drawing model Conjunction, connecting line object set and mark object set, are arranged object drawing attribute and establish the relationship between each object;
S40. it according to the topological connection relation of equipment room, removes out except substation, electric room, feeder switch, middle pressure rack are empty Other equipment except line, midium voltage cable, loop networks switch re-establish equipment topological connection relation, to realize that simplifying equipment opens up Flutter the purpose of connection relationship;
S50. according to not waiting than geographical retraction algorithm, device object set is traversed, each equipment and drawing central point are calculated The distance between, and calculated distance is compared with predetermined value to adjust the spacing between equipment, carry out figure cloth Office;
S60. traversed according to equipment subordinate relation and obtain all devices in electric room, including bus equipment, inlet wire equipment and Line-outgoing equipment;The principle for following upper entering and lower leaving is laid out bus equipment, inlet wire equipment and the line-outgoing equipment in electric room, So that all bus equipments are laterally aligned in electric room, arrange from left to right, and inlet wire equipment and line-outgoing equipment are distinguished into cloth Office is in the two sides up and down of bus equipment;
S70. the oblique line object set in connecting line object set is obtained, traverses oblique line object set, and in every oblique line The middle vertical or horizontal break of access, so that connecting line object set meets smooth vertical and horizontal principle, and between guarantee connection line object Do not intersect;
S80. traversal mark object set obtains device object coordinate information associated by mark object;With device object Centered on coordinate, it is not laminated in principle each other to mark object, equipment annotation object is laid out according to nine grids rule;
S90. by after layout device object, connection line object, connection point object, mark the coordinates feedback of object to electric The drawing platform of Force system figure drawing model, graphing and by images outputting.
The geographical retraction automatic drafting method of figure of power system of the invention, it is real based on data resource platform master data model The automatic drafting of existing system diagram, the probability that can greatly reduce the expenditure of cost of human resources and malfunction by hand improve drawing work Intelligence, it is ensured that drawing is properly generated and is updated in time;And the system diagram drawing drawn based on this method, route are horizontal flat perpendicular Directly, device layout is accurate, reasonable, beautiful, and mark avoids excessive overlapping, can close to the use habit of power business department Most strong data supporting is provided for Electric Power Network Planning, outage analysis, dispatching and monitoring etc., realizes informationization, the intelligence of administration of power networks Change, it is horizontal to improve integrity service.
Preferably, power equipment primary attribute described in step S20 includes device name, device id, device numbering, electricity It presses grade and switch state, the equipment room topological connection relation includes terminal ID, corresponding device ID and affiliated connection Point ID, the equipment room subordinate relation include the affiliated functional location type of electricity room, equipment belonging to equipment and the affiliated line of equipment Road, the equipment latitude and longitude coordinates information includes longitude X and latitude Y.
Preferably, object drawing attribute is arranged as follows and establishes the relationship between each object by step S30:
S31. drawing object set is obtained, the drawing information of drawing object is set, and the drawing information includes drawing class Type, designation of drawing, version, affiliated unit, founder and creation time;
S32. device object set is traversed, the facility information of device object is set, and the facility information includes equipment class Type, device height, plant width classify to equipment according to device type, and face cluster tool, point device is added in face equipment Line cluster tool is added in addition point cluster tool, line equipment, is ranked up to device object set and is added to device object In drawing object;
S33. connecting line object set is traversed, line style, the line width information of setting connection line object are arranged belonging to connecting line The start node object and end node object of connecting line is arranged in device object, is ranked up and incites somebody to action to connecting line object set Connection line object is added in drawing object;
S34. tie point object set is traversed, the angle information of setting connection point object, setting connects to be set belonging to point object Standby object is ranked up tie point object set and connection point object is added in drawing object;
S35. traversal mark object set, the color of setting mark object, font information are arranged belonging to mark object and set Standby object is ranked up mark object set and mark object is added in drawing object.
Preferably, S40 simplifies equipment topological connection relation according to the following steps:
S41. initial plant is set by feeder switch, sets termination device for loop networks switch, according to opening up for equipment room Connection relationship is flutterred, topological follow-up analysis is carried out since feeder switch, between feeder switch and loop networks switch after the completion of analysis Connection path be set as main path, other paths are set as individual path, and remove all branches on individual path and set It is standby;
S42. device object set is traversed, is not concerned with equipment in removal system figure, only retains main equipment, the main equipment Including substation, electric room, feeder switch, middle pressure rack ceases to be busy, midium voltage cable and loop networks switch;
S43. it is directed to the branch equipment removed and is not concerned with equipment, the equipment before and after removing device is re-established topology Connection relationship.
Preferably, step S50 is carried out as follows:
S51. obtain device object maximum coordinates and min coordinates in drawing object: defining minimum X-coordinate is variable min X, maximum X-coordinate are max X, and minimum Y-coordinate is variable min Y, and maximum Y-coordinate is variable max X, traverse device object collection It closes, the X-coordinate and Y-coordinate of each device object in device object set is compared two-by-two, and maximin is stored in In relevant variable;
S52. calculate drawing center point coordinate: definition central point X-coordinate is variable center X, and central point Y-coordinate is to become Center Y is measured, wherein center X is calculated by formula center X=(max X-min X)/2, and center Y is by public affairs Formula center Y=(max Y-min Y)/2 is calculated;
S53. obtain the nearest and farthest substation equipment object of distance center point: the definition shortest distance is variable min Distance, maximum distance are variable max Distance, traverse device object set, obtain all devices object distance center The linear distance of point, and in maximin deposit relevant variable;
S54. calculate scaling D: most suitable distance is 1000 between predetermined two substation equipment objects, scaling D =1000/(max Distance-min Distance);
S55. the distance between substation equipment object: traversal device object is adjusted according to the scaling D in step S54 Set obtains device object all in device object set, calculates the distance between every two device object sub Distance, if judging, the distance is less than scheduled most suitable distance, increases the distance between device object, adjusts equipment pair The coordinate of elephant, until the distance between two device objects sub Distance is adjusted to scheduled most suitable distance;Judge the distance If more than scheduled most suitable distance, then the distance between two device objects are reduced, power transformation station coordinates is adjusted, until two device objects The distance between sub Distance be adjusted to scheduled most suitable distance.
Preferably, each inlet wire equipment and the order of connection of line-outgoing equipment and bus with practical situation keep one in step S60 It causes;There is fixed equipment interval between each inlet wire equipment room, each line-outgoing equipment, so that each equipment room is not overlapped.
Preferably, oblique line object set acquisition methods described in step S70 is as follows: traversal connecting line object set obtains The X-coordinate and Y-coordinate information for taking connecting line starting endpoint and termination end points, judge whether the X-coordinate of starting endpoint is equal to termination The X-coordinate of endpoint, whether the Y-coordinate of starting endpoint is equal to the Y-coordinate of termination end points, if the X, Y coordinates of starting endpoint differ In the X, Y coordinates of termination end points, then the connecting line does not meet smooth vertical and horizontal principle, and oblique line object is added in the connection line object Set.
Preferably, the mark object in step S80 is placed on equipment surrounding according to nine grids rule, according to it is upper and lower, left, The right side, upper left, upper right, lower-left, bottom right sequence are placed, if there are other equipment or marks for current location, are placed to next Position.It follows and is not overlapped principle each other equipment annotation is laid out, rationally utilize white space in drawing.
Compared with prior art, the beneficial effects of the present invention are:
(1) the geographical retraction automatic drafting method of figure of power system of the invention, is based on data resource platform master data mould Type realizes the automatic drafting of system diagram, and the probability that can greatly reduce the expenditure of cost of human resources and malfunction by hand improves drawing The intelligence of work, it is ensured that drawing is properly generated and updated in time.
(2) the geographical retraction automatic drafting method of figure of power system of the invention, use do not wait than geographical retraction layout calculation Method, substation carry out retraction layout with reference to actual coordinate, the relative position between reservation station and station;Outlet switch is evenly distributed on Substation's surrounding farthest utilizes paper space and reduction crossing elimination;Equipment annotation is according to drawing white space dynamic By the mark of neighbouring device carry out up and down, be dislocated, realize not being overlapped for equipment annotation;Guarantee that route only takes the air line, makes figure Paper cloth office is clearly beautiful, and whole style is smooth vertical and horizontal.
(3) the system diagram drawing drawn based on this method, route is smooth vertical and horizontal, and device layout is accurate, reasonable, beautiful, mark Note avoids excessive overlapping, can be Electric Power Network Planning, outage analysis, dispatching and monitoring close to the use habit of power business department The most strong data supporting of equal offers, realizes informationization, the intelligence of administration of power networks, it is horizontal to improve integrity service.
Detailed description of the invention
Fig. 1 is the flow chart of the geographical retraction automatic drafting method of figure of power system of the invention.
Specific embodiment
The present invention is further illustrated With reference to embodiment.Wherein, attached drawing only for illustration, What is indicated is only schematic diagram, rather than pictorial diagram, should not be understood as the limitation to this patent;Reality in order to better illustrate the present invention Example is applied, the certain components of attached drawing have omission, zoom in or out, and do not represent the size of actual product;To those skilled in the art For, the omitting of some known structures and their instructions in the attached drawings are understandable.
The same or similar label correspond to the same or similar components in the attached drawing of the embodiment of the present invention;It is retouched in of the invention In stating, it is to be understood that if the orientation or positional relationship for having the instructions such as term " on ", "lower", "left", "right" is based on attached drawing Shown in orientation or positional relationship, be merely for convenience of description of the present invention and simplification of the description, rather than indication or suggestion is signified Device or element must have a particular orientation, be constructed and operated in a specific orientation, therefore positional relationship is described in attached drawing Term only for illustration, should not be understood as the limitation to this patent, for the ordinary skill in the art, can To understand the concrete meaning of above-mentioned term as the case may be.
Embodiment 1
It is as shown in Figure 1 the flow chart of the geographical retraction automatic drafting method of figure of power system of the invention, including following Step:
S10. figure of power system drawing model, including drawing object set, device object set, connection point object are established Set, connecting line object set and mark object set;
S20. data resource master data electric network model file is imported in figure of power system drawing model, and power grid mould is written Power equipment primary attribute, equipment room topological connection relation, equipment room subordinate relation, equipment latitude and longitude coordinates letter in type file Breath;
S30. drawing object set, device object set, tie point object set are read in figure of power system drawing model Conjunction, connecting line object set and mark object set, are arranged object drawing attribute and establish the relationship between each object;
S40. it according to the topological connection relation of equipment room, removes out except substation, electric room, feeder switch, middle pressure rack are empty Other equipment except line, midium voltage cable, loop networks switch re-establish equipment topological connection relation, to realize that simplifying equipment opens up Flutter the purpose of connection relationship;
S50. according to not waiting than geographical retraction algorithm, device object set is traversed, each equipment and drawing central point are calculated The distance between, and calculated distance is compared with predetermined value to adjust the spacing between equipment, carry out figure cloth Office;
S60. traversed according to equipment subordinate relation and obtain all devices in electric room, including bus equipment, inlet wire equipment and Line-outgoing equipment;The principle for following upper entering and lower leaving is laid out bus equipment, inlet wire equipment and the line-outgoing equipment in electric room, So that all bus equipments are laterally aligned in electric room, arrange from left to right, and inlet wire equipment and line-outgoing equipment are distinguished into cloth Office is in the two sides up and down of bus equipment;
S70. the oblique line object set in connecting line object set is obtained, traverses oblique line object set, and in every oblique line The middle vertical or horizontal break of access, so that connecting line object set meets smooth vertical and horizontal principle, and between guarantee connection line object Do not intersect;
S80. traversal mark object set obtains device object coordinate information associated by mark object;With device object Centered on coordinate, it is not laminated in principle each other to mark object, equipment annotation object is laid out according to nine grids rule;
S90. by after layout device object, connection line object, connection point object, mark the coordinates feedback of object to electric The drawing platform of Force system figure drawing model, graphing and by images outputting.
Wherein, power equipment primary attribute described in step S20 includes device name, device id, device numbering, voltage Grade and switch state, the equipment room topological connection relation include terminal ID, corresponding device ID and affiliated tie point ID, the equipment room subordinate relation include the affiliated functional location type of electricity room, equipment belonging to equipment and the affiliated route of equipment, The equipment latitude and longitude coordinates information includes longitude X and latitude Y.
Object drawing attribute is arranged as follows and establishes the relationship between each object by step S30:
S31. drawing object set is obtained, the drawing information of drawing object is set, and the drawing information includes drawing class Type, designation of drawing, version, affiliated unit, founder and creation time;
S32. device object set is traversed, the facility information of device object is set, and the facility information includes equipment class Type, device height, plant width classify to equipment according to device type, are ranked up and will set to device object set Standby object is added in drawing object;
S33. connecting line object set is traversed, line style, the line width information of setting connection line object are arranged belonging to connecting line The start node object and end node object of connecting line is arranged in device object, is ranked up and incites somebody to action to connecting line object set Connection line object is added in drawing object;
S34. tie point object set is traversed, the angle information of setting connection point object, setting connects to be set belonging to point object Standby object is ranked up tie point object set and connection point object is added in drawing object;
S35. traversal mark object set, the color of setting mark object, font information are arranged belonging to mark object and set Standby object is ranked up mark object set and mark object is added in drawing object.
Step S40 simplifies equipment topological connection relation according to the following steps:
S41. initial plant is set by feeder switch, sets termination device for loop networks switch, according to opening up for equipment room Connection relationship is flutterred, topological follow-up analysis is carried out since feeder switch, between feeder switch and loop networks switch after the completion of analysis Connection path be set as main path, other paths are set as individual path, and remove all branches on individual path and set It is standby;
S42. device object set is traversed, is not concerned with equipment in removal system figure, only retains main equipment, the main equipment Including substation, electric room, feeder switch, middle pressure rack ceases to be busy, midium voltage cable and loop networks switch;
S43. it is directed to the branch equipment removed and is not concerned with equipment, the equipment before and after removing device is re-established topology Connection relationship.
Step S50 is carried out as follows:
S51. obtain device object maximum coordinates and min coordinates in drawing object: defining minimum X-coordinate is variable min X, maximum X-coordinate are max X, and minimum Y-coordinate is variable min Y, and maximum Y-coordinate is variable max X, traverse device object collection It closes, the X-coordinate and Y-coordinate of each device object in device object set is compared two-by-two, and maximin is stored in In relevant variable;
S52. calculate drawing center point coordinate: definition central point X-coordinate is variable center X, and central point Y-coordinate is to become Center Y is measured, wherein center X is calculated by formula center X=(max X-min X)/2, and center Y is by public affairs Formula center Y=(max Y-min Y)/2 is calculated;
S53. obtain the nearest and farthest substation equipment object of distance center point: the definition shortest distance is variable min Distance, maximum distance are variable max Distance, traverse device object set, obtain all devices object distance center The linear distance of point, and in maximin deposit relevant variable;
S54. calculate scaling D: most suitable distance is 1000 between predetermined two substation equipment objects, scaling D =1000/(max Distance-min Distance);
S55. the distance between substation equipment object: traversal device object is adjusted according to the scaling D in step S54 Set obtains device object all in device object set, calculates the distance between every two device object sub Distance, if judging, the distance is less than scheduled most suitable distance, increases the distance between device object, adjusts equipment pair The coordinate of elephant, until the distance between two device objects sub Distance is adjusted to scheduled most suitable distance;Judge the distance If more than scheduled most suitable distance, then the distance between two device objects are reduced, power transformation station coordinates is adjusted, until two device objects The distance between sub Distance be adjusted to scheduled most suitable distance.
Each inlet wire equipment and the order of connection of line-outgoing equipment and bus are consistent with practical situation in step S60;Respectively into There is fixed equipment interval between line equipment room, each line-outgoing equipment, so that each equipment room is not overlapped.
Oblique line object set acquisition methods described in step S70 is as follows: traversal connecting line object set obtains connecting line The X-coordinate and Y-coordinate information of starting endpoint and termination end points, judge whether the X-coordinate of starting endpoint is equal to the X seat of termination end points Mark, whether the Y-coordinate of starting endpoint is equal to the Y-coordinate of termination end points, if the X, Y coordinates of starting endpoint are not equal to termination end points X, Y coordinates, then the connecting line does not meet smooth vertical and horizontal principle, and oblique line object set is added in the connection line object.
Mark object in step S80 is placed on equipment surrounding according to nine grids rule, according to upper and lower, left and right, upper left, Upper right, lower-left, bottom right sequence are placed, if there are other equipment or marks for current location, are placed to the next position.It follows It is not overlapped principle each other to be laid out equipment annotation, rationally utilizes white space in drawing.
The present invention is not using waiting than geographical retraction placement algorithm, and substation carries out retraction layout with reference to actual coordinate, reservation Relative position between substation and substation, outlet switch are evenly distributed on substation's surrounding, farthest utilize figure Paper space and reduction crossing elimination.Equipment annotation carries out the mark of neighbouring device according to drawing white space dynamic upper and lower, left Dextroposition realizes not being overlapped for equipment annotation substantially.Placement algorithm guarantees that route only takes the air line, and makes the clear beauty of drawing layout It sees, whole style is smooth vertical and horizontal.
Obviously, the above embodiment of the present invention be only to clearly illustrate example of the present invention, and not be pair The restriction of embodiments of the present invention.For those of ordinary skill in the art, may be used also on the basis of the above description To make other variations or changes in different ways.There is no necessity and possibility to exhaust all the enbodiments.It is all this Made any modifications, equivalent replacements, and improvements etc., should be included in the claims in the present invention within the spirit and principle of invention Protection scope within.

Claims (7)

1. a kind of geographical retraction automatic drafting method of figure of power system, which comprises the following steps:
S10. establish figure of power system drawing model, including drawing object set, device object set, tie point object set, Connecting line object set and mark object set;
S20. data resource master data electric network model file is imported in figure of power system drawing model, and electric network model file is written In power equipment primary attribute, equipment room topological connection relation, equipment room subordinate relation, equipment latitude and longitude coordinates information;
S30. drawing object set is read in figure of power system drawing model, device object set, tie point object set, is connected Wiring object set and mark object set, are arranged object drawing attribute and establish the relationship between each object;
S40. it according to the topological connection relation of equipment room, removes out except substation, electric room, feeder switch, middle pressure rack ceases to be busy, middle pressure Other equipment except cable, loop networks switch re-establish equipment topological connection relation, to realize that simplifying equipment Topology connection closes The purpose of system;
S50. according to not waiting than geographical retraction algorithm, device object set is traversed, is calculated between each equipment and drawing central point Distance, and calculated distance is compared with predetermined value to adjust the spacing between equipment, carries out pattern layout;
S60. it is traversed according to equipment subordinate relation and obtains all devices in electric room, including bus equipment, inlet wire equipment and outlet Equipment;The principle for following upper entering and lower leaving is laid out bus equipment, inlet wire equipment and the line-outgoing equipment in electric room, so that All bus equipments are laterally aligned in electric room, arrange from left to right, and inlet wire equipment and line-outgoing equipment are laid out respectively The two sides up and down of bus equipment;
S70. the oblique line object set in connecting line object set is obtained, traverses oblique line object set, and connect in every oblique line Enter vertical or horizontal break, so that connecting line object set meets smooth vertical and horizontal principle, and guarantees not hand between connection line object Fork;
S80. traversal mark object set obtains device object coordinate information associated by mark object;With device object coordinate Centered on, it is not laminated in principle each other to mark object, equipment annotation object is laid out according to nine grids rule;
S90. by after layout device object, connection line object, connection point object, mark the coordinates feedback of object to electric system The drawing platform of figure drawing model, graphing and by images outputting;
Wherein, step S50 is carried out as follows:
S51. obtain device object maximum coordinates and min coordinates in drawing object: defining minimum X-coordinate is variable min X, most Big X-coordinate is max X, and minimum Y-coordinate is variable min Y, and maximum Y-coordinate is variable max X, traverses device object set, right The X-coordinate and Y-coordinate of each device object are compared two-by-two in device object set, and maximin deposit is mutually strained In amount;
S52. calculate drawing center point coordinate: definition central point X-coordinate is variable center X, and central point Y-coordinate is variable Center Y, wherein center X is calculated by formula center X=(max X-min X)/2, and center Y is by formula center Y=(max Y-min Y)/2 is calculated;
S53. obtain the nearest and farthest substation equipment object of distance center point: the definition shortest distance is variable min Distance, maximum distance are variable max Distance, traverse device object set, obtain all devices object distance center The linear distance of point, and in maximin deposit relevant variable;
S54. calculate scaling D: most suitable distance is 1000 between predetermined two substation equipment objects, scaling D= 1000/(max Distance-min Distance);
S55. the distance between substation equipment object: traversal device object set is adjusted according to the scaling D in step S54, Device object all in device object set is obtained, the distance between every two device object sub Distance is calculated, sentences If the distance of breaking is less than scheduled most suitable distance, increases the distance between device object, adjust the coordinate of device object, until The distance between two device objects sub Distance is adjusted to scheduled most suitable distance;Judge the distance if more than scheduled It is most suitable for distance, then reduces the distance between two device objects, power transformation station coordinates is adjusted, until the distance between two device objects Sub Distance is adjusted to scheduled most suitable distance.
2. the geographical retraction automatic drafting method of figure of power system according to claim 1, which is characterized in that step S20 Described in power equipment primary attribute include device name, device id, device numbering, voltage class and switch state, institute The equipment room topological connection relation stated includes terminal ID, corresponding device ID and affiliated tie point ID, the equipment room subordinate Relationship includes the affiliated functional location type of electricity room, equipment belonging to equipment and the affiliated route of equipment, and the equipment longitude and latitude is sat Marking information includes longitude X and latitude Y.
3. the geographical retraction automatic drafting method of figure of power system according to claim 2, which is characterized in that step S30 Object drawing attribute is set as follows and establishes the relationship between each object:
S31. drawing object set is obtained, the drawing information of drawing object is set, and the drawing information includes drawing type, drawing Title, version, affiliated unit, founder and creation time;
S32. device object set is traversed, the facility information of device object is set, and the facility information includes device type, equipment Highly, plant width classifies to equipment according to device type, is ranked up to device object set and adds device object Enter into drawing object;
S33. connecting line object set is traversed, connecting line corresponding device pair is arranged in line style, the line width information of setting connection line object As the start node object and end node object of connecting line is arranged, is ranked up to connecting line object set and by connecting line Object is added in drawing object;
S34. tie point object set, the angle information of setting connection point object, setting connection point object corresponding device pair are traversed As being ranked up to tie point object set and connection point object being added in drawing object;
S35. traversal mark object set, the color of setting mark object, font information, setting mark object corresponding device pair As being ranked up to mark object set and mark object being added in drawing object.
4. the geographical retraction automatic drafting method of figure of power system according to claim 1, which is characterized in that step S40 Simplify equipment topological connection relation according to the following steps:
S41. initial plant is set by feeder switch, sets termination device for loop networks switch, even according to the topology of equipment room Relationship is connect, topological follow-up analysis is carried out since feeder switch, the company between feeder switch and loop networks switch after the completion of analysis It connects path and is set as main path, other paths are set as individual path, and remove all branch equipments on individual path;
S42. device object set is traversed, is not concerned with equipment in removal system figure, only retains main equipment, the main equipment includes becoming Power station, electric room, feeder switch, middle pressure rack ceases to be busy, midium voltage cable and loop networks switch;
S43. it is directed to the branch equipment removed and is not concerned with equipment, the equipment before and after removing device is re-established Topology connection pass System.
5. the geographical retraction automatic drafting method of figure of power system according to claim 1, which is characterized in that step S60 In be provided with equipment interval between each inlet wire equipment, each line-outgoing equipment.
6. the geographical retraction automatic drafting method of figure of power system according to claim 1, which is characterized in that step S70 Described in oblique line object set acquisition methods it is as follows: traversal connecting line object set, obtain connecting line starting endpoint and terminate The X-coordinate and Y-coordinate information of endpoint, judge whether the X-coordinate of starting endpoint is equal to the X-coordinate of termination end points, the Y of starting endpoint Whether coordinate is equal to the Y-coordinate of termination end points, should if the X, Y coordinates of starting endpoint are not equal to the X, Y coordinates of termination end points Connecting line does not meet smooth vertical and horizontal principle, and oblique line object set is added in the connection line object.
7. the geographical retraction automatic drafting method of figure of power system according to any one of claims 1 to 6, feature exist In, the mark object in step S80 is placed on equipment surrounding according to nine grids rule, according to upper and lower, left and right, upper left, upper right, Lower-left, bottom right sequence are placed, if there are other equipment or marks for current location, are placed to the next position.
CN201810146647.3A 2018-02-12 2018-02-12 A kind of geographical retraction automatic drafting method of figure of power system Active CN108509676B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810146647.3A CN108509676B (en) 2018-02-12 2018-02-12 A kind of geographical retraction automatic drafting method of figure of power system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810146647.3A CN108509676B (en) 2018-02-12 2018-02-12 A kind of geographical retraction automatic drafting method of figure of power system

Publications (2)

Publication Number Publication Date
CN108509676A CN108509676A (en) 2018-09-07
CN108509676B true CN108509676B (en) 2019-11-08

Family

ID=63375002

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810146647.3A Active CN108509676B (en) 2018-02-12 2018-02-12 A kind of geographical retraction automatic drafting method of figure of power system

Country Status (1)

Country Link
CN (1) CN108509676B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109933634B (en) * 2019-01-28 2023-05-26 广东电网有限责任公司 Power system graph drawing method based on power radiation range
CN110059358B (en) * 2019-03-19 2023-05-23 深圳市华阳国际工程设计股份有限公司 Automatic generation method and automatic generation device for building electrical design drawing
CN110751697A (en) * 2019-08-27 2020-02-04 国网浙江省电力有限公司杭州供电公司 Marketing and distribution data acquisition and mapping method based on Internet of things
CN110504754A (en) * 2019-08-28 2019-11-26 国网天津市电力公司 One kind automatically generating three-dimensional grid monitoring approach layered based on geography information
CN111368518B (en) * 2019-12-31 2023-12-05 浙江华云信息科技有限公司 Self-adaptive layout method for labeling distribution network thematic map
CN112364466B (en) * 2020-10-13 2024-04-16 杭州肥牛信息科技有限公司 Automatic generation method for single line diagram of power distribution network
CN113761693A (en) * 2020-11-27 2021-12-07 浙江华云信息科技有限公司 Automatic graph adjusting method based on topology and grid
CN113269851B (en) * 2021-03-19 2023-03-03 广州天越电子科技有限公司 Method for realizing automatic generation of system diagram of transmission equipment
CN113295910B (en) * 2021-05-14 2022-06-03 国网安徽省电力有限公司马鞍山供电公司 Split type clamp type current transformer and transformer substation line surveying and mapping method
CN113505558B (en) * 2021-07-20 2023-08-22 广东电网有限责任公司 Automatic connection method for power grid monitoring system equipment elements based on graph algorithm technology
CN115277533B (en) * 2022-07-20 2023-11-03 内蒙古电力(集团)有限责任公司内蒙古电力科学研究院分公司 Automatic drawing method for static physical link topology of transformer substation
CN114936442B (en) * 2022-07-22 2022-12-09 国网江西省电力有限公司电力科学研究院 System and method for accurately positioning power distribution network equipment and forming topological graph
CN116993862A (en) * 2023-04-06 2023-11-03 国网四川省电力公司成都供电公司 Substation room logic diagram mapping system based on multi-source data

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102375726A (en) * 2010-08-16 2012-03-14 北京国科恒通电气自动化科技有限公司 Method for dynamically adjusting icon display and local topological connection display of transformer and distribution substation equipment as well as pole and tower equipment
WO2012058602A2 (en) * 2010-10-28 2012-05-03 Marshall Monroe Method and apparatus for organizing and delivering digital media content and inteactive elements
CN102663181A (en) * 2012-03-28 2012-09-12 广东电网公司佛山供电局 Automatic drawing method of distribution network diagram
CN103279895A (en) * 2013-04-27 2013-09-04 广东电网公司佛山供电局 Method and system for monitoring power failure
CN104951844A (en) * 2015-05-21 2015-09-30 北京科东电力控制系统有限责任公司 Layout optimization method of distribution network thematic maps

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102375726A (en) * 2010-08-16 2012-03-14 北京国科恒通电气自动化科技有限公司 Method for dynamically adjusting icon display and local topological connection display of transformer and distribution substation equipment as well as pole and tower equipment
WO2012058602A2 (en) * 2010-10-28 2012-05-03 Marshall Monroe Method and apparatus for organizing and delivering digital media content and inteactive elements
CN102663181A (en) * 2012-03-28 2012-09-12 广东电网公司佛山供电局 Automatic drawing method of distribution network diagram
CN103279895A (en) * 2013-04-27 2013-09-04 广东电网公司佛山供电局 Method and system for monitoring power failure
CN104951844A (en) * 2015-05-21 2015-09-30 北京科东电力控制系统有限责任公司 Layout optimization method of distribution network thematic maps

Also Published As

Publication number Publication date
CN108509676A (en) 2018-09-07

Similar Documents

Publication Publication Date Title
CN108509676B (en) A kind of geographical retraction automatic drafting method of figure of power system
CN108536770B (en) Distribution network ring net automatic generation method based on distribution GIS model
CN104462473B (en) A kind of method that the inscribed line chart of CIM G forms plant stand is automatically generated based on CIM E electric network models
CN105117518B (en) A kind of distribution feeder line chart automatic drafting method and system for radiating Connection Mode
CN102663181B (en) Automatic drawing method of distribution network diagram
CN104133943B (en) Based on goal-oriented distribution figure automatic generation method
CN106056349A (en) Province-city-county three-level power grid programming GIS drawing system and method
CN111783265B (en) Optimization method for topology generation of power grid tidal current diagram
CN105488269A (en) CIM based automatic graph-forming system for power transmission and distribution network
CN103020335A (en) Method for automatically converting distribution network geographic wiring diagram into region orthogonal diagram
CN108897909A (en) A kind of distribution network planning panoramic view Dynamic Display method based on GIS data
CN104966245B (en) A kind of visualization power supply plan auxiliary preparation method based on power grid GIS
CN101499109A (en) Power distribution management information graphic system
CN103679559A (en) Visual grid system and fault identification method thereof
CN103066698A (en) Implement method for automatic generation of visible power grid trend chart in dispatching system
CN107948008B (en) Modeling method for low-voltage distribution network monitoring system
CN109933634B (en) Power system graph drawing method based on power radiation range
CN102957205A (en) Method and system for establishing distribution network model
CN104361184B (en) A kind of electric power network automatic placement and routing system and method
CN111859586B (en) Intelligent generation method of distribution network line automatic switch distribution diagram
CN110188150A (en) The modeling method and computer readable storage medium of distribution network line figure
CN110288176A (en) Distribution monitoring analysis and repairing maneuvering platform based on power grid GIS
CN108520086A (en) A kind of power distribution network Drawing Network Diagram and automatic generation method
CN110276516A (en) Distribution monitoring analysis and repairing command methods based on power grid GIS
CN107844620B (en) Automatic fault site thematic map generation method based on target guidance

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
GR01 Patent grant
GR01 Patent grant