CN101739432A - System and method for searching graphic elements - Google Patents

System and method for searching graphic elements Download PDF

Info

Publication number
CN101739432A
CN101739432A CN200810305531A CN200810305531A CN101739432A CN 101739432 A CN101739432 A CN 101739432A CN 200810305531 A CN200810305531 A CN 200810305531A CN 200810305531 A CN200810305531 A CN 200810305531A CN 101739432 A CN101739432 A CN 101739432A
Authority
CN
China
Prior art keywords
pel
view diagram
graphic elements
coupling
selected pel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN200810305531A
Other languages
Chinese (zh)
Inventor
王寄清
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry Co Ltd
Original Assignee
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hongfujin Precision Industry Shenzhen Co Ltd, Hon Hai Precision Industry Co Ltd filed Critical Hongfujin Precision Industry Shenzhen Co Ltd
Priority to CN200810305531A priority Critical patent/CN101739432A/en
Publication of CN101739432A publication Critical patent/CN101739432A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a method for searching graphic elements. The method comprises the following steps of: selecting graphic elements to be searched for; acquiring frame IDs of the selected graphic elements so as to record the number of graphic elements; acquiring all graphic elements and attribute values thereof in a standard graphic library; acquiring the external dimensions and the textures of the selected graphic elements in the graphic library in sequence; and searching the graphic elements matched with the selected graphic elements in terms of external dimension, texture and three-view graph in the standard graphic library, adding the labeling information to the selected graphic elements if the matched graphic elements are searched, and otherwise, outputting the search failure information. The invention also provides a system for searching graphic elements. By the method and the device, the graphic elements which are matched with the selected graphic elements can be automatically searched in the standard graphic library according to the graphic elements selected by a user.

Description

System for searching graphic elements and method
Technical field
The present invention relates to a kind of graphic design system and method, relate in particular to a kind of system for searching graphic elements and method.
Background technology
Correspondence can only be produced a kind of element with the one mold tool of production (as a cover mould bases), and a cover product (as a cabinet) is made up of many elements identical or inequality, and this produces with regard to the tool of production that needs a variety of these different elements of production.When the deviser need develop a cover new product, whether earlier manually search the element that comprises in this new product usually exists in the warehouse, if this element does not exist, then need to utilize graphic design software (as AutoCAD) to design the X-Y scheme of this element, give production unit with the X-Y scheme of this element then, production unit utilizes the mould tool of production to produce this element again according to the X-Y scheme of this element.But omitting and mistake appears in this mode of manually searching easily, causes the duplication of production of element, the waste means of production, and the while also can increase the tank farm stock of element.
Summary of the invention
In view of above content, be necessary to provide a kind of system for searching graphic elements, it can search the pel with selected pel coupling automatically according to the pel of user's selection in the test pattern storehouse.
In addition, also be necessary to provide a kind of searching graphic elements method, it can search the pel with selected pel coupling automatically according to the pel of user's selection in the test pattern storehouse.
A kind of system for searching graphic elements, comprise main frame, described main frame comprises the mould design cell, be used to generate the X-Y scheme of various workpiece, described main frame also includes pel and searches the unit, and this pel is searched the unit and comprised: acquisition module is used for behind the pel that the user selects to search, obtain the picture frame ID of selected pel, and with the number of the selected pel of number recording user of the picture frame ID that obtains; Described acquisition module also is used for obtaining all pels and property value thereof from the test pattern storehouse of mould design cell, and described property value comprises physical dimension, material, three-view diagram, version number and the production number of pel; Described acquisition module also is used for obtaining successively from the graphic data base of mould design cell the physical dimension and the material of selected pel; Search module, be used for searching in described test pattern storehouse physical dimension, material and three-view diagram all with the pel of selected pel coupling; Labeling module is used for when searching module when finding pel with selected pel coupling in described test pattern storehouse this selected pel being added markup information; Output module is used for when searching module when not finding pel with selected pel coupling in test pattern storehouse 31, and the information of failure is searched in output.
A kind of searching graphic elements method comprises the steps: that (a) selects the pel that need search; (b) obtain the picture frame ID of selected pel, and write down the number of selected pel with the number of the picture frame ID that obtains; (c) obtain all pels and property value thereof in the test pattern storehouse, described property value comprises physical dimension, material, three-view diagram, version number and the production number of pel; (d) from graphic data base, obtain the physical dimension and the material of selected pel successively; (e) in described test pattern storehouse, search physical dimension, material and three-view diagram all with the pel of a selected pel coupling; (f) if find the pel of coupling in the step (e), then this selected pel is added markup information, return step (d) then, continue in the test pattern storehouse, to search the pel that physical dimension, material and three-view diagram all mate with next selected pel; (g) if do not find the pel of coupling in the step (e), then the information of failure is searched in output, returns step (d) then, searches up to all selected pels to finish.
Compared to prior art, described system for searching graphic elements and method can be searched the pel with selected pel coupling automatically according to the pel of user's selection in the test pattern storehouse, thereby omission and mistake that the artificial mode of searching of preventing occurs reduce the tank farm stock of element.
Description of drawings
Fig. 1 is the system architecture diagram of the preferred embodiment of system for searching graphic elements of the present invention.
Fig. 2 is the functional block diagram that pel shown in Fig. 1 is searched the unit.
Fig. 3 is the process flow diagram of searching graphic elements method of the present invention preferred embodiment.
Embodiment
As shown in Figure 1, be the system architecture diagram of the preferred embodiment of system for searching graphic elements of the present invention.This system mainly comprises display 1, main frame 2, keyboard 3 and mouse 4, and described main frame 2 includes mould design cell 20 and pel is searched unit 21.Wherein, mould design cell 20 is automatic design softwares of a kind of mould (as AutoCAD), is used for generating in the mould design X-Y scheme of various workpiece.Described mould design cell 20 comprises a graphic data base 30 and test pattern storehouse 31, and described graphic data base 30 is used to store the pel of the workpiece that mould design cell 20 generates and the property value of each pel.The property value of described pel comprises: the physical dimension of pel, material, version number and production number etc.Described test pattern storehouse 31 is used to store the existing pel of the prior typing of user and the property value of each existing pel, and the property value of described existing pel comprises: the physical dimension of pel, material, three-view diagram, version number and production number etc.
Described pel is searched the pel that mould design cell 20 that unit 21 is used for selecting according to the user generates, automatically in test pattern storehouse 31, search pel with selected pel coupling, and after finding the pel that mates with selected pel, insert a mark square on the next door of selected pel, in the mark square, add markup information simultaneously.
Described main frame 2 is connected with display 1, is used to show that pel that mould design cell 20 generates and pel search the mark square that inserts unit 21 etc.Described keyboard 3 and mouse 4 can be imported data as input equipment when generating pel and searching pel.
As shown in Figure 2, be the functional block diagram that pel shown in Fig. 1 is searched unit 21.Described pel searches that unit 21 comprises acquisition module 210, searches module 211, labeling module 212 and output module 213.The alleged module of the present invention is to finish the computer program code segments of a specific function, be more suitable in describing the implementation of software in computing machine than program, therefore below the present invention to all describing in the software description with module.
Described acquisition module 210 is used for obtaining the picture frame ID of selected pel behind the pel that the user selects to search, and with the number of the selected pel of number recording user of the picture frame ID that obtains.
Described acquisition module 210 also is used for obtaining all pels and the property value thereof in test pattern storehouse 31.Wherein, the property value of pel comprises: the physical dimension of pel, material, three-view diagram, version number and production number etc.
Described acquisition module 210 also is used for obtaining successively from graphic data base 30 physical dimension and the material of selected pel.
Described search module 211 be used for searching in test pattern storehouse 31 physical dimension, material and three-view diagram all with the pel of selected pel coupling.Particularly, at first, search that module 211 is searched physical dimension and material in test pattern storehouse 31 and the physical dimension of the selected pel that obtains and the pel of material coupling from graphic data base 30.If there is no Pi Pei pel is then judged and is searched failure, if there is the pel of coupling, then calculates the three-view diagram of selected pel, and whether the three-view diagram of the three-view diagram that continues the pel that relatively finds and the selected pel that calculates mates.
If comparative result coupling, judge then and search successfully that if comparative result does not match, then the three-view diagram to the selected pel that calculates carries out mirror image processing, then, again relatively the three-view diagram after the three-view diagram of this pel that finds and the selected pel mirror image processing whether mate.
If comparative result does not match, then judge and search failure, if the comparative result coupling is then judged and searched successfully.Described mirror image processing is meant that the three-view diagram to selected pel is rotated operation (for example, dextrorotation turn 90 degrees).In the present embodiment, the three-view diagram of selected pel is meant front view, right view and following view.
Wherein, the step that the described three-view diagram of searching 211 pairs of selected pels of module calculates comprises: calculate it according to the physical dimension of selected pel earlier and surround collection, then selected pel is carried out filtration treatment, filter out picture frame, DIM layer, the geometric tolerances label of selected pel and explain literal, be offset at last according to the physical dimension of selected pel encirclement collection to selected pel, obtain three encirclement collection after the skew, the encirclement collection after these three skews is the three-view diagram of selected pel.
Described labeling module 212 is used for inserting a mark square on the next door of selected pel, and add markup information in this mark square when searching module 211 when finding pel with selected pel coupling in test pattern storehouse 31.Described markup information comprises: the version number and the production number of the pel that mates with selected pel in the test pattern storehouse 31.
Described output module 213 is used for when searching module 211 when not finding pel with selected pel coupling in test pattern storehouse 31, and the information of failure is searched in output.
As shown in Figure 3, be the process flow diagram of searching graphic elements method of the present invention preferred embodiment.Step S41, the pel that selection need be searched.
Step S42, acquisition module 210 obtain the picture frame ID of selected pel, and with the number of the selected pel of number recording user of the picture frame ID that obtains.
Step S43, acquisition module 210 obtain all pels and the property value thereof in the test pattern storehouse 31.Wherein, the property value of pel comprises: the physical dimension of pel, material, three-view diagram, version number and production number etc.
Step S44, acquisition module 210 obtain the physical dimension and the material of selected pel successively from graphic data base 30.
Step S45, search module 211 in test pattern storehouse 31, search physical dimension, material and three-view diagram all with the pel of selected pel coupling.
Step S46 searches module 211 and judges whether to search the pel that mates with selected pel.Particularly, at first, search that module 211 is searched physical dimension and material in test pattern storehouse 31 and the physical dimension of the selected pel that obtains and the pel of material coupling from graphic data base 30.If there is no Pi Pei pel is then judged and is searched failure, execution in step S48, otherwise, if there is the pel of coupling, then calculate the three-view diagram of selected pel, and whether the three-view diagram of the three-view diagram that continues the pel that relatively finds and the selected pel that calculates mates.
If comparative result coupling, then judge and search successfully, execution in step S47, otherwise, if comparative result does not match, then the three-view diagram to the selected pel that calculates carries out mirror image processing, and then, relatively whether the three-view diagram after the three-view diagram of this pel that finds and the selected pel mirror image processing mates again.
If comparative result does not match, then judge and search failure, execution in step S48, otherwise, if the comparative result coupling is then judged and is searched successfully execution in step S47.
Described mirror image processing is meant that the three-view diagram to selected pel is rotated operation.In the present embodiment, the three-view diagram of selected pel is meant front view, right view and following view.
Wherein, the step that the described three-view diagram of searching 211 pairs of selected pels of module calculates comprises: calculate it according to the physical dimension of selected pel earlier and surround collection, then selected pel is carried out filtration treatment, filter out picture frame, DIM layer, the geometric tolerances label of selected pel and explain literal, be offset at last according to the physical dimension of selected pel encirclement collection to selected pel, obtain three encirclement collection after the skew, the encirclement collection after these three skews is the three-view diagram of selected pel.
Step S47, labeling module 212 is inserted a mark square on the next door of selected pel, and adds markup information in this mark square, then execution in step S49.Described markup information comprises: the version number and the production number of the pel that mates with selected pel in the test pattern storehouse 31.
Step S48, the information of failure, execution in step S49 are then searched in output module 213 outputs.
Step S49, searching module 211 judges whether all user-selected pels are searched and finishes, finish if also have pel not search, then flow process forwards step S44 to, continues to search in test pattern storehouse 31 pel that physical dimension, material and three-view diagram all mate with next pel.Finish if all pels have all been searched, then flow process finishes.
It should be noted that at last, above embodiment is only unrestricted in order to technical scheme of the present invention to be described, although the present invention is had been described in detail with reference to preferred embodiment, those of ordinary skill in the art is to be understood that, can make amendment or be equal to replacement technical scheme of the present invention, and not break away from the spirit and scope of technical solution of the present invention.

