TWI414954B - Method and system for relating sub-orifices to corresponding main orifice automatically - Google Patents

Method and system for relating sub-orifices to corresponding main orifice automatically Download PDF

Info

Publication number
TWI414954B
TWI414954B TW096137499A TW96137499A TWI414954B TW I414954 B TWI414954 B TW I414954B TW 096137499 A TW096137499 A TW 096137499A TW 96137499 A TW96137499 A TW 96137499A TW I414954 B TWI414954 B TW I414954B
Authority
TW
Taiwan
Prior art keywords
hole
holes
sub
main
attribute
Prior art date
Application number
TW096137499A
Other languages
Chinese (zh)
Other versions
TW200917074A (en
Inventor
Yu-Quan Xie
Original Assignee
Hon Hai Prec Ind 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 Hon Hai Prec Ind Co Ltd filed Critical Hon Hai Prec Ind Co Ltd
Priority to TW096137499A priority Critical patent/TWI414954B/en
Publication of TW200917074A publication Critical patent/TW200917074A/en
Application granted granted Critical
Publication of TWI414954B publication Critical patent/TWI414954B/en

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Abstract

A system for relating sub-orifices to corresponding main orifice automatically is provided. The system runs in a computer. The system includes: a determining module for selecting orifices from graphics primitives of a drawing; a classifying module for selecting scattered orifices from the orifices, and classifying the scattered orifices; a main orifice determining module for separating main orifices and sub-orifices from the classified scattered orifices; a matching module for matching the main orifices and the corresponding sub-orifices; and a relating module for relating the sub-orifices to corresponding main orifices. A related method is also provided.

Description

孔自動關聯方法及系統 Hole automatic association method and system

本發明涉及一種零件輔助設計方法及系統,尤其是一種孔自動關聯方法及系統。 The invention relates to a part auxiliary design method and system, in particular to a hole automatic association method and system.

衝壓模具設計中,設計者每天都在對零件的孔進行相關的操作,包括對孔的修改、複製、剪切、炸開及打斷等動作。這些動作的操作後果可能使零件子孔的位置與其關聯的主孔的位置發生偏離,而使原有的組合孔(相關聯的主孔與子孔)被打斷成為零散的孔,從而導致子孔與其關聯的主孔之間失去原有的關聯關係。子孔與主孔是透過關聯關係進行關聯的,如果子孔與主孔之間丟失了關聯關係,將會導致主孔與子孔成為兩個或者兩個以上單獨的個體,由此便導致了一系列的問題,如拆圖時組合孔已不是一個整體而使拆圖後缺少了一部分重要的資訊,最終導致加工結果的錯誤,使加工部門受到極大的損失。 In the stamping die design, the designer performs related operations on the hole of the part every day, including the modification, copying, cutting, blasting and breaking of the hole. The operational consequences of these actions may cause the position of the sub-aperture of the part to deviate from the position of the associated main hole, so that the original combined hole (the associated main hole and sub-hole) is broken into loose holes, resulting in a sub- The original relationship between the hole and its associated main hole is lost. The sub-hole and the main hole are related by an association relationship. If the relationship between the sub-hole and the main hole is lost, the main hole and the sub-hole become two or more separate individuals, thereby causing A series of problems, such as the combination of holes in the dismantling of the picture is not a whole and the lack of some important information after the dismantling of the picture, eventually leading to errors in the processing results, causing great losses to the processing department.

以往,解決此類問題的方法是人為地找到那些被炸開或者打斷的零散的孔,尋找其中的主孔與子孔,並將該主孔與子孔之間建立起關聯,使零散的子孔與主孔組合成組合孔。 In the past, the solution to such problems was to artificially find scattered holes that were blown up or broken, to find the main and sub-holes, and to establish an association between the main hole and the sub-holes to make the scattered The sub-holes are combined with the main holes into a combined hole.

這種傳統的人為進行關聯子孔與主孔的操作不僅浪費時間,而且當需要建立關聯的孔太多時,人為操作很容易產生誤差,很容易將某些零散的孔遺漏掉。 This traditional artificial operation of associating the sub-holes with the main holes is not only a waste of time, but when too many holes need to be established, the human operation is prone to errors, and it is easy to omit certain scattered holes.

鑒於以上內容,有必要提出一種孔自動關聯方法及系統,其可以自動的查找零散的孔,將子孔與其對應的主孔關聯起來。 In view of the above, it is necessary to propose a hole automatic association method and system, which can automatically find scattered holes and associate the sub holes with their corresponding main holes.

一種孔自動關聯方法,該方法包括:孔判斷步驟:遍歷設計圖檔中的所有圖形元素,查找其中的孔;孔分類步驟:從上述的孔中得到其中的零散的孔,將該零散的孔進行分類,使原本屬於一個整體的孔被劃分在一起;主孔查找步驟:在上述分類的孔中查找丟失了子孔的主孔;主孔子孔匹配步驟:在上述分類的孔中,根據其中的主孔及子孔的屬性,對主孔與子孔進行匹配;及主孔子孔關聯步驟:將上述相匹配的主孔與子孔之間建立起關聯。 A hole automatic association method, the method comprising: a hole judging step: traversing all the graphic elements in the design image file to find a hole therein; and the hole sorting step: obtaining a scattered hole from the hole, and the scattered hole Sorting, so that the holes originally belonging to one whole are divided together; the main hole searching step: searching for the main hole in which the sub-hole is lost in the hole of the above classification; the main hole sub-hole matching step: in the above-mentioned classified hole, according to The properties of the main hole and the sub-hole, matching the main hole and the sub-hole; and the main hole sub-hole association step: establishing an association between the matching main hole and the sub-hole.

一種孔自動關聯系統,該系統應用於繪圖軟體中。該系統包括:孔判斷模組,用於遍歷設計圖檔中的所有圖形元素,查找其中的孔;孔分類模組,用於從上述的孔中得到其中的零散的孔,將該零散的孔進行分類,使原本屬於一個整體的孔被劃分在一起;主孔查找模組,用於在上述分類的孔中查找丟失了子孔的主孔;主孔子孔匹配模組,用於在上述分類的孔中,根據其中的主孔及子孔的屬性,對主孔與子孔進行匹配;及主孔子孔關聯模組,用於將上述相匹配的主孔與子孔之間建立起關聯。 A hole automatic association system applied to a drawing software. The system comprises: a hole judging module for traversing all the graphic elements in the design image file to find a hole therein; and a hole sorting module for obtaining a scattered hole from the hole, the scattered hole Sorting, so that the holes originally belonging to one whole are divided together; the main hole searching module is used to find the main holes in which the sub holes are missing in the holes of the above classification; the main hole sub hole matching module is used for the above classification In the hole, the main hole and the sub hole are matched according to the attributes of the main hole and the sub hole; and the main hole sub hole matching module is used to establish the correlation between the matching main hole and the sub hole.

相較於習知技術,本發明所提供之孔自動關聯方法及系統能夠自動地查找所有被打斷的零散的孔,並將失去關聯的主孔與子孔重新建立起關聯,節省了設計人員的時間,提高了工作效率,且降低了開發模具的成本。 Compared with the prior art, the hole automatic association method and system provided by the invention can automatically find all the broken holes that are interrupted, and re-establish the associated main hole and the sub-hole, thereby saving the designer. Time, increased work efficiency, and reduced the cost of developing molds.

10‧‧‧孔判斷模組 10‧‧‧ hole judgment module

11‧‧‧孔分類模組 11‧‧‧ hole classification module

12‧‧‧孔串接模組 12‧‧‧ hole series module

13‧‧‧孔定義模組 13‧‧‧ hole definition module

14‧‧‧主孔查找模組 14‧‧‧Main hole search module

15‧‧‧主孔子孔匹配模組 15‧‧‧Main hole hole matching module

16‧‧‧主孔子孔關聯模組 16‧‧‧Main Cone Hole Correlation Module

17‧‧‧屬性賦予模組 17‧‧‧Attribute Assignment Module

圖1是本發明孔自動關聯系統較佳實施例的功能模組圖。 BRIEF DESCRIPTION OF THE DRAWINGS Figure 1 is a functional block diagram of a preferred embodiment of the hole automatic correlation system of the present invention.

圖2是本發明孔自動關聯方法較佳實施例的實施流程圖。 2 is a flow chart showing an implementation of a preferred embodiment of the hole auto-correlation method of the present invention.

參閱圖1所示,是本發明孔自動關聯系統較佳實施例的功能模組圖。本發明所稱的各模組是完成特定功能的各個程式段,比程式本身更適合於描述軟體在電腦中的執行過程,因此本發明對軟體的描述都以模組描述。 Referring to Figure 1, there is shown a functional block diagram of a preferred embodiment of the aperture auto-correlation system of the present invention. Each module referred to in the present invention is a program segment that performs a specific function, and is more suitable for describing the execution process of the software in the computer than the program itself. Therefore, the description of the software in the present invention is described by a module.

本發明的孔自動關聯系統可以運行在CAD等繪圖軟體中。所述的孔自動關聯系統包括多個功能模組:孔判斷模組10、孔分類模組11、孔串接模組12、孔定義模組13、主孔查找模組14、主孔子孔匹配模組15、主孔子孔關聯模組16及屬性賦予模組17。 The hole automatic correlation system of the present invention can be run in a drawing software such as CAD. The hole automatic correlation system includes a plurality of functional modules: a hole judging module 10, a hole sorting module 11, a hole serializing module 12, a hole defining module 13, a main hole searching module 14, and a main hole sub-hole matching. The module 15, the main aperture sub-hole association module 16 and the attribute assignment module 17 are provided.

所述的孔判斷模組10用於遍歷設計圖檔中的所有圖形元素,查找其中的孔,並將所有的孔保存起來。所述的孔判斷模組10首先得到CAD等繪圖軟體的圖形資料庫控制代碼,根據該控制代碼得到圖形資料庫指標,透過該指標搜尋設計圖檔中的所有圖形元素的ID,並將該ID保存在記憶體中。接著,所述的孔判斷模組10透過上述保存在記憶體中的所有圖形元素的ID尋找該所有圖形元素的屬性的ID。如果透過圖形元素的ID可以找到其對應的屬性的ID,則證明該圖形元素為實體,所述實體為有屬性的圖形元素,但該圖形元素不一定為孔,其中孔是實體的一種。如果透過圖形元素的ID找不到其對應的屬性的ID,則該圖形元素一定不是實體,也不可能是孔。若該圖形元素為實體,則透過該圖形元素的屬性的ID得到該圖形元素的屬性,並判斷該圖形元素的屬性是否包含孔的屬性。若該圖形元素的屬性包含孔的屬性,則該圖形元素為孔。將上述判斷為孔的ID保存在記憶體中。 The hole judging module 10 is configured to traverse all the graphic elements in the design image file, find the holes therein, and save all the holes. The hole judging module 10 first obtains a graphic database control code of a drawing software such as CAD, obtains a graphic database index according to the control code, searches for an ID of all graphic elements in the design image file through the index, and the ID is Save in memory. Then, the hole judging module 10 searches for the ID of the attribute of all the graphic elements through the ID of all the graphic elements stored in the memory. If the ID of the corresponding attribute can be found through the ID of the graphic element, it is proved that the graphic element is an entity, and the entity is a graphic element having an attribute, but the graphic element is not necessarily a hole, and the hole is a kind of entity. If the ID of the corresponding attribute cannot be found through the ID of the graphic element, the graphic element must not be an entity, nor may it be a hole. If the graphic element is an entity, the attribute of the graphic element is obtained by the ID of the attribute of the graphic element, and it is determined whether the attribute of the graphic element includes the attribute of the hole. If the attribute of the graphic element contains the attribute of the hole, the graphic element is a hole. The ID determined as the hole is stored in the memory.

所述孔分類模組11用於從上述的孔中得到其中的零散的孔,所述零散的孔指與其他的孔之間沒有關聯關係的孔,將該零散的孔進行分類,使原本屬於一個整體的孔被劃分在一起。孔包括有盲孔、通孔等很多種,此外每個孔還包括關聯資訊:是否有關聯孔,關聯孔的值,及關聯孔的ID等。所述孔分類模組11首先根據每個孔的關聯資訊對所有的孔進行判斷,若某個孔 的關聯資訊不完整,如關聯孔的ID丟失,則說明該孔為零散的孔,所述孔分類模組11將判斷後得到的零散的孔與其他的孔分離開,並單獨保存。其次,所述的孔分類模組11根據孔的其他資訊,包括:方向、圖層、注解等,對上述的零散的孔進行判斷,將其中資訊相同的孔分為一類,因為資訊相同可說明這些孔是屬於一個主孔的子孔或者一個單獨的主孔,並將分類的孔保存起來。 The hole sorting module 11 is configured to obtain a scattered hole from the hole, and the scattered hole refers to a hole that has no relationship with other holes, and classifies the scattered hole to be originally classified. A whole hole is divided together. The hole includes a plurality of blind holes, through holes, and the like, and each hole also includes related information: whether there is an associated hole, the value of the associated hole, and the ID of the associated hole. The hole classification module 11 first judges all the holes according to the associated information of each hole, if a hole The associated information is incomplete. If the ID of the associated hole is lost, the hole is a hole that is scattered. The hole classification module 11 separates the scattered hole obtained from the determination and separates it, and saves it separately. Next, the hole classification module 11 determines the scattered holes according to other information of the holes, including: direction, layer, annotation, etc., and divides the holes with the same information into one class, because the information is the same to illustrate these A hole is a sub-hole belonging to a main hole or a separate main hole, and the classified holes are saved.

所述孔串接模組12用於當上述分類的孔中有被打斷的孔時,將該被打斷的孔進行串接,使被打斷的孔串接成一個整體。因為對孔進行修改、複製、剪切、炸開及打斷等動作後,不僅可能會使主孔與子孔之間失去關聯,還可能使一個主孔或者子孔被打斷成多個屬性相同的孔,因此,要對該多個孔進行依次串接,使屬性相同的被打斷的孔重新串接成一個整體。保存該串接後的整體,並保存串接前的孔的屬性。 The hole serial connection module 12 is configured to serially connect the interrupted holes when the classified holes have broken holes, so that the broken holes are connected in series. Because the holes are modified, copied, cut, blown, and interrupted, not only may the main hole and the sub-hole be lost, but also one main hole or sub-hole may be broken into multiple attributes. The same hole, therefore, the plurality of holes are sequentially connected in series, so that the interrupted holes having the same property are re-spliced into a whole. Save the concatenated whole and save the properties of the hole before the concatenation.

所述的孔定義模組13用於將上述串接後的整體定義為新的孔。因為孔串接後會失去原有的屬性而變成圖形元素,因此,所述的孔定義模組13將串接後的整體定義成新的孔,並賦予該孔在上述孔串接模組12中所保存的屬性。 The hole definition module 13 is configured to define the serialized whole as a new hole. Because the hole will lose its original property and become a graphic element after being connected in series, the hole defining module 13 defines the whole after the stringing as a new hole, and assigns the hole to the hole serial module 12 in the hole. The attribute saved in .

所述主孔查找模組14用於在上述分類的孔中查找丟失了子孔的主孔。所述主孔查找模組14判斷上述所有分類的孔的關聯資訊,如果關聯資訊中的關聯孔的值為子孔,則說明該孔為丟失了子孔的主孔,否則,若關聯孔的值為主孔,則說明該孔為子孔,將判斷後得到的子孔與主孔單獨保存起來。 The main hole searching module 14 is configured to search for the main hole in which the sub hole is lost in the above-mentioned classified holes. The main hole searching module 14 determines the associated information of all the classified holes. If the value of the associated hole in the associated information is a sub-hole, the hole is the main hole in which the sub-hole is lost. Otherwise, if the associated hole is If the value is the main hole, the hole is a sub-hole, and the sub-hole obtained after the judgment is separately stored with the main hole.

所述主孔子孔匹配模組15用於在上述分類的孔中,根據其中的主孔及子孔的屬性,對主孔與子孔進行匹配,並保存該匹配關係。其中,若子孔與主孔之間除了關聯關係屬性外,其他的屬性都相同,則所述主孔子孔匹配模組15將該子孔與主孔進行匹配。 The main hole sub-hole matching module 15 is configured to match the main hole and the sub-hole according to the attributes of the main hole and the sub-hole in the above-mentioned classified holes, and save the matching relationship. Wherein, if the other attributes are the same except for the relationship between the sub-hole and the main hole, the main hole sub-hole matching module 15 matches the sub-hole with the main hole.

所述的主孔子孔關聯模組16用於將上述相匹配的子孔與主孔之間建立起關聯,使其成為組合孔。 The main hole sub-hole association module 16 is configured to establish a correlation between the matched sub-holes and the main holes to make the combined holes.

所述的屬性賦予模組17用於當上述主孔與子孔之間建立起關聯後,由於某些原因而使相關聯的主孔與子孔之間的屬性不相同時,將主孔的屬性賦予其所關聯的子孔,使主孔與子孔的屬性相同。 The attribute giving module 17 is configured to: when the relationship between the main hole and the sub hole is established, and the attribute between the main hole and the sub hole is different for some reason, the main hole is The attribute is assigned to the associated child hole so that the primary hole has the same properties as the child hole.

參閱圖2所示,是本發明孔自動關聯方法較佳實施例的實施流程圖。 Referring to FIG. 2, it is a flowchart of an implementation of a preferred embodiment of the aperture auto-correlation method of the present invention.

步驟S10,孔判斷模組10遍歷設計圖檔中的所有圖形元素,查找其中的孔,並將所有的孔保存起來。首先,該孔判斷模組10得到CAD等繪圖軟體的圖形資料庫控制代碼,根據該控制代碼得到圖形資料庫指標,透過該指標搜尋設計圖檔中的所有圖形元素的ID,並將該ID保存在記憶體中。接著,所述的孔判斷模組10透過上述保存在記憶體中的所有圖形元素的ID尋找該所有圖形元素的屬性的ID。如果透過圖形元素的ID可以找到其對應的屬性的ID,則證明該圖形元素為實體,所述實體為有屬性的圖形元素,但該圖形元素不一定為孔,其中孔是實體的一種。如果透過圖形元素的ID找不到其對應的屬性的ID,則該圖形元素一定不是實體,也不可能是孔。若該圖形元素為實體,則透過該圖形元素的屬性的ID得到該圖形元素的屬性,並判斷該圖形元素的屬性是否包含孔的屬性。若該圖形元素的屬性包含孔的屬性,則該圖形元素為孔。將上述判斷為孔的ID保存在記憶體中。 In step S10, the hole judging module 10 traverses all the graphic elements in the design image file, finds the holes therein, and saves all the holes. First, the hole judging module 10 obtains a graphic database control code of a drawing software such as CAD, obtains a graphic database index according to the control code, searches for an ID of all graphic elements in the design image file through the index, and saves the ID. In memory. Then, the hole judging module 10 searches for the ID of the attribute of all the graphic elements through the ID of all the graphic elements stored in the memory. If the ID of the corresponding attribute can be found through the ID of the graphic element, it is proved that the graphic element is an entity, and the entity is a graphic element having an attribute, but the graphic element is not necessarily a hole, and the hole is a kind of entity. If the ID of the corresponding attribute cannot be found through the ID of the graphic element, the graphic element must not be an entity, nor may it be a hole. If the graphic element is an entity, the attribute of the graphic element is obtained by the ID of the attribute of the graphic element, and it is determined whether the attribute of the graphic element includes the attribute of the hole. If the attribute of the graphic element contains the attribute of the hole, the graphic element is a hole. The ID determined as the hole is stored in the memory.

步驟S11,孔分類模組11從上述的孔中得到其中的零散的孔,所述零散的孔指與其他的孔之間沒有關聯關係的孔,將該零散的孔進行分類,使原本屬於一個整體的孔被劃分在一起。孔包括有盲孔、通孔等很多種,此外每個孔還包括關聯資訊:是否有關聯孔,關聯孔的值,及關聯孔的ID等。首先,該孔分類模組11根據每個孔的關聯資訊對所有的孔進行判斷,若某個孔的關聯資訊不完整,如關聯孔的ID丟失,則說明該孔為零散的孔,所述孔 分類模組11將判斷後得到的零散的孔與其他的孔分離開,並單獨保存。其次,所述孔分類模組11根據孔的其他資訊,包括:方向、圖層、注解等,對上述的零散的孔進行判斷,將其中資訊相同的孔分為一類,因為資訊相同可說明這些孔是屬於一個主孔的子孔或者一個單獨的主孔,並將分類的孔保存起來。 Step S11, the hole classification module 11 obtains the scattered holes therein from the holes, and the scattered holes refer to the holes that are not associated with the other holes, and classify the scattered holes to belong to one. The overall holes are divided together. The hole includes a plurality of blind holes, through holes, and the like, and each hole also includes related information: whether there is an associated hole, the value of the associated hole, and the ID of the associated hole. First, the hole classification module 11 determines all the holes according to the associated information of each hole. If the associated information of a hole is incomplete, such as the ID of the associated hole is lost, the hole is a hole that is scattered. hole The sorting module 11 separates the scattered holes obtained after the judgment from the other holes and stores them separately. Next, the hole classification module 11 determines the scattered holes according to other information of the hole, including: direction, layer, annotation, etc., and divides the holes with the same information into one class, because the information is the same to indicate the holes. It is a sub-hole belonging to a main hole or a separate main hole, and the classified holes are saved.

步驟S12,當上述分類的孔中有被打斷的孔時,孔串接模組12將該被打斷的孔進行串接,使被打斷的孔串接成一個整體。因為對孔進行修改、複製、剪切、炸開及打斷等動作後,不僅可能會使主孔與子孔之間失去關聯,還可能使一個主孔或者子孔被打斷成多個屬性相同的孔,因此,要對該多個孔進行依次串接,使屬性相同的被打斷的孔重新串接成一個整體。保存該串接後的整體,並保存串接前的孔的屬性。 In step S12, when there is a broken hole in the hole classified, the hole serial connection module 12 serially connects the interrupted hole, so that the interrupted hole is connected in series. Because the holes are modified, copied, cut, blown, and interrupted, not only may the main hole and the sub-hole be lost, but also one main hole or sub-hole may be broken into multiple attributes. The same hole, therefore, the plurality of holes are sequentially connected in series, so that the interrupted holes having the same property are re-spliced into a whole. Save the concatenated whole and save the properties of the hole before the concatenation.

步驟S13,孔定義模組13將上述串接後的整體定義為新的孔。因為孔串接後會失去原有的屬性而變成圖形元素,因此,所述的孔定義模組13將串接後的整體定義成新的孔,並賦予該孔在上述孔串接模組12中所保存的屬性。 In step S13, the hole definition module 13 defines the above-mentioned serialized whole as a new hole. Because the hole will lose its original property and become a graphic element after being connected in series, the hole defining module 13 defines the whole after the stringing as a new hole, and assigns the hole to the hole serial module 12 in the hole. The attribute saved in .

步驟S14,主孔查找模組14在上述分類的孔中查找丟失了子孔的主孔。所述主孔查找模組14判斷上述所有分類的孔的關聯資訊,如果關聯資訊中的關聯孔的值為子孔,則說明該孔為丟失了子孔的主孔,否則,若關聯孔的值為主孔,則說明該孔為子孔,將判斷後得到的子孔與主孔單獨保存起來。 In step S14, the main hole searching module 14 searches for the main hole in which the sub hole is lost in the above-mentioned classified holes. The main hole searching module 14 determines the associated information of all the classified holes. If the value of the associated hole in the associated information is a sub-hole, the hole is the main hole in which the sub-hole is lost. Otherwise, if the associated hole is If the value is the main hole, the hole is a sub-hole, and the sub-hole obtained after the judgment is separately stored with the main hole.

步驟S15,主孔子孔匹配模組15在上述分類的孔中,根據其中的主孔及子孔的屬性,對主孔與子孔進行匹配,並保存該匹配關係。其中,若子孔與主孔之間除了關聯關係屬性外,其他的屬性都相同,則所述主孔子孔匹配模組15將該子孔與主孔進行匹配。 In step S15, the main hole sub-hole matching module 15 matches the main hole and the sub-hole according to the attributes of the main hole and the sub-hole in the above-mentioned classified holes, and saves the matching relationship. Wherein, if the other attributes are the same except for the relationship between the sub-hole and the main hole, the main hole sub-hole matching module 15 matches the sub-hole with the main hole.

步驟S16,主孔子孔關聯模組16將上述相匹配的子孔與主孔之間建立起關聯 ,使其成為組合孔。 In step S16, the main hole sub-hole association module 16 establishes an association between the matched sub-holes and the main hole. Make it a combination hole.

步驟S17,當上述主孔與子孔之間建立起關聯後,由於某些原因而使相關聯的主孔與子孔之間的屬性不相同時,屬性賦予模組17將主孔的屬性賦予其所關聯的子孔,使主孔與子孔的屬性相同。 Step S17, when the relationship between the main hole and the sub-hole is established, and the attribute between the main hole and the sub-hole is different for some reason, the attribute giving module 17 assigns the attribute of the main hole. The sub-holes associated with it make the main hole and the sub-hole have the same properties.

以上所述僅為本發明之較佳實施例而已,且已達廣泛之使用功效,凡其他未脫離本發明所揭示之精神下所完成之均等變化或修飾,均應包含在下述之申請專利範圍內。 The above is only the preferred embodiment of the present invention, and has been used in a wide range of applications. Any other equivalent changes or modifications which are not departing from the spirit of the present invention should be included in the following claims. Inside.

10‧‧‧孔判斷模組 10‧‧‧ hole judgment module

11‧‧‧孔分類模組 11‧‧‧ hole classification module

12‧‧‧孔串接模組 12‧‧‧ hole series module

13‧‧‧孔定義模組 13‧‧‧ hole definition module

14‧‧‧主孔查找模組 14‧‧‧Main hole search module

15‧‧‧主孔子孔匹配模組 15‧‧‧Main hole hole matching module

16‧‧‧主孔子孔關聯模組 16‧‧‧Main Cone Hole Correlation Module

17‧‧‧屬性賦予模組 17‧‧‧Attribute Assignment Module

Claims (9)

一種孔自動關聯方法,該方法由數據處理設備所執行,以執行如下步驟:孔判斷步驟:遍歷設計圖檔中的所有圖形元素,查找其中的孔;孔分類步驟:從上述的孔中得到其中的零散的孔,將該零散的孔進行分類,使原本屬於一個整體的孔被劃分在一起;主孔查找步驟:在上述分類的孔中查找丟失了子孔的主孔;主孔子孔匹配步驟:在上述分類的孔中,根據其中的主孔及子孔的屬性,對主孔與子孔進行匹配;及主孔子孔關聯步驟:將上述相匹配的主孔與子孔之間建立起關聯。 A hole automatic association method, which is executed by a data processing device to perform the following steps: a hole judging step: traversing all the graphic elements in the design image file to find a hole therein; and a hole sorting step: obtaining the hole from the above hole The scattered holes, the scattered holes are classified, so that the holes originally belonging to one whole are divided together; the main hole searching step: searching for the main holes missing the sub-holes in the above-mentioned classified holes; the main hole sub-hole matching step : in the holes classified above, matching the main hole and the sub hole according to the attributes of the main hole and the sub hole; and the main hole sub hole association step: establishing the correlation between the matching main hole and the sub hole . 如申請專利範圍第1項所述之孔自動關聯方法,其中,該方法還包括:孔串接步驟:將上述分成一類的孔進行串接,使被打斷的孔串接成一個整體;及孔定義步驟:將上述串接後的整體定義為新的孔。 The method for automatically associating a hole according to the first aspect of the invention, wherein the method further comprises: a step of concatenating the holes: connecting the holes divided into one type in series to connect the interrupted holes in series; Hole definition step: The above-mentioned tandem whole is defined as a new hole. 如申請專利範圍第1項所述之孔自動關聯方法,其中,該方法還包括:屬性賦予步驟:將主孔的屬性賦予其所關聯的子孔。 The method for automatically associating a hole according to claim 1, wherein the method further comprises: an attribute assigning step: assigning an attribute of the main hole to the associated sub hole. 如申請專利範圍第1項所述之孔自動關聯方法,其中的孔判斷步驟包括:得到繪圖軟體的圖形資料庫控制代碼;根據該控制代碼得到圖形資料庫指標;透過該指標搜尋設計圖檔中的所有圖形元素的ID,並將該ID保存在記憶體中;透過上述保存在記憶體中的所有圖形元素的ID尋找該所有圖形元素的屬性的ID; 如果透過圖形元素的ID找不到其對應的屬性的ID,則該圖形元素不為孔,否則,如果透過圖形元素的ID可以找到其對應的屬性的ID,則證明該圖形元素為實體;透過該圖形元素的屬性的ID得到該圖形元素的屬性,並判斷該圖形元素的屬性是否包含孔的屬性;及若該圖形元素的屬性包含孔的屬性,則判斷該圖形元素為孔。 The hole automatic correlation method according to claim 1, wherein the hole judging step comprises: obtaining a graphic database control code of the drawing software; obtaining a graphic database index according to the control code; searching for the design image file through the index The ID of all the graphic elements, and save the ID in the memory; find the ID of the attribute of all the graphic elements through the ID of all the graphic elements saved in the memory; If the ID of the corresponding attribute cannot be found through the ID of the graphic element, the graphic element is not a hole. Otherwise, if the ID of the corresponding attribute can be found through the ID of the graphic element, the graphic element is proved to be an entity; The ID of the attribute of the graphic element obtains the attribute of the graphic element, and determines whether the attribute of the graphic element includes the attribute of the hole; and if the attribute of the graphic element contains the attribute of the hole, it is determined that the graphic element is a hole. 如申請專利範圍第1項所述之孔自動關聯方法,其中孔分類步驟包括:根據孔的關聯資訊對所有的孔進行判斷,若某個孔的關聯資訊不完整,則該孔為零散的孔;將判斷得到的零散的孔與其他的孔分離開;及根據孔的除關聯資訊之外的其他資訊對上述的零散的孔進行判斷,其中其他資訊都相同的孔為原本屬於一個整體的孔,將該屬於一個整體的孔分為一類。 The method for automatically associating holes according to claim 1, wherein the hole sorting step comprises: judging all the holes according to the associated information of the holes, and if the associated information of the holes is incomplete, the holes are scattered holes. Separating the determined scattered holes from the other holes; and judging the scattered holes according to other information except the related information of the holes, wherein the other holes having the same information are the holes originally belonging to one whole The holes belonging to one whole are classified into one class. 如申請專利範圍第1項所述之孔自動關聯方法,其中主孔查找步驟包括:獲得所有已分類的孔的關聯資訊,如果關聯資訊中的關聯孔的值為子孔,則該孔為丟失了子孔的主孔;否則,若關聯孔的值為主孔,則該孔為子孔。 The hole automatic association method of claim 1, wherein the main hole searching step comprises: obtaining association information of all the classified holes, and if the value of the associated hole in the associated information is a sub-hole, the hole is lost. The main hole of the sub-hole; otherwise, if the value of the associated hole is the main hole, the hole is a sub-hole. 一種孔自動關聯系統,該系統應用於繪圖軟體中,該系統包括:孔判斷模組,用於遍歷設計圖檔中的所有圖形元素,查找其中的孔;孔分類模組,用於從上述的孔中得到其中的零散的孔,將該零散的孔進行分類,使原本屬於一個整體的孔被劃分在一起;主孔查找模組,用於在上述分類的孔中查找丟失了子孔的主孔;主孔子孔匹配模組,用於在上述分類的孔中,根據其中的主孔及子孔的屬性,對主孔與子孔進行匹配;及主孔子孔關聯模組,用於將上述相匹配的主孔與子孔之間建立起關聯。 A hole automatic correlation system, the system is applied to a drawing software, the system comprises: a hole judging module for traversing all the graphic elements in the design image file to find a hole therein; the hole classification module is used for the above Obtaining scattered holes in the hole, classifying the scattered holes, so that the holes originally belonging to one whole are divided together; the main hole searching module is used to find the main body missing the sub-holes in the above-mentioned classified holes a hole; a main hole hole matching module for matching the main hole and the sub hole according to the attributes of the main hole and the sub hole in the hole classified; and the main hole sub hole matching module, for A correlation is established between the matching main hole and the sub hole. 如申請專利範圍第7項所述之孔自動關聯系統,其中,該系統還包括:孔串接模組,用於將上述分成一類的孔進行串接,使被打斷的孔串接成一個整體;及孔定義模組,用於將上述串接後的整體定義為新的孔。 The hole automatic association system of claim 7, wherein the system further comprises: a hole serial connection module, configured to serially divide the holes into the same type, and connect the broken holes into one. The whole; and the hole definition module is used to define the whole of the above concatenation as a new hole. 如申請專利範圍第7項所述之孔自動關聯系統,其中,該系統還包括:屬性賦予模組,用於將主孔的屬性賦予其所關聯的子孔。 The hole automatic association system of claim 7, wherein the system further comprises: an attribute assignment module for assigning attributes of the main hole to the associated sub-holes.
TW096137499A 2007-10-05 2007-10-05 Method and system for relating sub-orifices to corresponding main orifice automatically TWI414954B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW096137499A TWI414954B (en) 2007-10-05 2007-10-05 Method and system for relating sub-orifices to corresponding main orifice automatically

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW096137499A TWI414954B (en) 2007-10-05 2007-10-05 Method and system for relating sub-orifices to corresponding main orifice automatically

Publications (2)

Publication Number Publication Date
TW200917074A TW200917074A (en) 2009-04-16
TWI414954B true TWI414954B (en) 2013-11-11

Family

ID=44726277

Family Applications (1)

Application Number Title Priority Date Filing Date
TW096137499A TWI414954B (en) 2007-10-05 2007-10-05 Method and system for relating sub-orifices to corresponding main orifice automatically

Country Status (1)

Country Link
TW (1) TWI414954B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6243611B1 (en) * 1996-05-06 2001-06-05 Amada America, Inc. Apparatus and methods for integrating intelligent manufacturing system with expert sheet metal planning and bending system
CN1664813A (en) * 2003-10-24 2005-09-07 微软公司 Framework to build, deploy, service, and manage customizable and configurable re-usable applications
TW200608248A (en) * 2004-08-27 2006-03-01 Hon Hai Prec Ind Co Ltd A mold chart managing system and method
US7117055B2 (en) * 2002-06-14 2006-10-03 Cornerstone Technology, Inc. Process and system for designing molds and dies
CN1916911A (en) * 2005-08-16 2007-02-21 鸿富锦精密工业(深圳)有限公司 System and method for managing primitive attribute
CN1924871A (en) * 2005-09-02 2007-03-07 鸿富锦精密工业(深圳)有限公司 Figure element operating system and method
CN1940908A (en) * 2005-09-29 2007-04-04 鸿富锦精密工业(深圳)有限公司 System and method for merging homogeneous hole in workpiece image files
TW200715182A (en) * 2005-10-14 2007-04-16 Hon Hai Prec Ind Co Ltd System and method for judging parts

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6243611B1 (en) * 1996-05-06 2001-06-05 Amada America, Inc. Apparatus and methods for integrating intelligent manufacturing system with expert sheet metal planning and bending system
US7117055B2 (en) * 2002-06-14 2006-10-03 Cornerstone Technology, Inc. Process and system for designing molds and dies
CN1664813A (en) * 2003-10-24 2005-09-07 微软公司 Framework to build, deploy, service, and manage customizable and configurable re-usable applications
TW200608248A (en) * 2004-08-27 2006-03-01 Hon Hai Prec Ind Co Ltd A mold chart managing system and method
CN1916911A (en) * 2005-08-16 2007-02-21 鸿富锦精密工业(深圳)有限公司 System and method for managing primitive attribute
CN1924871A (en) * 2005-09-02 2007-03-07 鸿富锦精密工业(深圳)有限公司 Figure element operating system and method
CN1940908A (en) * 2005-09-29 2007-04-04 鸿富锦精密工业(深圳)有限公司 System and method for merging homogeneous hole in workpiece image files
TW200715182A (en) * 2005-10-14 2007-04-16 Hon Hai Prec Ind Co Ltd System and method for judging parts

Also Published As

Publication number Publication date
TW200917074A (en) 2009-04-16

Similar Documents

Publication Publication Date Title
CN110869920B (en) Multi-dimensional industrial knowledge graph
KR101149828B1 (en) Use case diagrams are based on test case generation programs and use them to generate test cases
WO2021120186A1 (en) Distributed product defect analysis system and method, and computer-readable storage medium
WO2020258695A1 (en) System and method for establishing public material library
JP2002032773A (en) Device and method for processing map data
US7231626B2 (en) Method of implementing an engineering change order in an integrated circuit design by windows
WO2023078136A1 (en) Data set construction method and apparatus, device, storage medium, and computer program product
US7222321B2 (en) System and method for manipulating an integrated circuit layout
WO2022179119A1 (en) Data verification method and apparatus, electronic device, and readable storage medium
US7904856B2 (en) Arrangement handling commands as control system behaviors and data system behaviors
CN105975527A (en) Road up-down relationship identification method and apparatus
CN110188207B (en) Knowledge graph construction method and device, readable storage medium and electronic equipment
TWI414954B (en) Method and system for relating sub-orifices to corresponding main orifice automatically
WO2023093689A1 (en) Computational graph optimization method and apparatus, and device
JP6344185B2 (en) Evaluation result output program, evaluation result output method, and information processing apparatus
US20220215146A1 (en) Method for recognizing analog circuit structure
US8782587B2 (en) Systems and methods for generating a higher level description of a circuit design based on connectivity strengths
US7373623B2 (en) Method and apparatus for locating circuit deviations
CN113821647B (en) Construction method and system of knowledge graph in engineering machinery industry
CN101398863B (en) Hole automatic correlation method and system
CN114153839A (en) Integration method, device, equipment and storage medium of multi-source heterogeneous data
US20220058325A1 (en) Method for Recognizing Analog Circuit Structure
CN111930824A (en) Data comprehensive situation display method based on recommendation model
JP4895988B2 (en) Method for reducing extra structure of document classification device
CN111061246A (en) Method for analyzing failure mode, influence and hazard in mechanical product assembly process

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees