Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those skilled in the art are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
The embodiment of the invention provides a kind of disposal route of cable data, obtains cable data earlier, judges whether to have obtained whole cable data then, if do not obtain all; Then return and carry out the step obtain cable data,, then cable data is matched inspection and judge whether the result of pairing inspection is correct if obtained all; If incorrect, then list cable data in error listing, the prompting user revises; And return and carry out the step obtain cable data, if correct, output cable inventory then.The embodiment of the invention also provides the disposal system of corresponding cable data.Below be elaborated respectively.
Embodiment one
Present embodiment will be described from the angle of the disposal system of cable data; The disposal system of this cable data specifically can be the plug-in unit of AutoCAD2008, and this plug-in unit can be based on that kit and the programming language Visual C# of secondary development class libraries ObjectArx.Net develop and realize on the AutoCAD2008 platform.The disposal system of this cable data also can be the plug-in unit of AutoCAD2010, and perhaps other have the plug-in unit of the platform of similar functions, repeat no more at this.For convenience, below will be all being that example is described at the plug-in unit of developing on based on ObjectArx.Net kit and Visual C# on the AutoCAD2008 platform.
The disposal system of this cable data can be in C# programming language environment, to handle the input and output of document files or electrical form based on third party's class libraries MyXls; Handle the mutual of plug-in unit and AutoCAD based on AutoCAD secondary development class libraries ObjectArx.Net by the issue of Ou Teke autodesk, inc.; The class library facility fulfillment database function that carries based on VisualStudio.Net 2005.
The basic procedure of the disposal route of the cable data of the embodiment of the invention can mainly comprise step with reference to figure 1:
101, obtain cable data;
This cable data specifically can comprise direction (be the direction of cable, all be called for short direction in embodiments of the present invention), starting point, terminal point, numbering, model and specification, and wherein, starting point promptly is the source address of cable, and terminal point promptly is the destination address of cable.
For example; In the electric secondary working drawing with source address name of a standard, the direction of a cable is the arrow direction indication of this cable, indicates other parameter of cable on the direction of cable successively; Such as, can indicate numbering, model, specification and the terminal point of cable successively.
Wherein, can adopt multiple mode to obtain cable data, such as, specifically can adopt following mode:
Certain zone among the frame choosing figure of user elder generation; ObjectArx.Net handles plug-in unit and can the pairing cable data of subscriber frame favored area be separated into line segment object or text object then; Can analyze to obtain the direction of cable this line segment object then; Wherein, The direction of cable is the direction of the leg-of-mutton arrow indication of base and summit composition, can analyze starting point, terminal point, numbering, model and specification to obtain cable to text object then, at last the cable data that gets access to is generated the cable data table.
Optional, the direction of obtaining cable can may further comprise the steps:
At first the line segment object is analyzed to obtain the end points coordinate on base, judged that then base and X axle are parallel or vertical, if parallel, then the direction of cable is vertical, if vertical, then the direction of cable is a level; Can judge that perhaps base and Y axle are parallel or vertical, if parallel, then the direction of cable is a level, if vertical, then the direction of cable is vertical; Then the line segment object is analyzed to obtain the coordinate on summit; And then judge positive dirction or the negative direction of summit on the base, if in positive dirction, then the direction of cable is to point to the positive dirction of coordinate system; If in negative direction, then the direction of cable is to point to the negative direction of coordinate system.
Optional, starting point, terminal point, numbering, model and the specification of obtaining cable can may further comprise the steps:
When the cable direction is level, text object is sorted according to the Y coordinate figure, get 4 objects successively as one group, these 4 objects are respectively numbering, model, specification and terminal point; Text object sorts according to the X coordinate figure in will organizing then, to obtain ranking results;
When cable direction when being vertical, text object is sorted according to the X coordinate figure, get 4 objects successively as one group, 4 objects are numbering, model, specification and terminal point; Text object sorts according to the Y coordinate figure in will organizing then, to obtain ranking results; Then with ranking results as a cable data, and the starting point that can in a cable data, add user input, starting point is the starting point of cable.
Wherein, after getting access to cable data, can also cable data be saved in the database, and cable data is shown in the interface,,, then accept the user cable data is revised if wrong so that whether customer inspection identification is wrong, and execution in step 102.
102, judge whether to have obtained whole cable data;
Through judging whether having obtained whole cable data decides which type of operation of execution, if do not get access to whole cable data, then need return execution in step 101, if get access to whole cable data, then continues execution in step 103.
The method of obtaining cable data can be following: in the cable map of drawing; Certain zone among the frame choosing figure of elder generation, the zone of selecting through a plurality of frames obtains all cable data step by step, also can be through the method for full choosing; Obtain cable data whole in the cable map; Acquisition methods is not done qualification here, as long as can guarantee not lacking of cable data, obtains accurately.
103, cable data is matched inspection;
The cable data that gets access to is matched inspection,,, obviously can't learn whether the cable data that gets access to exists mistake according to the result that pairing is checked if do not match inspection according to the cable data that the result of pairing inspection locates errors.Optional, it can be to search in all cables according to cable number that cable data is matched the mode of inspection, and it is one group that the cable that cable number is identical is joined.
104, whether the result of judgement pairing inspection is correct;
Whether the result who judges the pairing inspection is correct; If the result is incorrect, then list cable data in error listing, point out the user that the incorrect cable data of pairing check result is revised simultaneously; The user can revise on user interface or graphical interfaces; After revising completion, return execution in step 101, obtain cable data again.
For example, the result of pairing inspection is incorrect can to have following several kinds of situation: the number of cables in the group is not 2, and perhaps the specification in the group has difference, and perhaps the cable Origin And Destination in the group does not coincide each other.
Wherein, Error listing can be shown in user interface with the form of form with incorrect cable data; Error listing can offer the user and revise; If it is wrong that the user finds in checking process, then can directly in user interface, revise the parameter value in the error listing, also can on graphical interfaces, revise cable data.
105, output cable inventory.
Correct cable data among the result of pairing inspection is processed cable inventory and output.For example, in AutoCAD, be to use the function interface among third party's control MyXls, generate the Electronic forms Excel file and write the cable inventory line by line, the parameter reference is provided in order to subsequent operation.Wherein, the cable inventory can be the Excel form, also can be text Word form, or other form, does not do qualification here.
The foregoing description judges whether to have obtained whole cable data then because cable data is obtained in employing earlier, if do not obtain all; Then return and carry out the step obtain cable data,, then cable data is matched inspection and judge whether the result of pairing inspection is correct if obtained all; If incorrect, then list cable data in error listing, the prompting user revises; And return and carry out the step obtain cable data, if correct, output cable inventory then; Because this scheme can be obtained cable data automatically and handle, thereby obtain meeting the cable inventory of user's request, so can reduce because artificial drafting, check, arrangement and the statistics maloperation that cable data caused; And can reduce processing time to cable data, improved cable identification efficiency and accuracy rate.
Embodiment two
For the ease of better understanding technical scheme of the present invention; Be described further in the face of technical scheme provided by the invention down; Present embodiment will be described from the angle of the disposal system of cable data; The disposal system of this cable data can be the plug-in unit of developing on based on ObjectArx.Net kit and Visual C# on the AutoCAD2008 platform, sees also Fig. 2, mainly comprises step:
201, confirm the subscriber frame favored area;
In transformer station's electric secondary design effort; Cable data can comprise direction, starting point, terminal point, numbering, model and specification; The user can be in the cable map of drawing, and first frame selects certain zone in the cable map, the zone through a plurality of frames choosings and then obtain the cable data of whole cable map; Can obtain complete cable data in the cable map through the method for full choosing, acquisition methods is not done qualification here yet.
What need explanation is; Cable data also includes parameters such as cable title; But in design effort; The direction of cable, starting point, terminal point, numbering, model and specification are to be labeled in the cable map as important parameter, and other parameter can be looked into the technical parameter table according to model specification and learn, so the cable data of the embodiment of the invention is to comprise that direction, starting point, terminal point, numbering, model and specification are that example describes and gives an example.
202, cable data is separated into line segment object or text object;
In graphic file, figure and literal have the different character attribute, can extract through routine interface to be used for distinguishing.For example, figure among the AutoCAD and literal extract differentiation with AutoCAD secondary development class libraries Autodesk Objectarx.Net routine interface.
Figure in the cable data and literal can be separated into line segment object and text object; Wherein, The line segment object is the triangle arrow of expression cable direction; Just form leg-of-mutton three line segments, text object is the literal of starting point, terminal point, numbering, model and the specification of expression cable.
What need special instruction is; The disposal route of the cable data in the embodiment of the invention goes for any vector terminal row figure on the computing machine; The embodiment of the invention is that example describes with the graphic file DWG figure of computer-aided design (CAD) AutoCAD for convenience.
203, obtain the direction of cable;
In the cable map of a standard, the direction of cable is the sensing of the triangle arrow of expression cable direction, the direction of the triangle arrow indication of promptly being made up of base and summit.And arrow is the closed triangle of being drawn by multistage line or single hop line, and this triangle must have 3 summits, has a limit inevitable perpendicular or parallel in coordinate X axle simultaneously.At first the line segment object is analyzed; Find this inevitable perpendicular or parallel earlier, it is regarded as leg-of-mutton base, extract the end points coordinate on this base then with routine interface in the line segment of coordinate X axle; Can learn that according to the end points coordinate on base this base is parallel or vertical with the X axle; Through judging that its relation parallel or vertical with the X axle can confirm that the direction of cable is vertical direction or horizontal direction,, can confirm that then the direction of cable is vertical if parallel with the X axle; If vertical, can confirm that then the direction of cable is a level with the X axle.
In addition, triangle arrow also can have a limit inevitable perpendicular or parallel in coordinate Y axle.The line segment object is analyzed; Find this inevitable perpendicular or parallel, it is regarded as leg-of-mutton base, extract the end points coordinate on this base then with routine interface in the line segment of coordinate Y axle; Can learn that according to the end points coordinate on base this base is parallel or vertical with the Y axle; Through judging that its relation parallel or vertical with the Y axle can confirm that the direction of cable is vertical direction or horizontal direction,, can confirm that then the direction of cable is a level if parallel with the Y axle; If vertical, can confirm that then the direction of cable is vertical with the Y axle.
When the direction that has obtained cable be level or vertical after, also to confirm the concrete sensing of cable, be positive dirction or the negative direction of pointing to coordinate axis, so need to continue the line segment object is analyzed.This just need obtain the vertex of a triangle coordinate; Just the coordinate of this leg-of-mutton the 3rd end points can be confirmed this leg-of-mutton sensing according to its position with respect to the base, promptly can know that through the coordinate figure on summit this summit is positive dirction or the negative direction on the base; If positive dirction on the base; The direction of then confirming cable is to point to the positive dirction of coordinate system, and as if the negative direction on the base, the direction of then confirming cable is to point to the negative direction of coordinate system.
To sum up can obtain the direction of cable, that is to say that the direction that can specifically know cable is a level or vertical, be positive dirction or the negative direction of pointing to coordinate system.
Specify the preparation method of cable direction below with a concrete application examples:
The end points coordinate on the base of the triangle arrow that for example, gets access to is (6,3) and (6 ,-3); Because the X coordinate figure on this base is the same, can confirm that this base is perpendicular to the X axle, just can confirm also that the direction of cable is a horizontal direction; Then, obtain the 3rd end points, the just coordinate figure of triangular apex; Suppose it is (2,0), the X coordinate figure on this summit is less than the X coordinate figure on base; Can confirm that this summit is the negative direction on the base, the direction that also just can confirm cable is to point to the negative direction of coordinate system, and the direction that comprehensively can obtain cable is the negative direction of the sensing coordinate system of level.Specifically as shown in Figure 3; Fig. 3 is the cable synoptic diagram of the disposal route of cable data; The direction of cable is the direction of negative direction of the sensing coordinate system of level among Fig. 3, in the sensing of cable, once indicates other parameter of cable, is numbering, model, specification, the terminal point of cable successively.
What need special instruction is; Above-mentioned disposal route is to be based upon on the basis of cable map that cable map is a standard; If that obtain is an off-gauge figure, promptly triangular shaped arrow is drawn nonstandardly, might cause accurately discerning the line segment object; But also do not hinder the execution of present embodiment, the work of identification can be carried out through manual assigned direction.
What need explanation is, comprises about the situation of off-gauge figure:
A, cable data are incomplete.There are 4 such as cable data; But the designer has only write 3 and has been marked among the figure; Because we also do not know it is which parameter disappearance; But can be set to a cable data by direction and the cable data that order recognizes during identification, the result who obtains like this can make last parameter disappearance of this cable data, therefore needs artificial input to come revisal.
B, direction are indeterminate.Triangular shaped arrow such as as the cable direction indication is not drawn; Or draw incorrect, for example inc situation, program can not be discerned the direction of cable; This just need give the designer with the work of cable direction identification, obtains the direction of cable thus.
Experiment through to the present invention program can be learnt; The situation odds that recognition failures occurs is smaller; Experiment through reality obtains mortality and is not higher than 1%, and can also carry out manual work correction behind the identification error, and recognition failures or identification error can not cause whole procedure unavailable.
204, obtain starting point, terminal point, numbering, model and the specification of cable;
Starting point, terminal point, numbering, model and the specification of obtaining cable can be to be based upon under the prerequisite that obtains the cable direction.Can divide following two kinds of situation thus:
When the cable direction is level, at first, text object is analyzed; Obtain the Y coordinate figure of text object, text object is sorted according to its Y coordinate figure, get 4 objects successively as one group of cable data; That is, according to the Y coordinate figure of the cable data that is obtained, per 4 objects that Y coordinate figure in the cable data is the most approaching are as one group of cable data; Obtained the cable data of a cable thus; And then obtaining the X coordinate figure of organizing interior text object, the text object in will organizing again sorts according to the X coordinate figure, can sort from small to large or from big to small by coordinate figure; Obtain the ranking results of the cable data of a cable thus, just can read the cable data of this complete cable then.
When cable direction when being vertical, at first, text object is analyzed; Obtain the X coordinate figure of text object, text object is sorted according to its X coordinate figure, get 4 objects successively as one group of cable data; That is, according to the X coordinate figure of the cable data that is obtained, per 4 objects that X coordinate figure in the cable data is the most approaching are one group of cable data; Obtained the cable data of a cable thus; And then obtaining the Y coordinate figure of organizing interior text object, the text object in will organizing again sorts according to the Y coordinate figure, can sort from small to large or from big to small by coordinate figure; Obtain the ranking results of the cable data of a cable thus, just can read the cable data of this complete cable then.
What need to specify is, 4 objects obtaining can be numbering, model, specification and terminal point, and with these 4 object orders, the result after the ordering can be numbering, model, specification and terminal point, also can be terminal point, specification, model and numbering.The result who sorts as a cable data, is processed the cable data table with this cable data.For example, when ranking results was numbering, model, specification and terminal point, the cable data table can be a form shown in the table one:
Table one
Numbering |
Model |
Specification |
Terminal point |
2E-135A |
KVVP |
16×1.5 |
220kV Chen Liang line is protected 2 cabinets |
2E-ZL-02 |
KVVP |
4×2.5 |
220kV Chen Liang line is protected 2 cabinets |
2E-130E |
KVV |
8×1.5 |
220kV Chen Liang line is protected 2 cabinets |
2E-132B |
KVV |
4×1.5 |
2# main transformer protection B cabinet |
2E-ZL-02 |
KVV |
4×2.5 |
2# dc feeder cabinet |
In order to obtain a complete cable data, also need in above-mentioned ranking results, add the starting point of user's input, this starting point is exactly the starting point of cable.Need to prove that this starting point can be added on any position in the cable data table, preferred, this starting point preferably is added on first in the cable data table.Just obtain the cable data of complete text object thus, can comprise starting point, terminal point, numbering, specification and model.As a complete cable data, for example, as if first that starting point is added on the cable data table, complete cable data table can be a form shown in the table two with the cable data after the interpolation starting point:
Table two
Starting point |
Numbering |
Model |
Specification |
Terminal point |
220kV failure wave-recording cabinet |
2E-135A |
KVVP |
16×1.5 |
220kV Chen Liang line is protected 2 cabinets |
2# dc feeder cabinet |
2E-ZL-02 |
KVVP |
4×2.5 |
220kV Chen Liang line is protected 2 cabinets |
220kV Chen Liang line is protected 1 cabinet |
2E-130E |
KVV |
8×1.5 |
220kV Chen Liang line is protected 2 cabinets |
220kV Chen Liang line is protected 2 cabinets |
2E-132B |
KVV |
4×1.5 |
2# main transformer protection B cabinet |
220kV Chen Liang line is protected 2 cabinets |
2E-ZL-02 |
KVV |
4×2.5 |
2# dc feeder cabinet |
Specify the method for starting point, terminal point, numbering, model and the specification of obtaining cable below with a concrete application examples:
For example be on an electric secondary working drawing with the source address name; Drafting has all cables that insert the source address terminal row; And the direction of this cable is assumed to be the direction that level is pointed to the coordinate system negative direction, and then the cable data of this cable reads the text object that obtains and should be followed successively by numbering, model, specification and terminal point from pointing to.Text object to cable data is analyzed, and obtains the Y coordinate figure of the text object of all cables earlier, supposes to have two cables to insert this source address terminal row, then can obtain the coordinate data of 8 text objects; It for example is (3,2), (1,2.3), (1,2.1), (3; 2.2), (3,4), (1,4.3), (1,4.1) and (3; 4.2), obviously can get, the Y coordinate figure of preceding four text objects is the most approaching, with these four text objects as one group of cable data; A just same cable data, back four text objects are as another cable data, and just obtaining wherein thus, the coordinate figure of the text object of a cable data is (3,2), (1; 2.3), (1,2.1) and (3,2.2).And then, this cable data is sorted, if sort from small to large by the coordinate figure of X coordinate according to the X coordinate figure of text object; Then ranking results is (3,2), (1,2.3), (1; 2.1), (3,2.2) owing to earlier the direction of this cable is assumed to be the direction that level is pointed to the coordinate system negative direction; Then the cable data of this cable reads the text object that obtains from sensing and should be followed successively by numbering, model, specification and terminal point, and the coordinate figure that 4 text objects just having known this cable thus are terminal point, specification, model and numbering is respectively (3,2), (1; 2.1), (1; 2.3), (3,2.2), just may be read into the cable data of this cable; The starting point that the user imports is added in user arbitrary position in this cable data then; With the starting point of this starting point as cable, for example be first starting point of adding user's input in this cable data that obtains, the cable data of the complete text object that then obtains can comprise starting point, terminal point, specification, model and numbering.
205, generate the cable data table;
The data of the complete cable data that obtains are inserted in the cable data table as a complete cable data.For example, in AutoCAD, use the function interface among third party's control MyXls that cable data is inserted the cable data table.For example, a complete cable data table also can be a form shown in the table three:
Table three
Numbering |
Model |
Specification |
Starting point |
Terminal point |
2E-135A |
KVVP |
16×1.5 |
220kV failure wave-recording cabinet |
220kV Chen Liang line is protected 2 cabinets |
2E-ZL-02 |
KVVP |
4×2.5 |
2# dc feeder cabinet |
220kV Chen Liang line is protected 2 cabinets |
2E-130E |
KVV |
8×1.5 |
220kV Chen Liang line is protected 1 cabinet |
220kV Chen Liang line is protected 2 cabinets |
2E-132B |
KVV |
4×1.5 |
220kV Chen Liang line is protected 2 cabinets |
2# main transformer protection B cabinet |
2E-ZL-02 |
KVV |
4×2.5 |
220kV Chen Liang line is protected 2 cabinets |
2# dc feeder cabinet |
206, preserve cable data;
For example, in AutoCAD, the complete cable data that the class library facility that carries based on VisualStudio.Net 2005 will obtain is saved in the database, for follow-up operation provides the parameter reference.Because maybe be because the influence of the drawing of some nonstandardized technique; Whether the cable data that causes getting access to is imperfect or inaccurate, also need the cable data in the database be shown in user interface or graphical interfaces, correct for customer inspection identification; If it is incorrect that inspection recognizes; Then the user can revise cable data, and correction is saved in revised cable data in the database after accomplishing again.
In addition, the cable data in the management database can carry out project management to the cable data in the database for ease, promptly is to be that unit manages respectively with the engineering with the cable data that is kept in the database, and engineering has its corresponding database.At first in graphical interfaces, set up engineering, or open engineering, operation afterwards all can be deposited in the corresponding database table group of engineering, and the corresponding database table group of engineering meeting makes things convenient for the cable data in the management database.
207, judge whether to have obtained whole cable data;
Whole cable data decide is to carry out which type of step through judging whether to have obtained, if do not get access to whole cable data, then return execution in step 201, continue to obtain cable data.
Obtain cable data, can be in the cable map of drawing, certain zone among the first frame choosing figure; Zone through a plurality of frame choosings obtains all cable data step by step; Also can obtain whole cable data in the cable map, can guarantee not lacking of cable data through the method for full choosing.
208, cable data is matched inspection;
The cable data that gets access to is matched inspection,,, obviously can't learn whether the cable data that gets access to exists mistake according to the result that pairing is checked if do not match inspection according to the cable data that the result of pairing inspection locates errors.We know; Cable number is the every characteristic that cable is exclusive, in cable map, necessarily has and have only the numbering of two cables identical; But the Origin And Destination of two cables that this numbering is identical is opposite; And other cable data is the same, thus to cable data match the inspection just can in all cable data, search according to its cable number, it is one group that the cable that cable number is identical is joined.
209, whether the result of judgement pairing inspection is correct;
Wherein, the cable that cable number is identical join be one group after, can obtain matching the result of inspection; In following three kinds of situation any one appears; Can be regarded as pairing failure, show mistake, and will match failure; Show that promptly vicious cable data lists error listing in, the prompting user revises:
Number of cables in a, the group is not 2, because in cable map, necessarily has and have only the numbering of two cables identical.Searching in all cable data according to its cable number, is not 2 if having the number of cables of same cable numbering, and then or be the pairing failure, cable data is wrong, or is to can not find identical cable number.Number of cables with same cable numbering be not 2 can not find identical cable number in other words this situation might be because the cable in the cable map is a separate cable.Situation for separate cable will be carried out detailed elaboration in the back.
Specification in b, the group has difference, must be the same because number the specification of identical cable, if the specification in the group has difference after the combo, and then pairing failure, cable data is wrong.
Cable starting point and terminal point in c, the group are misfitted, and are opposite because number the Origin And Destination of two identical cables, can learn through judging after the combo that the starting point in the group and terminal point be whether identical whether cable data is wrong.
With above-mentioned pairing failure, show that vicious cable data lists error listing in, the prompting user revises, and the user can make amendment to the cable data of mistake, and wherein, the user can make amendment on user interface, also can on graphical interfaces, make amendment.After revising completion, in database, search the affiliated partner that shows vicious cable data, cable data is upgraded according to revised data.
For in database, searching the affiliated partner that shows wrong cable data, can be accomplished in the following manner:
If the user has changed the cable data of graphic file, program is extracted the characteristic attribute of this cable data, searches the position of this cable data in database, then revises the cable data in the database as record is arranged in database; If the user has changed the cable data in the database, program is traced in this cable place graphic file according to the cable characteristic parameter in the database, and the cable data that this graphic file is corresponding is revised.
The enforcement key of this mode is the cable characteristic parameter, and for example in AutoCAD, this parameter is made up of the processing Handle attribute of parameter object in drawing path and the DWG figure.This attribute of parameter object is the attribute that carries in the DWG figure in drawing path and the DWG figure; Can locate the unique DWG object in the The whole calculations machine system; Deposit this attribute of parameter object in drawing path and the DWG figure in database, then can in database and DWG figure, find corresponding unique cable data object through them.
What need to specify is, graphical interfaces is to show vector graphics and the literal object that is independent of each other and joins, user interface then be show related, through the cable data of identification and arrangement, user interface is the subwindow demonstration as graphical interfaces.
What need to specify is, in the above-mentioned pairing, the number of cables with same cable numbering be not 2 or this situation that can not find identical cable number might be because the cable in the cable map is a separate cable.Handle the situation of separate cable, can in program, be provided with in advance, whether to list it in error listing in the decision pairing process; Then; Just the cable data that is verified as the independent cable is matched inspection, identical each other if the result of i.e. pairing inspection is the starting point and the terminal point of cable, and other cable data are all identical; Then can these two cable data be merged into data, and list the cable inventory in.
What need special instruction is; Separate cable being provided with and can determining directly to list in the cable inventory or list error listing in before according to pairing, but not separate cable need decide according to the result of pairing inspection and directly lists the cable inventory in or list error listing in.
210, output cable inventory.
The correct cable data of result of pairing inspection is processed cable inventory and output.For example, in AutoCAD, be to use the function interface among third party's control MyXls, generate the Excel file and write the cable inventory line by line, use in order to subsequent operation.The cable inventory can be the Excel form, also can be the Word form, or other form, does not do qualification here.
The foregoing description is owing to be line segment object and direction, starting point, terminal point, numbering, model and the specification of text object to obtain cable through separating cable data; Improved the discrimination of cable; Also with the form of the pairing of dividing into groups cable data being carried out full automatic parameter checks; And the data association of graph data and user interface can be realized data synchronization updating, has improved cable identification efficiency and accuracy rate.
Embodiment three
Down the disposal system in the face of the cable data of the embodiment of the invention of the disposal route that is used to carry out above-mentioned cable data is elaborated; Its basic structure can be with reference to figure 4, and the disposal system of this cable data comprises that cable identification module 301, first judge module 302, parameter check module 303, second judge module 304 and output module 305.
Cable identification module 301 is used to obtain cable data, and wherein, cable data can comprise direction, starting point, terminal point, numbering, model and the specification of cable;
First judge module 302 is used to judge whether to have obtained whole cable data, and when confirming not obtain whole cable data, triggers cable identification module 301 and continue to obtain cable data;
Second judge module 304 is used to judge whether the result of parameter check module 303 pairing inspections is correct;
Check module 303; Be used for cable data to first judge module 302 and match inspection; Promptly be that the cable in the cable map is matched, it is one group that the cable that cable number is identical is joined, and is used for that also second judge module 304 is determined vicious cable data and lists error listing in; Point out the user to revise simultaneously, and trigger cable identification module 301 and obtain cable data;
Output module 305 is used for when second judge module 304 confirms that the result of pairing inspection is correct the output cable inventory.
Wherein, concrete, for discrimination higher; Cable identification module 301 can be confirmed the subscriber frame favored area earlier; Then the pairing cable data of subscriber frame favored area is separated into line segment object or text object, wherein, the line segment object is analyzed the direction that to obtain cable; Can obtain starting point, terminal point, numbering, model and the specification of cable to text object analysis; Then the line segment object is analyzed to obtain the direction of cable, wherein, the direction of cable is the direction of the leg-of-mutton arrow indication of base and summit composition; Again text object is analyzed starting point, terminal point, numbering, model and specification to obtain cable, at last the cable data that gets access to is generated the cable data table.
Wherein, cable identification module 301 can also be saved in cable data in the database after getting access to cable data; For subsequent operation provides the parameter reference; And cable data is shown in the interface, so that whether customer inspection identification is wrong, if wrong; Then accept the user cable data is revised, and trigger first judge module 302 and judged whether to obtain whole cable data.
Wherein, Concrete, parameter is checked module 303, can be used for cable data to first judge module 302 and match inspection; Promptly be that the cable in the cable map is matched; It is one group that the cable that cable number is identical is joined, and is used for that also second judge module 304 is determined vicious cable data and lists error listing in, points out the user to revise simultaneously; And trigger cable identification module 301 and continue to obtain cable data, second judge module 304 is determined correct cable data output to the cable inventory.
Need to prove that for the data of revising are upgraded synchronously, parameter is checked module 303, also be used for searching the affiliated partner that shows vicious cable data, cable data is upgraded according to revised parameter at database.
Wherein, concrete, second judge module 304; Can be used to judge whether the result of parameter check module 303 pairing inspections is correct, wherein, after the pairing inspection; If the number of cables in the group is not 2, then show mistake, if the specification in the group has difference; Then show mistake,, then show mistake if the cable Origin And Destination in the group is misfitted.
Wherein, accurate for the cable data that guarantees to get access to, can also the cable data that cable identification module 301 gets access to be shown in interface for users inspection identification, promptly as shown in Figure 5, the disposal system of this cable data can also comprise display module 306;
Display module 306 is used for cable data is shown in interface for users inspection identification, and wherein, this interface can be a user interface, also can be graphical interfaces, does not do qualification here.
Wherein, in order to check module 303 to parameter the parameter reference is provided, and the cable data that cable identification module 301 gets access to is saved in the database, promptly as shown in Figure 5, the disposal system of this cable data can also comprise preserves module 307;
Preserve module 307, be used for the cable data that cable identification module 301 gets access to is saved in database.
During practical implementation, more than each module can be used as independent entity and realize, also can carry out combination in any, realize as same or plurality of entity.In addition, except can the plug-in unit of disposal system, also can the disposal system of this cable data be realized as an independent device as platforms such as AutoCAD2008 or AutoCAD2010 with this cable data.
More than the practical implementation of each module specifically can repeat no more at this referring to the method embodiment of front.
Cable identification module 301 in the foregoing description is used to obtain cable data; Judge by first judge module 302 whether cable identification module 301 has obtained whole cable data then, if do not obtain all, then cable identification module 301 continues to obtain cable data; If obtained all; Then check 303 pairs of cable data of module and match inspection, judge by second judge module 304 whether the result that pairing checks is correct again, if incorrect by parameter; Then parameter is checked module 303 and will match the vicious cable data of checking of result and list error listing in; If the result of pairing inspection is correct, the correct cable data of result of output module 305 output pairing inspections is because the disposal system of this cable data can be obtained cable data automatically and handle; Thereby obtain meeting the cable inventory of user's request; So can reduce because manual work is drawn, checks, put in order and the statistics maloperation that cable data caused, and can reduce processing time, improve cable identification efficiency and accuracy rate to cable data.
One of ordinary skill in the art will appreciate that all or part of step that realizes in the foregoing description method is to instruct relevant hardware to accomplish through program; Described program can be stored in a kind of computer-readable recording medium; The above-mentioned storage medium of mentioning can be a ROM (read-only memory), disk or CD etc.
More than the disposal route and the system of a kind of cable data provided by the present invention carried out detailed introduction; Used concrete example among this paper principle of the present invention and embodiment are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for those skilled in the art, according to the thought of the embodiment of the invention, the part that on embodiment and range of application, all can change, in sum, this description should not be construed as limitation of the present invention.