Claims (10)

1. a searching graphic elements method is characterized in that, this method comprises the steps:
(a) select the pel that to search;
(b) obtain the picture frame ID of selected pel, and write down the number of selected pel with the number of the picture frame ID that obtains;
(c) obtain all pels and property value thereof in the test pattern storehouse, described property value comprises physical dimension, material, three-view diagram, version number and the production number of pel;
(d) from graphic data base, obtain the physical dimension and the material of selected pel successively;
(e) in described test pattern storehouse, search physical dimension, material and three-view diagram all with the pel of a selected pel coupling;
(f) if find the pel of coupling in the step (e), then this selected pel is added markup information, return step (d) then, continue in the test pattern storehouse, to search the pel that physical dimension, material and three-view diagram all mate with next selected pel;
(g) if do not find the pel of coupling in the step (e), then the information of failure is searched in output, returns step (d) then, searches up to all selected pels to finish.
2. searching graphic elements method as claimed in claim 1 is characterized in that, step (e) comprising:
At first, in described test pattern storehouse, search the pel of physical dimension and material and selected pel coupling, if there is no Pi Pei pel, then judge and search failure, execution in step (g), otherwise, if there is the pel of coupling, then calculate the three-view diagram of selected pel, and whether the three-view diagram of the three-view diagram that continues the pel relatively find and the selected pel that calculates mates;
If comparative result coupling, then judge and search successfully, execution in step (f), otherwise, if comparative result does not match, then the three-view diagram to the selected pel that calculates carries out mirror image processing, and then, relatively whether the three-view diagram after the three-view diagram of this pel that finds and the selected pel mirror image processing mates again;
If comparative result does not match, then judge and search failure, execution in step (g), otherwise, if the comparative result coupling is then judged and is searched successfully execution in step (f).
3. searching graphic elements method as claimed in claim 2 is characterized in that, the three-view diagram that described step calculates selected pel comprises:
Calculate it according to the physical dimension of selected pel and surround collection;
Selected pel is carried out filtration treatment, filter out picture frame, DIM layer, the geometric tolerances label of selected pel and explain literal; And
Be offset according to the physical dimension of the selected pel encirclement collection to selected pel, obtain three encirclement collection after the skew, the encirclement collection after these three skews is the three-view diagram of selected pel.
4. searching graphic elements method as claimed in claim 2 is characterized in that, the three-view diagram of selected pel is meant front view, right view and following view.
5. searching graphic elements method as claimed in claim 1 is characterized in that, described markup information comprises: the version number and the production number of the pel that mates with selected pel in the test pattern storehouse.
6. a system for searching graphic elements comprises main frame, and described main frame comprises the mould design cell, is used to generate the X-Y scheme of various workpiece, it is characterized in that, described main frame also includes pel and searches the unit, and this pel is searched the unit and comprised:
Acquisition module is used for obtaining the picture frame ID of selected pel behind the pel that the user selects to search, and with the number of the selected pel of number recording user of the picture frame ID that obtains;
Described acquisition module also is used for obtaining all pels and property value thereof from the test pattern storehouse of mould design cell, and described property value comprises physical dimension, material, three-view diagram, version number and the production number of pel;
Described acquisition module also is used for obtaining successively from the graphic data base of mould design cell the physical dimension and the material of selected pel;
Search module, be used for searching in described test pattern storehouse physical dimension, material and three-view diagram all with the pel of selected pel coupling;
Labeling module is used for when searching module when finding pel with selected pel coupling in described test pattern storehouse this selected pel being added markup information;
Output module is used for when searching module when not finding pel with selected pel coupling in test pattern storehouse 31, and the information of failure is searched in output.
7. system for searching graphic elements as claimed in claim 6 is characterized in that, the described module of searching is searched physical dimension, material and three-view diagram and all comprised with the pel of selected pel coupling in described test pattern storehouse:
At first, in described test pattern storehouse, search the pel of physical dimension and material and selected pel coupling, if there is no Pi Pei pel, then judge and search failure, if there is the pel of coupling, then calculate the three-view diagram of selected pel, and whether the three-view diagram of the three-view diagram that continues the pel relatively find and the selected pel that calculates mates;
If comparative result coupling, judge then and search successfully that if comparative result does not match, then the three-view diagram to the selected pel that calculates carries out mirror image processing, then, again relatively the three-view diagram after the three-view diagram of this pel that finds and the selected pel mirror image processing whether mate;
If comparative result does not match, then judge and search failure, if the comparative result coupling is then judged and searched successfully.
8. system for searching graphic elements as claimed in claim 7 is characterized in that, describedly searches the three-view diagram that module calculates selected pel and comprises:
Calculate it according to the physical dimension of selected pel and surround collection;
Selected pel is carried out filtration treatment, filter out picture frame, DIM layer, the geometric tolerances label of selected pel and explain literal; And
Be offset according to the physical dimension of the selected pel encirclement collection to selected pel, obtain three encirclement collection after the skew, the encirclement collection after these three skews is the three-view diagram of selected pel.
9. system for searching graphic elements as claimed in claim 7 is characterized in that, described mirror image processing is meant that the three-view diagram to selected pel is rotated operation.
10. system for searching graphic elements as claimed in claim 6 is characterized in that, described markup information comprises: the version number and the production number of the pel that mates with selected pel in the test pattern storehouse.
CN200810305531A 2008-11-13 2008-11-13 System and method for searching graphic elements Pending CN101739432A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200810305531A CN101739432A (en) 2008-11-13 2008-11-13 System and method for searching graphic elements

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200810305531A CN101739432A (en) 2008-11-13 2008-11-13 System and method for searching graphic elements

