Summary of the invention
The purpose of the present invention is aiming at the problems referred to above, it is provided that a kind of expansion pattern space rapidly, accurately, improves daily dimension
Protect efficiency, the automatic extending method of the pattern space for power distribution network of shortening maintenance time.
To achieve these goals, the invention provides techniques below scheme: a kind of pattern space for power distribution network is certainly
Dynamic extending method, it is by containing expanding point selection module, parameter setting module, enlargement module, expansion direction setting module, net
The pattern space of power distribution network is expanded by the computer of network topological analysis module and mapping software automatically, the method include with
Lower step:
1) graphic data base of a power distribution network is opened;
2) in graphic data base, select a position by expansion point selection module and carry out pattern space expansion as needs
Expansion point;
3) in graphic data base, the expansion amount expanding point on coordinate direction is set by parameter setting module;
4) expanded the area of drawing residing for graphic data base by enlargement module according to expansion amount;
5) by expanding direction setting module settings expansion direction in graphic data base, then according to expansion amount is expanding
Point position on by enlargement module towards expand direction expand, finally expand some position on expand to meet expansion amount with
Expand the white space in direction;
6) expansion preserves and exits after terminating.
Preferably, the above-mentioned automatic extending method of the pattern space for power distribution network is further comprising the steps of:
Go up the coordinate information of each pel by Network topology module recording geometry data base and set up between each pel
Annexation, further according to annexation building topology table;
Check whether described expansion point meets expansion condition by topology table, as being, be directly entered above-mentioned step
3), as otherwise entering back into above-mentioned step 3) after the expansion point of another satisfied expansion condition selected.
Preferably, above-mentioned expansion condition refers to described expansion on some position whether between pel.
Preferably, above-mentioned expansion amount is included in and expands the length increased in the some X-axis of present position and/or Y-axis.
Preferably, above-mentioned expand direction include to the left, to the right, up and down in one or more expansion sides
To.
Preferably, above-mentioned graphic data base is the distribution network line figure being drawn in mapping software, is beaten by mapping software
Open.
Use having the beneficial effects that of above technical scheme: can automatically calculate space by computer operation and expand
Fill, expand speed rapidly, graphics edition efficiency can be improved greatly;Differentiate that newly added equipment need to take by topology analyzing method
Space size and the most rational position so that expand pattern space time do not affect the annexation between original pel, subtract
The probability made mistakes during few artificial amendment annexation, improves the correctness that figure is safeguarded, it is ensured that Dispatch Safety.By above-mentioned permissible
Seeing, the present invention solves and is expanded interval by drawing personnel are manual, needs substantial amounts of movement to operate and circuit editing, and easily
The problem made mistakes such that it is able to quickly, conveniently carry out new equipment figure safeguard, improve personnel's regular maintenance efficiency, shorten dimension
Protect the time.
Detailed description of the invention
Describe the preferred embodiment of the present invention below in conjunction with the accompanying drawings in detail.
As it is shown in figure 1, the automatic extending method of the pattern space for power distribution network of the present embodiment, it is by containing expanding point
Select module, parameter setting module, enlargement module, expansion direction setting module, Network topology module and mapping software
Computer the pattern space of power distribution network is expanded automatically, the method comprises the following steps:
1) graphic data base of a power distribution network is opened;
2) in graphic data base, select a position by expansion point selection module and carry out pattern space expansion as needs
Expansion point;
3) in graphic data base, the expansion amount expanding point on coordinate direction is set by parameter setting module;
4) expanded the area of drawing residing for graphic data base by enlargement module according to expansion amount;
5) by expanding direction setting module settings expansion direction in graphic data base, then according to expansion amount is expanding
Point position on by enlargement module towards expand direction expand, finally expand some position on expand to meet expansion amount with
Expand the white space in direction;
6) expansion preserves and exits after terminating.
The above-mentioned automatic extending method of the pattern space for power distribution network is further comprising the steps of:
Go up the coordinate information of each pel by Network topology module recording geometry data base and set up between each pel
Annexation, further according to annexation building topology table;
Check whether described expansion point meets expansion condition by topology table, as being, be directly entered above-mentioned step
3), as otherwise entering back into above-mentioned step 3) after the expansion point of another satisfied expansion condition selected.
Above-mentioned expansion condition refers to described expand on some position whether between pel, if located on pel, then
Expansion cannot be implemented, it is necessary to makes on its position between pel.
Above-mentioned expansion amount is included in and expands the length increased in the some X-axis of present position and/or Y-axis, pel after expansion
The circuit seen elongates the most therewith, and white space expands out.
Above-mentioned expand direction include to the left, to the right, up and down in one or more expand directions, can be at list
One direction or simultaneously expand in a plurality of directions.
Above-mentioned graphic data base is the distribution network line figure being drawn in mapping software, is opened by mapping software, can be by
The distribution that need to carry out editing then is opened by this mapping software and entered to distribution network line picture, in the mapping softwares such as CAD,
Net layout.
Above-mentioned steps 2) in, in graphic data base, select a position by expansion point selection module carry out figure as needs
Shape space expand expansion point, this operation can by set by drawing human users's computer program select.
Above-mentioned steps 3) and step 4) in, in graphic data base by parameter setting module set expand point in coordinate side
Expansion amount upwards, according to expansion amount by being expanded the area of the drawing residing for graphic data base, this expansion by enlargement module
It is determined after the general measurement by scene to equipment of amount, then by the parameter of this measurement by computer input, then calculates
Machine can calculate the drawing area needing to expand and carry out drawing expansion, reserves corresponding sky for expanding the expansion on some position
Between, if drawing can meet expansion amount without Extended Spaces, then will be unable to implement next step, the most directly exit.
Above-mentioned steps 5) in, by expanding direction setting module settings expansion direction in graphic data base, then according to
Expansion amount is expanded towards expanding direction by enlargement module on expansion point position, finally expands on expansion point position
Meet expansion amount and expand the white space in direction, being set for distribution network line figure by the set program of drawing personnel as required
Fixed one is expanded direction, as to the left, to the right, up and down in one or more expand direction, then computer roots again
According to set expansion amount and expand direction expand point position on pattern space is expanded, if you go up on point without expansion
Fill space and can meet expansion amount, then will be unable to implement next step, the most directly exit.
Above-mentioned steps 6) in, directly can carry out expanding the guarantor of complete graphic data base by the preservation function of mapping software
Deposit, automatically expand content and be stored in more new task as a renewal entry, the scheduling mastery routine finally used dispatcher
Recall renewal task on interface to be updated.
In the first step of above-mentioned preferred steps, record the coordinate information of each pel on distribution network line figure and set up each figure
Annexation between unit, further according to this annexation building topology table, relies on the topological analysis technique of this topology table, can be automatic
Search graph unit attachment structure relation, it is judged that each coordinate points relation connecting pel, notes down the coordinate of each pel before automatically expanding
Annexation between information and each pel, after automatically expanding, is recalculating the coordinate information of each pel, automatically according to expansion amount
Extended function realizes in the interface of mapping software, automatically expands content and is stored in more new task as a renewal entry,
Finally on the scheduling mastery routine interface that dispatcher uses, recall renewal task to be updated.
In the second step of above-mentioned preferred steps, check whether described expansion point meets expansion condition by topology table,
As for being, it is directly entered above-mentioned step 3), as otherwise entering back into after the expansion point of another satisfied expansion condition selected
The step 3) stated, expansion condition refers to described expansion on some position whether between pel, directly selects if you go up point
On pel, then extended function will be unable to carry out, therefore this step ensure that the annexation between pel occurs without mistake, keeps away
Exempting from the later stage also needs to carry out the trouble of manual adjustment so that space is expanded accurate.
Use having the beneficial effects that of above technical scheme: can automatically calculate space by computer operation and expand
Fill, expand speed rapidly, graphics edition efficiency can be improved greatly;Differentiate that newly added equipment need to take by topology analyzing method
Space size and the most rational position so that expand pattern space time do not affect the annexation between original pel, subtract
The probability made mistakes during few artificial amendment annexation, improves the correctness that figure is safeguarded, it is ensured that Dispatch Safety.By above-mentioned permissible
Seeing, the present invention solves and is expanded interval by drawing personnel are manual, needs substantial amounts of movement to operate and circuit editing, and easily
The problem made mistakes such that it is able to quickly, conveniently carry out new equipment figure safeguard, improve personnel's regular maintenance efficiency, shorten dimension
Protect the time.
Above-described is only the preferred embodiment of the present invention, it is noted that for those of ordinary skill in the art
For, without departing from the concept of the premise of the invention, it is also possible to make some deformation and improvement, these broadly fall into the present invention
Protection domain.