CN101587503A - Graph sorting system and method - Google Patents
Graph sorting system and method Download PDFInfo
- Publication number
- CN101587503A CN101587503A CNA2008103016896A CN200810301689A CN101587503A CN 101587503 A CN101587503 A CN 101587503A CN A2008103016896 A CNA2008103016896 A CN A2008103016896A CN 200810301689 A CN200810301689 A CN 200810301689A CN 101587503 A CN101587503 A CN 101587503A
- Authority
- CN
- China
- Prior art keywords
- upright
- group
- agent structure
- order
- initial insertion
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- General Factory Administration (AREA)
Abstract
The invention provides a kind of graph sorting system, run on main frame, this system comprises: acquisition module, computing module and order module.Wherein, acquisition module is used for obtaining from database the relevant information of mould design figure file and all kinds of figures of figure shelves; Computing module is used to calculate length value, the width value of all kinds of figures, and calculates the arrangement position of the upright figure of group, non-group of upright figure in the mould design figure file according to position, the width value of agent structure figure; Order module is used for determining putting in order of the upright figure of all groups, non-group of upright figure according to the relevant information of figure, and according to putting in order the upright figure of each group, non-group of upright figure is inserted into the respective row column position.The present invention also provides a kind of graph sorting method.Utilize the present invention, can rationally sort rambling figure in the mould design figure file.
Description
Technical field
The present invention relates to a kind of CAD figure shelves aided design system and method, especially about graph sorting system meter method in the CAD designed graphic document.
Background technology
Current, (Computer Aided Manufacturing, (Computer Aided Design is to exchange by graphical information orderly in the drawing CAD) in CAM) system and computer-aided design (CAD) in the computer-aided design (CAD) manufacturing.Yet, in die design process, figure in the designed graphic document is carried out design alteration can't be avoided with revising, so designed graphic document figure after design is finished is not only many and arrangement position is disorderly and unsystematic, will cause the CAM system reasonably to carry out processing and manufacturing like this according to designed graphic document, further because manufacturing sequence unreasonable extremely be easy to generate the rapidoprint waste or occur should be enough get the raw materials ready and become not enough, cause that the Mould Machining cost rises, the cycle elongates.
For remedy the graphic designs that causes because of the figure chaotic and make in the problem that occurs, the deviser is after finishing the mould design, often need to spend the plenty of time to the figure arrangement of sorting, but it is quite difficult by deviser's vision the huge figure of quantity being judged, put in order, cause unreasonable structure and arrangement easily or omit figure, make that the figure mistake appears in correct designed graphic document originally.
Summary of the invention
In view of above content, be necessary to provide a kind of graph sorting system, can rationally sort to rambling figure in the mould design figure file, help CAM system read purposefully mould design figure file quick and precisely, improve quality of die design, shorten die manufacturing cycle.
In addition, also be necessary to provide a kind of graph sorting method, can rationally sort, help CAM system read purposefully mould design figure file quick and precisely, improve quality of die design, shorten die manufacturing cycle rambling figure in the mould design figure file.
The invention provides a kind of graph sorting system, run on main frame, this system comprises: acquisition module, be used for obtaining the mould design figure file that to carry out the graph sorting processing from database, from this mould design figure file, obtain agent structure figure and non-agent structure figure, and from database, obtain the name information of all non-agent structure figures; Order module is used for according to name information non-agent structure figure being divided into the upright figure of group and non-group of upright figure two classes; Computing module is used for calculating the width value and the length value of this mould design figure file figure, the initial insertion position of the upright figure of group when calculating ordering according to the position of agent structure figure and width value; Order module, also be used for determining that according to the name information of the upright figure of group the upright figure of each group is in the position of main structure chart relation, determine putting in order and arrangement position of the upright figure of each group, and the upright figure of each group is moved to the respective row column position according to the position relation of the upright figure of each group in main structure chart, the initial insertion position of the upright figure of group according to putting in order; Acquisition module also is used for obtaining all non-group attribute information that founds figure from database; And order module, also being used for classifies and determine all non-group upright figure according to the attribute information of non-group of upright figure puts in order, initial insertion position and agent structure figure width value according to the upright figure of group are determined non-group of initial insertion position of founding figure, and according to non-group of upright figure put in order and putting in order and arrangement position of each non-group upright figure determined in initial insertion position, and each non-group upright figure moved to the respective row column position according to putting in order.
The present invention also provides a kind of graph sorting method: (A) obtain the mould design figure file that need carry out graph sorting from database, and obtain agent structure figure and non-agent structure figure from this mould design figure file; (B) from database, obtain the name information of all non-agent structure figures, non-agent structure figure is divided into the upright figure of group and non-group of upright figure two classes according to name information; (C) calculate the width value of described agent structure figure, the initial insertion position of the upright figure of group when calculating ordering according to the position of agent structure figure and width value; (D) determine the position relation of the upright figure of each group in main structure chart according to the name information of the upright figure of group; (E) determine putting in order and arrangement position of the upright figure of each group, and the upright figure of each group is moved to the respective row column position according to the position relation of the upright figure of each group in main structure chart, the initial insertion position of the upright figure of group according to putting in order; (F) obtain all non-group attribute information that founds figure from database; (G) according to the attribute information of non-group of upright figure all non-group upright figure classified and determine and put in order, and the initial insertion position of determining non-group of upright figure according to initial insertion position and the agent structure figure width value of the upright figure of group; And (H) according to non-group of upright figure put in order and putting in order and arrangement position of each non-group upright figure determined in initial insertion position, and each non-group upright figure moved to the respective row column position according to putting in order.
Compared to prior art, graph sorting system provided by the invention and method, can rationally sort to rambling figure in the mould design figure file, help CAM system read purposefully mould design figure file quick and precisely, improve quality of die design, shorten die manufacturing cycle.
Description of drawings
Fig. 1 is the hardware structure figure of graph sorting system preferred embodiment of the present invention.
Fig. 2 is the functional block diagram of graph sorting system of the present invention.
Fig. 3 is the process flow diagram of graph sorting method preferred embodiment of the present invention.
Fig. 4 is the mould design figure file synoptic diagram before the ordering.
Fig. 5 is the synoptic diagram that figure in the mould design figure file shown in Figure 4 is sorted.
Fig. 6 is the synoptic diagram behind the graph sorting in the mould design figure file shown in Figure 4.
Embodiment
The agent structure figure: in the mould design is the body frame structure part of mould, and the figure of this part can derive other non-agent structure figure.
Non-agent structure figure: from the agent structure figure derive come or the deviser from the agent structure figure, copy the figure that comes out, comprise that the upright figure of group and non-group stand to scheme.
The upright figure of group: the figure of forming by the continuous figure of the part of agent structure figure in the non-agent structure figure.
Non-group of upright figure: all figures in the non-agent structure figure except that the upright figure of group.
As shown in Figure 1, be the hardware structure figure of graph sorting system preferred embodiment of the present invention.As shown in Figure 1, be the hardware structure figure of graph sorting system preferred embodiment of the present invention.This graph sorting system 100 runs on a main frame 10, and this main frame 10 is connected with display device 12 and database 14.
As shown in Figure 2, be the functional block diagram of graph sorting system 100.This graph sorting system 100 comprises: acquisition module 110, computing module 120, order module 130 and preservation module 140.
Next, order module 130 according to non-group of upright figure put in order and putting in order and arrangement position of each non-group upright figure determined in initial insertion position, and each non-group upright figure moved to the respective row column position according to putting in order, as shown in Figure 5, being positioned at primary non-group of upright figure C after will sorting moves to its summit, lower left corner and overlaps with initial insertion point p1, the insertion point of other non-group upright figure adds that according to previous non-group of upright position, figure insertion point this previous non-group length and off-set value of founding figure is definite, for example hypothesis also has putting in order after the upright figure of group C of non-group of upright figure C1, the length c+ off-set value c0 of the upright figure in the position, insertion point of C1=non-group C then, and the like.As shown in Figure 6, be mould design figure file behind the graph sorting.
Preserve module 140 and be used to preserve mould design figure file after the ordering to database 14.
As shown in Figure 3, be the process flow diagram of graph sorting method preferred embodiment of the present invention.At first, at step S101, acquisition module 110 obtains from database 14 and need carry out the mould design figure file of graph sorting, and obtains agent structure figure and non-agent structure figure in this mould design figure file.The A of agent structure figure shown in the mould design figure file as shown in Figure 4, non-agent structure figure B and C.
At step S102, acquisition module 110 obtains the name information of all non-agent structure figures from database 14, and order module 130 is divided into the upright figure of group and non-group of upright figure two classes according to name information with non-agent structure figure.As shown in Figure 4, figure B is the upright figure of group, and figure C is non-group of upright figure.
At step S103, computing module 120 calculates the width value of agent structure figures, is a as the width value of agent structure figure A among Fig. 4.
At step S104, computing module 120 calculates the initial insertion position of organizing upright figure when sorting according to the position and the width value of agent structure figure, as shown in Figure 5, with agent structure figure A upper left side summit p1 is the reference point certain distance that moves up, as add the distance of the width value a of an agent structure figure A, obtain organizing the initial insertion point p2 of upright figure.
At step S105, order module 130 is determined the position relation of the upright figure of each group in main structure chart according to the name information of the upright figure of group, for example can determine that according to name information " the upward upright figure of module ", " the upright figure of following module " " the upward upright figure of module " is positioned at above " the upright figure of following module " in main body mechanism.
At step S106, order module 130 is according to the position relation of the upright figure of each group in main structure chart, putting in order and arrangement position of each upright figure of group determined in the initial insertion position of the upright figure of group, as determining putting in order of each upright figure of group according to upper and lower relation, and according to the respective row column position that puts in order the upright figure of each group insertion, as shown in Figure 5, being positioned at primary group of upright figure B after will sorting most moves to its summit, lower left corner and overlaps with initial insertion point p2, the insertion point of the upright figure of other group adds that according to previous group of upright position, figure insertion point this previous group length and off-set value of founding figure is definite, for example hypothesis also has putting in order after the upright figure of group B of the upright figure of group B1, then position, the insertion point of B1=group is found the length b+ off-set value b0 of figure B, and the like.
At step S107, acquisition module 110 obtains the attribute information of all non-group upright figure, comprises the figure layer and the corresponding production code member at each non-group upright figure place.
At step S108, order module 130 is classified and is determined all non-group upright figure according to the attribute information of non-group of upright figure and puts in order.Generally speaking, non-group of upright figure of phase diagram layer is a class, non-group of upright figure at the phase diagram layer can sort according to the size order of figure numbering, 4 non-group upright figure arranged in for example same figure layer, its figure numbering is respectively D01D, D01C, D01A, D01F, and then ordering back order is: D01A, D01C, D01D, D01F.
At step S109, the initial insertion position that order module 130 is determined non-group of upright figure according to initial insertion point and the agent structure figure width value of the upright figure of group, for example, the width value that the initial insertion point p2 of the upright figure of group is moved an agent structure figure downwards obtains the initial insertion point p1 of non-group of upright figure.
At step S110, order module 130 according to non-group of upright figure put in order and initial insertion point moves to the relevant position with non-group of upright figure and arranges, as shown in Figure 5, being positioned at primary non-group of upright figure C after will sorting moves to its summit, lower left corner and overlaps with initial insertion point p1, the insertion point of other non-group upright figure adds that according to previous non-group of upright position, figure insertion point this previous non-group length and off-set value of founding figure is definite, for example hypothesis also has putting in order after the upright figure of group C of non-group of upright figure C1, length C+off-set value b0 of the upright figure in the position, insertion point of C1=non-group C then, and the like.
At step S111, the mould design figure file after the 140 preservation orderings of preservation module is to database 14.
Claims (10)
1. a graph sorting system runs on main frame, it is characterized in that, this system comprises:
Acquisition module is used for obtaining the mould design figure file that need carry out the graph sorting processing from database, obtains agent structure figure and non-agent structure figure from this mould design figure file, and obtain the name information of all non-agent structure figures from database;
Order module is used for according to name information non-agent structure figure being divided into the upright figure of group and non-group of upright figure two classes;
Computing module, be used for calculating the width value and the length value of this mould design figure file figure, position and width value according to the agent structure figure calculate the initial insertion position of organizing upright figure when sorting, determine non-group of initial insertion position of founding figure according to initial insertion position and the agent structure figure width value of the upright figure of group;
Order module, also be used for determining that according to the name information of the upright figure of group the upright figure of each group is in the position of main structure chart relation, determine putting in order and arrangement position of the upright figure of each group, and the upright figure of each group is moved to the respective row column position according to the position relation of the upright figure of each group in main structure chart, the initial insertion position of the upright figure of group according to putting in order;
Acquisition module also is used for obtaining all non-group attribute information that founds figure from database; And
Order module, also being used for classifies and determine all non-group upright figure according to the attribute information of non-group of upright figure puts in order, and according to non-group of upright figure put in order and putting in order and arrangement position of each non-group upright figure determined in initial insertion position, and each non-group upright figure moved to the respective row column position according to putting in order.
2. graph sorting system as claimed in claim 1 is characterized in that, this system also comprises:
Preserve module, be used to preserve mould design figure file after the ordering to described database.
3. graph sorting system as claimed in claim 1, it is characterized in that, the initial insertion position of described group of upright figure is to be that benchmark moves the width value of at least one agent structure figure directly over it distance obtains with the agent structure graph position, and arrangement position of the upright figure of each group is to add that according to previous group of upright figure arrangement position length and an off-set value of this previous group upright figure obtain.
4. graph sorting system as claimed in claim 1 is characterized in that, the attribute information of described non-group of upright figure comprises figure place figure layer and the pairing dash number of figure.
5. graph sorting system as claimed in claim 4, it is characterized in that, the initial insertion position of described non-group of upright figure is to be that benchmark moves an agent structure figure under it width value obtains with the initial insertion position of organizing upright figure, and the arrangement position of each non-group upright figure is to add that according to previous non-group of upright figure arrangement position length and an off-set value of this previous non-group of upright figure obtain.
6. a graph sorting method is characterized in that, this method may further comprise the steps:
From database, obtain the mould design figure file that to carry out graph sorting, and obtain agent structure figure and non-agent structure figure from this mould design figure file;
From database, obtain the name information of all non-agent structure figures, non-agent structure figure is divided into the upright figure of group and non-group of upright figure two classes according to name information;
Calculate the width value of described agent structure figure, the initial insertion position of the upright figure of group when calculating ordering according to the position of agent structure figure and width value;
Determine the position relation of the upright figure of each group in main structure chart according to the name information of the upright figure of group;
Determine putting in order and arrangement position of the upright figure of each group, and the upright figure of each group is moved to the respective row column position according to the position relation of the upright figure of each group in main structure chart, the initial insertion position of the upright figure of group according to putting in order;
Obtain the attribute information of all non-group upright figure from database;
According to the attribute information of non-group of upright figure all non-group upright figure being classified and determine puts in order, and the initial insertion position of determining non-group of upright figure according to initial insertion position and the agent structure figure width value of the upright figure of group; And
According to non-group of upright figure put in order and putting in order and arrangement position of each non-group upright figure determined in initial insertion position, and each non-group upright figure moved to the respective row column position according to putting in order.
7. graph sorting method as claimed in claim 6 is characterized in that, this method is further comprising the steps of:
Mould design figure file after the preservation ordering is to described database.
8. graph sorting method as claimed in claim 6, it is characterized in that, the initial insertion position of described group of upright figure is to be that benchmark moves the width value of at least one agent structure figure directly over it distance obtains with the agent structure graph position, and arrangement position of the upright figure of each group is to add that according to previous group of upright figure arrangement position length and an off-set value of this previous group upright figure obtain.
9. graph sorting method as claimed in claim 6 is characterized in that, the attribute information of described non-group of upright figure comprises figure place figure layer and the pairing dash number of figure.
10. graph sorting method as claimed in claim 9, it is characterized in that, the initial insertion position of described non-group of upright figure is to be that benchmark moves an agent structure figure under it width value obtains with the initial insertion position of organizing upright figure, and the arrangement position of each non-group upright figure is to add that according to previous non-group of upright figure arrangement position length and an off-set value of this previous non-group of upright figure obtain.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2008103016896A CN101587503A (en) | 2008-05-21 | 2008-05-21 | Graph sorting system and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2008103016896A CN101587503A (en) | 2008-05-21 | 2008-05-21 | Graph sorting system and method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101587503A true CN101587503A (en) | 2009-11-25 |
Family
ID=41371751
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNA2008103016896A Pending CN101587503A (en) | 2008-05-21 | 2008-05-21 | Graph sorting system and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101587503A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105404240A (en) * | 2015-12-29 | 2016-03-16 | 苏州博众精工科技有限公司 | Method for automatically generating AutoCAD drawing file and rapidly ordering point position coordinates |
CN109684495A (en) * | 2018-12-27 | 2019-04-26 | 中民筑友科技投资有限公司 | A kind of drawing check of drawings method, apparatus, equipment and the system of assembled architecture |
-
2008
- 2008-05-21 CN CNA2008103016896A patent/CN101587503A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105404240A (en) * | 2015-12-29 | 2016-03-16 | 苏州博众精工科技有限公司 | Method for automatically generating AutoCAD drawing file and rapidly ordering point position coordinates |
CN109684495A (en) * | 2018-12-27 | 2019-04-26 | 中民筑友科技投资有限公司 | A kind of drawing check of drawings method, apparatus, equipment and the system of assembled architecture |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8107736B2 (en) | System and method for device mapping based on images and reference points | |
CN100541502C (en) | A kind of PCB analogue system and its implementation with error detection function | |
CN109157296A (en) | A kind of 3D printing components ID labeling method based on support | |
CN111552457A (en) | Statement identification-based front-end development page construction method and device and storage medium | |
CN112785368A (en) | Label production method, management method, device and system | |
US7934151B1 (en) | Specification of tables including objects with arbitrary formatting | |
CN101587503A (en) | Graph sorting system and method | |
CN106126809B (en) | Automatic design device and method for hot runner system structure | |
CN107239923A (en) | Generate the method and device of Application for Materials | |
CN1766888A (en) | Mold designing system and method | |
CN109241510A (en) | A kind of autochart generation system and its implementation based on wechat small routine | |
JPH09160945A (en) | Device and method for estimating cost | |
CN112861282B (en) | System and method for realizing data transmission among multiple software | |
CN111143412A (en) | Data comparison method and device, computer and computer readable storage medium | |
CN102955870A (en) | Method and system for extracting dimension information | |
CN102663013B (en) | Method for creating database for die set and database management system | |
CN101576937A (en) | Chamfer marking system and chamfer marking method | |
CN104476745B (en) | Monitoring device, monitoring method and operation method of data statistics module | |
Kumar et al. | System for computer-aided cavity layout design for die-casting dies | |
CN114491703A (en) | Method and device for acquiring bill of material (BOM) information, electronic equipment and medium | |
CN109508861B (en) | Rapid component distribution method and system | |
CN101174281B (en) | Automatic die assembly checking system and method thereof | |
CN107633074B (en) | Information extraction method and device and storage medium | |
Bhandwale et al. | A methodology to incorporate product mix variations in cellular manufacturing | |
CN101571882A (en) | System and method for generating minimum outline of characters |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Open date: 20091125 |