Publications (1)

Publication Number Publication Date
CN101739432A true CN101739432A (en) 2010-06-16

Family

ID=42462923

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200810305531A Pending CN101739432A (en) 2008-11-13 2008-11-13 System and method for searching graphic elements

Country Status (1)

Country Link
CN (1) CN101739432A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106709038A (en) * 2016-12-29 2017-05-24 武汉华安科技股份有限公司 Method and system for citing standard design drawing blocks
CN107463731A (en) * 2017-07-05 2017-12-12 西安理工大学 A kind of automatic classified statistic method of steel structure work amount based on Tekla
CN108733442A (en) * 2017-04-18 2018-11-02 西安融成科技有限公司 A kind of electronic chart escape character structure system based on vector symbol description language
CN117195338A (en) * 2023-09-11 2023-12-08 广州水纹厨房工程设计有限公司 Automatic generation method and device of product design diagram, electronic equipment and storage medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106709038A (en) * 2016-12-29 2017-05-24 武汉华安科技股份有限公司 Method and system for citing standard design drawing blocks
CN106709038B (en) * 2016-12-29 2020-05-01 武汉华安科技股份有限公司 Reference method and reference system for standard design pattern block
CN108733442A (en) * 2017-04-18 2018-11-02 西安融成科技有限公司 A kind of electronic chart escape character structure system based on vector symbol description language
CN107463731A (en) * 2017-07-05 2017-12-12 西安理工大学 A kind of automatic classified statistic method of steel structure work amount based on Tekla
CN117195338A (en) * 2023-09-11 2023-12-08 广州水纹厨房工程设计有限公司 Automatic generation method and device of product design diagram, electronic equipment and storage medium
CN117195338B (en) * 2023-09-11 2024-05-28 广州水纹厨房工程设计有限公司 Automatic generation method and device of product design diagram, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN102156751B (en) Method and device for extracting video fingerprint
US20100008584A1 (en) System and method for device mapping based on images and reference points
CN107688664B (en) Chart generation method and device, computer equipment and storage medium
CN105653700A (en) Video search method and system
US20100092093A1 (en) Feature matching method
KR20160044999A (en) System and Method for Searching Choreography Database based on Motion Inquiry
CN102103500B (en) Operation monitoring device
CN105373541A (en) Processing method and system for data operation request of database
CN111931097A (en) Information display method and device, electronic equipment and storage medium
CN106155769A (en) A kind of workflow processing method, device and workflow engine
CN105335036A (en) Input interaction method and input method system
US20190087470A1 (en) System and method for mining user cycle mode
CN101739432A (en) System and method for searching graphic elements
CN111159982A (en) Document editing method and device, electronic equipment and computer readable storage medium
CN105095910A (en) Classification method of DICOM images
CN106971004B (en) Search result providing method and device
US20090070724A1 (en) Information processing device, method of creating power supply system tree and program of the same
CN104573132A (en) Method and device for finding songs
CN110659393B (en) Method and system for generating xml code
CN106202456B (en) Send the method and device of picture
JP2010267083A (en) Form retrieval device, form retrieval program and form retrieval method
CN101174282A (en) Gallery management system and method
CN115563949A (en) Automatic text report generation method and system
CN105740260A (en) Method and device for extracting template file data structure
CN114741077A (en) Page effect preview method, device, equipment and medium based on field granularity

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: 20100616