CN101739432A - System and method for searching graphic elements - Google Patents
System and method for searching graphic elements Download PDFInfo
- 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
- search
- graphic elements
- 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
Links
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
技术领域technical field
本发明涉及一种图形设计系统及方法,尤其涉及一种图形元件查找系统及方法。The invention relates to a graphic design system and method, in particular to a graphic element search system and method.
背景技术Background technique
一套模具生产工具(如一套模架)对应只能生产一种元件,而一套产品(如一个机箱)是由许多相同或不相同的元件组成,这就需要很多种生产这些不同元件的生产工具进行生产。当设计者需要开发一套新产品时,通常先人工查找该新产品中包含的元件是否已经在仓库中存在,如果该元件不存在,则需要利用图形设计软件(如AutoCAD)设计该元件的二维图形,然后将该元件的二维图形交给生产单位,生产单位再依照该元件的二维图形,利用模具生产工具生产出该元件。但是,这种人工查找方式容易出现遗漏和错误,导致元件的重复生产,浪费生产资料,同时也会增加元件的库存量。A set of mold production tools (such as a set of mold bases) can only produce one type of component, while a set of products (such as a chassis) is composed of many identical or different components, which requires many kinds of production of these different components. tools for production. When a designer needs to develop a new product, he usually manually finds out whether the component contained in the new product already exists in the warehouse. If the component does not exist, he needs to use graphic design software (such as AutoCAD) to design a second version of the component dimensional graphics, and then give the two-dimensional graphics of the component to the production unit, and the production unit will use the mold production tool to produce the component according to the two-dimensional graphics of the component. However, this manual search method is prone to omissions and errors, which leads to repeated production of components, waste of production materials, and also increases the inventory of components.
发明内容Contents of the invention
鉴于以上内容,有必要提供一种图形元件查找系统,其可根据用户选择的图元,自动在标准图形库中查找与所选图元匹配的图元。In view of the above, it is necessary to provide a graphic element search system, which can automatically search for a graphic element matching the selected graphic element in a standard graphic library according to the graphic element selected by the user.
此外,还有必要提供一种图形元件查找方法,其可根据用户选择的图元,自动在标准图形库中查找与所选图元匹配的图元。In addition, it is also necessary to provide a graphic component search method, which can automatically search for a graphic element matching the selected graphic element in a standard graphic library according to the graphic element selected by the user.
一种图形元件查找系统,包括主机,所述主机包括模具设计单元,用于生成各种工件的二维图形,所述主机还包含有图元查找单元,该图元查找单元包括:获取模块,用于在用户选择需要查找的图元后,获取所选图元的图框ID,并以获取的图框ID的个数记录用户所选图元的个数;所述获取模块,还用于从模具设计单元的标准图形库中获取所有图元及其属性值,所述属性值包括图元的外形尺寸、材质、三视图、版本号和产品号;所述获取模块,还用于从模具设计单元的图形数据库中依次获取所选图元的外形尺寸和材质;查找模块,用于在所述标准图形库中查找外形尺寸、材质和三视图均与所选图元匹配的图元;标注模块,用于当查找模块在所述标准图形库中找到与所选图元匹配的图元时,对该所选图元添加标注信息;输出模块,用于当查找模块没有在标准图形库31中找到与所选图元匹配的图元时,输出查找失败的信息。A graphic element search system, including a host, the host includes a mold design unit for generating two-dimensional graphics of various workpieces, the host also includes a graphic element search unit, the graphic element search unit includes: an acquisition module, After the user selects the graphic element that needs to be searched, obtain the frame ID of the selected graphic element, and record the number of the graphic element selected by the user with the number of the acquired frame ID; the acquisition module is also used to Obtain all graphics elements and their attribute values from the standard graphics library of the mold design unit, the attribute values include the outline size, material, three views, version number and product number of the graphics elements; the acquisition module is also used to obtain from the mold The external dimensions and materials of the selected graphic elements are sequentially obtained from the graphic database of the design unit; the search module is used to search for the graphic entities whose external dimensions, materials and three views all match the selected graphic elements in the standard graphic library; mark Module, used to add annotation information to the selected graphic entity when the search module finds a graphic entity matching the selected graphic entity in the standard graphic library; output module, used when the search module is not in the standard
一种图形元件查找方法,包括如下步骤:(a)选择需要查找的图元;(b)获取所选图元的图框ID,并以获取的图框ID的个数记录所选图元的个数;(c)获取标准图形库中的所有图元及其属性值,所述属性值包括图元的外形尺寸、材质、三视图、版本号和产品号;(d)从图形数据库中依次获取所选图元的外形尺寸和材质;(e)在所述标准图形库中查找外形尺寸、材质和三视图均与一个所选图元匹配的图元;(f)如果步骤(e)中找到匹配的图元,则对该所选图元添加标注信息,然后返回步骤(d),继续在标准图形库中查找外形尺寸、材质和三视图均与下一个所选图元匹配的图元;(g)如果步骤(e)中没有找到匹配的图元,则输出查找失败的信息,然后返回步骤(d),直到所有的所选图元查找完毕。A method for finding graphic elements, comprising the steps of: (a) selecting a graphic element to be searched; (b) obtaining the frame ID of the selected graphic element, and recording the number of the selected graphic element with the number of the acquired frame ID number; (c) obtain all graphic elements and their attribute values in the standard graphics library, and the attribute values include the outline size, material, three views, version number and product number of the graphic elements; (d) sequentially from the graphic database Obtain the external dimensions and the material of the selected graphic element; (e) search for a graphic entity whose external dimension, material and three views all match a selected graphic entity in the standard graphics library; (f) if in step (e) If a matching primitive is found, label information will be added to the selected primitive, and then return to step (d), and continue to search for the primitive in the standard graphics library whose external dimensions, materials and three views all match the next selected primitive ; (g) If no matching graphic entity is found in step (e), then output the information that the search failed, and then return to step (d), until all the selected graphic entities are searched.
相较于现有技术,所述图形元件查找系统及方法,可根据用户选择的图元,自动在标准图形库中查找与所选图元匹配的图元,从而防止人工查找方式出现的遗漏和错误,降低元件的库存量。Compared with the prior art, the graphic element search system and method can automatically search for graphic elements that match the selected graphic elements in the standard graphics library according to the graphic elements selected by the user, thereby preventing omissions and errors caused by manual search methods. Error, reduce component inventory.
附图说明Description of drawings
图1是本发明图形元件查找系统的较佳实施例的系统架构图。FIG. 1 is a system architecture diagram of a preferred embodiment of the graphic element search system of the present invention.
图2是图1中所示图元查找单元的功能模块图。FIG. 2 is a functional block diagram of the primitive search unit shown in FIG. 1 .
图3是本发明图形元件查找方法较佳实施例的流程图。Fig. 3 is a flow chart of a preferred embodiment of the graphic element search method of the present invention.
具体实施方式Detailed ways
如图1所示,是本发明图形元件查找系统的较佳实施例的系统架构图。该系统主要包括显示器1、主机2、键盘3及鼠标4,所述主机2包含有模具设计单元20及图元查找单元21。其中,模具设计单元20是一种模具自动设计软件(如AutoCAD),用于在模具设计中生成各种工件的二维图形。所述模具设计单元20包括一个图形数据库30和标准图形库31,所述图形数据库30用于存储模具设计单元20生成的工件的图元及每个图元的属性值。所述图元的属性值包括:图元的外形尺寸、材质、版本号和产品号等。所述标准图形库31用于存储用户事先录入的已有图元及每个已有图元的属性值,所述已有图元的属性值包括:图元的外形尺寸、材质、三视图、版本号和产品号等。As shown in FIG. 1 , it is a system architecture diagram of a preferred embodiment of the graphic element search system of the present invention. The system mainly includes a
所述图元查找单元21用于根据用户选择的模具设计单元20生成的图元,自动在标准图形库31中查找与所选图元匹配的图元,并在找到与所选图元匹配的图元后,在所选图元的旁边插入一个标注方块,同时在标注方块内添加标注信息。The graphic
所述主机2连接有显示器1,用于显示模具设计单元20生成的图元和图元查找单元21插入的标注方块等。所述键盘3和鼠标4用作输入设备,可以在生成图元和查找图元时输入数据。The
如图2所示,是图1中所示图元查找单元21的功能模块图。所述图元查找单元21包括获取模块210、查找模块211、标注模块212和输出模块213。本发明所称的模块是完成一特定功能的计算机程序段,比程序更适合于描述软件在计算机中的执行过程,因此在本发明以下对软件描述中都以模块描述。As shown in FIG. 2 , it is a functional block diagram of the
所述获取模块210用于在用户选择需要查找的图元后,获取所选图元的图框ID,并以获取的图框ID的个数记录用户所选图元的个数。The acquiring
所述获取模块210还用于获取标准图形库31中的所有图元及其属性值。其中,图元的属性值包括:图元的外形尺寸、材质、三视图、版本号和产品号等。The obtaining
所述获取模块210还用于从图形数据库30中依次获取所选图元的外形尺寸和材质。The obtaining
所述查找模块211用于在标准图形库31中查找外形尺寸、材质和三视图均与所选图元匹配的图元。具体而言,首先,查找模块211在标准图形库31中查找外形尺寸和材质与从图形数据库30中获取的所选图元的外形尺寸和材质匹配的图元。如果不存在匹配的图元,则判断查找失败,如果存在匹配的图元,则计算出所选图元的三视图,并继续比较查找到的图元的三视图与计算出的所选图元的三视图是否匹配。The
如果比较结果匹配,则判断查找成功,如果比较结果不匹配,则对计算出的所选图元的三视图进行镜像处理,然后,再一次比较该查找到的图元的三视图与所选图元镜像处理后的三视图是否匹配。If the comparison result matches, it is judged that the search is successful. If the comparison result does not match, the calculated three-view image of the selected primitive is mirrored, and then, the three-view image of the found primitive is compared with the selected image again. Whether the three views after meta-mirror processing match.
如果比较结果不匹配,则判断查找失败,如果比较结果匹配,则判断查找成功。所述镜像处理是指对所选图元的三视图进行旋转操作(例如,顺时针旋转90度)。在本实施例中,所选图元的三视图是指主视图、右视图和下视图。If the comparison result does not match, it is judged that the search has failed, and if the comparison result matches, it is judged that the search is successful. The mirror image processing refers to performing a rotation operation on the three views of the selected primitive (for example, rotating 90 degrees clockwise). In this embodiment, the three views of the selected graphic element refer to the front view, the right view and the bottom view.
其中,所述查找模块211对所选图元的三视图进行计算的步骤包括:先根据所选图元的外形尺寸计算其包围集,然后对所选图元进行过滤处理,过滤掉所选图元的图框、DIM层、几何公差标签和注解文字,最后根据所选图元的外形尺寸对所选图元的包围集进行偏移,得到三个偏移后的包围集,该三个偏移后的包围集即所选图元的三视图。Wherein, the step of the
所述标注模块212用于当查找模块211在标准图形库31中找到与所选图元匹配的图元时,在所选图元的旁边插入一个标注方块,并在该标注方块内添加标注信息。所述标注信息包括:标准图形库31中与所选图元匹配的图元的版本号和产品号。The
所述输出模块213用于当查找模块211没有在标准图形库31中找到与所选图元匹配的图元时,输出查找失败的信息。The
如图3所示,是本发明图形元件查找方法较佳实施例的流程图。步骤S41,选择需要查找的图元。As shown in FIG. 3 , it is a flow chart of a preferred embodiment of the graphic element search method of the present invention. Step S41, selecting the graphics entity to be searched.
步骤S42,获取模块210获取所选图元的图框ID,并以获取的图框ID的个数记录用户所选图元的个数。In step S42, the acquiring
步骤S43,获取模块210获取标准图形库31中的所有图元及其属性值。其中,图元的属性值包括:图元的外形尺寸、材质、三视图、版本号和产品号等。In step S43 , the
步骤S44,获取模块210从图形数据库30中依次获取所选图元的外形尺寸和材质。In step S44, the obtaining
步骤S45,查找模块211在标准图形库31中查找外形尺寸、材质和三视图均与所选图元匹配的图元。In step S45, the
步骤S46,查找模块211判断是否查找与所选图元匹配的图元。具体而言,首先,查找模块211在标准图形库31中查找外形尺寸和材质与从图形数据库30中获取的所选图元的外形尺寸和材质匹配的图元。如果不存在匹配的图元,则判断查找失败,执行步骤S48,否则,如果存在匹配的图元,则计算出所选图元的三视图,并继续比较查找到的图元的三视图与计算出的所选图元的三视图是否匹配。In step S46, the
如果比较结果匹配,则判断查找成功,执行步骤S47,否则,如果比较结果不匹配,则对计算出的所选图元的三视图进行镜像处理,然后,再一次比较该查找到的图元的三视图与所选图元镜像处理后的三视图是否匹配。If the comparison result matches, it is judged that the search is successful, and step S47 is performed; otherwise, if the comparison result does not match, the calculated three-view image of the selected graphic element is mirrored, and then, the image of the searched graphic element is compared again. Whether the three views match the three views after mirroring the selected entity.
如果比较结果不匹配,则判断查找失败,执行步骤S48,否则,如果比较结果匹配,则判断查找成功,执行步骤S47。If the comparison result does not match, it is judged that the search fails, and step S48 is executed; otherwise, if the comparison result matches, it is judged that the search is successful, and step S47 is executed.
所述镜像处理是指对所选图元的三视图进行旋转操作。在本实施例中,所选图元的三视图是指主视图、右视图和下视图。The mirror image processing refers to performing a rotation operation on the three views of the selected primitive. In this embodiment, the three views of the selected graphic element refer to the front view, the right view and the bottom view.
其中,所述查找模块211对所选图元的三视图进行计算的步骤包括:先根据所选图元的外形尺寸计算其包围集,然后对所选图元进行过滤处理,过滤掉所选图元的图框、DIM层、几何公差标签和注解文字,最后根据所选图元的外形尺寸对所选图元的包围集进行偏移,得到三个偏移后的包围集,该三个偏移后的包围集即所选图元的三视图。Wherein, the step of the
步骤S47,标注模块212在所选图元的旁边插入一个标注方块,并在该标注方块内添加标注信息,然后执行步骤S49。所述标注信息包括:标准图形库31中与所选图元匹配的图元的版本号和产品号。In step S47, the
步骤S48,输出模块213输出查找失败的信息,然后执行步骤S49。In step S48, the
步骤S49,查找模块211判断用户所选的所有图元是否查找完毕,如果还有图元没有查找完毕,则流程转到步骤S44,继续在标准图形库31中查找外形尺寸、材质和三视图均与下一个图元匹配的图元。如果所有图元都已查找完毕,则流程结束。Step S49, the
最后应说明的是,以上实施例仅用以说明本发明的技术方案而非限制,尽管参照较佳实施例对本发明进行了详细说明,本领域的普通技术人员应当理解,可以对本发明的技术方案进行修改或等同替换,而不脱离本发明技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention without limitation. Although the present invention has been described in detail with reference to the preferred embodiments, those of ordinary skill in the art should understand that the technical solutions of the present invention can be Modifications or equivalent replacements can be made without departing from the spirit and scope of the technical solutions of the present invention.
Claims (10)
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)
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 |
-
2008
- 2008-11-13 CN CN200810305531A patent/CN101739432A/en active Pending
Cited By (6)
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 |
---|---|---|
CN102598002B (en) | System and method for producing editable three-dimensional models | |
US7746341B2 (en) | System and method for parsing point-cloud data | |
CN106997613B (en) | 3D model generation from 2D images | |
Denning et al. | Meshgit: Diffing and merging meshes for polygonal modeling | |
CN102542093A (en) | Designing a modeled object within a session of a computer-aided design system interacting with a database | |
Doboš et al. | 3D Timeline: Reverse engineering of a part‐based provenance from consecutive 3D models | |
Spina et al. | Point cloud segmentation for cultural heritage sites | |
CN116324783A (en) | Method and system for providing three-dimensional computer-aided design (CAD) models in a CAD environment | |
CN101739432A (en) | System and method for searching graphic elements | |
US20180285511A1 (en) | Information processing apparatus, design support method, and recording medium storing design support program | |
CN110647826A (en) | Method, device, computer equipment and storage medium for obtaining training pictures of commodities | |
CN113642054A (en) | CAD drawing data processing method, device and storage medium | |
US20070038668A1 (en) | Object matching management system enabling instantaneous reflection of change in object information in operation terminals | |
US8630477B2 (en) | Electronic device and method for outputting measurement data | |
CN111133474B (en) | Image processing apparatus, image processing method, and computer-readable recording medium | |
CN111985015B (en) | A system and method for automatically generating BOM using VBA function | |
TW201020833A (en) | System and method for searching graphic elements | |
CN108319750B (en) | Subway engineering collaborative design system based on DWG file splitting and recombining method | |
US20190156265A1 (en) | Section procedure tracking system and section procedure tracking system method | |
CN119722873B (en) | Drawing format conversion method, device, computer equipment and storage medium | |
US20120215480A1 (en) | Computing device and programming method for a three-dimensional measurement machine | |
JP5651446B2 (en) | Drawing creation support system | |
CN119004190B (en) | A method, system and medium for generating enterprise patent information classification rules | |
CN114819458B (en) | Simulation model construction method and simulation model construction device | |
CN101290637A (en) | Drawing and file merging system and method |
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 |