1320137 九、發明說明: - 【發明所屬之技術領域】 本發明涉及一種孔定義系統及方法。 * 【先前技術】 現代企業的競爭越來越激烈,爲了保證能在競爭中立 於不敗之地,效率的提高已經成爲一大關注的焦點。 在模具設計中,孔的設計占相當重要的部分,其工作 $ 難度也比較大。孔的設計關鍵在於其注解的定義。以往, 在定義孔的時候,一般採用兩種方法:一係手工繪圖,然 . 後人工添加孔的注解;二係使用標準孔繪圖。 上述兩種方法存在如下缺陷:前者的不足之處首先係 慢,一套模具有上千個孔,手工繪圖非常浪費時間;其次 錯誤率非常高,而且修改困難;後者的不足之處在於不能 定義異型孔,並且不能一次定義多個孔。 【發明所屬之技術領域】 1 • 本發明涉及一種孔定義系統及方法。 【先前技術】 現代企業的競爭越來越激烈,爲了保證能在競爭中立 於不敗之地,效率的提高已經成爲一大關注的焦點。 在模具設計中,孔的設計占相當重要的部分,其工作 難度也比較大。孔的設計關鍵在於其註解的定義。以往, 在定義孔的時候,一般採用兩種方法:一係手工繪圖,然 後人工添加孔的註解;二係使用標準孔繪圖。 5 1320137 上述兩種方法存在如下缺陷:前者的不足之處首先係 - 慢,一套模具有上千個孔,手工繪圖非常浪費時間;其次 \ 錯誤率非常高,而且修改困難;後者的不足之處在於不能 * 定義異型孔,並且不能一次定義多個孔。 【發明内容】 鑒於以上内容,有必要提供一種孔定義系統及方法, 其可正確有效地對孔進行定義。 ^ 一種孔定義系統,該系統包括一台保存了模具設計過 程中的圖形、圖元資訊及孔的類別的主機,所述主機包括 . 主控制器,該主控制器包括:選擇模組,用於選擇要定義 爲孔的圖形;判斷模組,用於判斷所選擇的圖形是否滿足 孔定義條件;獲取模組,用於當所選擇的圖形滿足孔定義 條件時,獲取所選擇圖形的圖元資訊;處理模組,用於根 據所獲取的圖元資訊確定孔的類別,及將所述滿足孔定義 條件的圖形定義爲上述孔的類別;生成模組,用於根據所 • 獲取的圖元資訊和所定義的孔的類別,生成孔的註解;存 儲模組,用於添加上述生成的註解到所述滿足孔定義條件 的圖形。 其中,所述孔定義條件指要定義爲孔的圖形爲閉合圖 形;所述圖元資訊包括圓的個數、弧的個數、圓的直徑及 圓的線型;所述類別包括:沉孔、螺絲孔及盲孔;所述註 解包括孔的精度及孔的直徑。 一種孔定義方法,該方法包括如下步驟:(a)選擇要 定義爲孔的圖形;(b)判斷所選擇的圖形是否滿足孔定義 6 1320137 I滿足孔定義條件,則獲取該圖 獲取的圖元資訊,確定滿足孔定 ’(e)將所述滿足孔定義條件的 (f)板據圖元資訊及孔的類別, 承力σ孔的註解到所述滿足孔定義 相較於習知技術,所地1320137 IX. DESCRIPTION OF THE INVENTION: - Technical Field of the Invention The present invention relates to a hole definition system and method. * [Prior Art] The competition of modern enterprises is becoming more and more fierce. In order to ensure that they can remain invincible in the competition, the improvement of efficiency has become a focus of attention. In the mold design, the design of the hole occupies a very important part, and the work cost is also relatively large. The key to the design of the hole is the definition of its annotation. In the past, when defining holes, two methods were generally used: one for manual drawing, and then for manual annotation of holes; the second was for standard hole drawing. The above two methods have the following drawbacks: the inadequacy of the former is slow first, and there are thousands of holes in a set of molds. Manual drawing is a waste of time; secondly, the error rate is very high and the modification is difficult; the latter is incapable of defining Shaped holes, and multiple holes cannot be defined at once. TECHNICAL FIELD OF THE INVENTION The present invention relates to a hole definition system and method. [Prior Art] The competition of modern enterprises is becoming more and more fierce. In order to ensure that they can remain invincible in the competition, the improvement of efficiency has become a focus of attention. In the mold design, the design of the hole occupies a very important part, and the work is also relatively difficult. The key to the design of the hole is the definition of its annotation. In the past, when defining holes, two methods were generally used: one was to manually draw, and then the holes were manually added; the second was to use standard hole drawing. 5 1320137 The above two methods have the following defects: the former's shortcomings are first-slow, a set of molds have thousands of holes, manual drawing is a waste of time; secondly, the error rate is very high, and the modification is difficult; the latter is insufficient. It is not possible to * define a shaped hole and not define multiple holes at once. SUMMARY OF THE INVENTION In view of the above, it is desirable to provide a hole definition system and method that can define holes accurately and efficiently. ^ A hole definition system, the system includes a host that stores graphics, primitive information, and hole categories in the mold design process, the host includes: a main controller, the main controller includes: a selection module, Selecting a graphic to be defined as a hole; determining a module for determining whether the selected graphic satisfies a hole definition condition; and acquiring a module for acquiring a primitive of the selected graphic when the selected graphic satisfies a hole definition condition a processing module, configured to determine a category of the hole according to the acquired primitive information, and define the graphic that satisfies the hole definition condition as the category of the hole; and generate a module for acquiring the acquired element according to the The information and the defined category of the hole, the annotation of the hole is generated; the storage module is configured to add the generated annotation to the graphic that satisfies the hole definition condition. Wherein, the hole definition condition refers to a figure to be defined as a hole as a closed figure; the element information includes a number of circles, a number of arcs, a diameter of a circle, and a line type of a circle; the categories include: a counterbore, Screw holes and blind holes; the annotation includes the accuracy of the holes and the diameter of the holes. A hole defining method, the method comprising the steps of: (a) selecting a graphic to be defined as a hole; (b) determining whether the selected graphic satisfies the hole definition 6 1320137 I satisfies the hole defining condition, and acquiring the primitive acquired by the drawing Information, determining that the (f) plate according to the hole definition condition and the type of the hole are satisfied, and the annotation of the bearing σ hole to the said hole definition is compared with the prior art. Place
定義實現自動化管理,自^定義系統及方法,可對孔的 的類別,生成並添加孔的=擇圖形並進行判斷,定義孔 及正確性。 因而可提向孔定義的效率 【實施方式】 參閱圖1所示,係本發 / 體架構圖。該孔定義系统的 疋義系統較佳實施例的硬 (鍵盤12及滑鼠14)、_體架構主要包括:輸入裝置 .、、與不器1Define the implementation of automated management, from the ^ definition system and method, can generate and add holes to the category of the hole and determine the shape, determine the hole and correctness. Therefore, the efficiency defined by the hole can be improved. [Embodiment] Referring to Fig. 1, the present invention is shown in the figure. The hard disk (keyboard 12 and mouse 14) of the preferred embodiment of the hole definition system of the hole definition system, the body structure mainly includes: an input device, and a device 1
條件;(C)若所選擇的圖 形的圖元資訊;(d)根據 義條件的圖形的孔的類别 圖形定義爲上述孔的類別 生成所述孔的註解;(g) 條件的圖形。 其中,輸入裝置可以用λ 、主機W及資料庫18。 註解。 來輪入各種不同的圖形和孔的 顯示器16提供圖形化(C) if the selected primitive information is selected; (d) the type of the hole of the graphic according to the meaning condition. The graphic is defined as the type of the hole to generate an annotation of the hole; (g) the conditional graphic. Among them, the input device can use λ, host W and database 18. annotation. To display a variety of different graphics and holes, the display 16 provides graphics
Interface,GUI)配合輪入繁 戶介面(Graphic User 用於顯示圖形、圖元及孔的I置的輪入操作。顯示器16還Interface, GUI) cooperates with the traditional user interface (Graphic User is used to display the wheeling operation of graphics, primitives and holes I. Display 16 also
主機10可以係IBMHost 10 can be IBM
Compu⑹,聰PC)、八舰公的】腦(聰P謂nal 網路服務器,還可以係任音A 的MacPc、個人電腦、 了模具設計過程t的!si V 他適用的電腦。主機忉保存 —二 7 1320137 參閱圖2所示,係本發明孔定義系統主機的功能模組 圖。所述主機10包括主控制器20,該主控制器20包括選 擇模組100、判斷模組102、獲取模組104、處理模組106、 生成模組108、及存儲模組110。 選擇模組100用於選擇要定義爲孔的圖形。一般情况 下,在模具設計過程中,通常有許多圖形需要定義爲孔, 以便於後續加工。 判斷模組102用於判斷選擇模組100所選擇的圖形是 否滿足孔定義條件及判斷是否還有要定義爲孔的圖形。所 述孔定義條件指要定義爲孔的圖形爲閉合圖形。 獲取模組104用於當所選擇的圖形滿足孔定義條件 時,獲取所選擇圖形的圖元資訊。所述圖元爲組成圖形的 最小單位。所述圖元資訊包括:圓的個數、圓的類型、弧 的個數、圓的直徑及圓的線型。所述線型指線條的類型, 包括虛線和實線兩種。 處理模組106用於根據獲取模組104所獲取的圖元資 訊,確定孔的類別。其中,所述孔的類別包括:沉孔、螺 絲孔及盲孔等。處理模組106還用於將所述滿足孔定義條 件的圖形定義爲上述確定的類別。例如,若獲取的圖元資 訊爲兩個同心圓,則處理模組106確定孔的類別爲沉孔; 若獲取的圖元資訊爲兩個同心圓且在所述兩個同心圓之間 存在一個弧,則處理模組106確定孔的類別爲螺絲孔。 8 1320137 生成模组108用於根據獲取模組104所獲取的圖元次 訊及處理模組106所定義的孔的類別,生成孔的註解。貝 • 述註解包括孔的精度及孔的直徑。 . 存儲模組110用於添加上述生成的註解到所述滿足孔 定義條件的圖形,及將所述生成的孔的註解存館到資料庫 18中,以利於後續模具的設計和加工。存儲模組11〇還用 於記錄經過判斷模組102判斷的圖形的標示(idemity,出) 號,所述標示號與圖形一一對應。 ® 參閱圖3所示,係本發明孔定義方法較佳實施例的作 業流程圖。 首先,選擇模組100選擇要定義爲孔的圖形。選擇模 組100可以一次選擇一個要定義爲孔的圖形,也可以一次 選擇多個要定義爲孔的圖形。其中,所述圖形與其標示 (identity,ID)號--對應(步驟 S301)。 判斷模組102逐個判斷選擇模組1〇〇所選擇的圖形是 鲁 否滿足孔定義條件。具體而言’判斷模組102每次判斷所 選擇的圖形中的一個圖形是否滿足孔定義條件,也即係判 斷該圖形是否爲封閉圖形。存儲模組11〇同時記錄上述經 過判斷的圖形的標示號(步驟S302)。 若判斷模組102所判斷的圖形滿足孔定義條件,則獲 取模組104獲取該圖形的圖元資訊。其中,所述圖元爲組 成圖形的最小單位。所述圖元資訊包括:圓的個數、狐的 個數、圓的直徑及圓的線型(步驟S303)。 9 1320137 處理模組106根據獲取模組104所獲取的圖元資訊, 確定滿足孔定義條件的圖形的孔的類別。其中,所述孔的 類別包括:沉孔、螺絲孔及盲孔等。例如,若獲取的圖元 資訊爲兩個同心圓,則處理模組106確定孔的類別爲沉 孔;若獲取的圖元資訊爲剖面線,則處理模組106確定孔 的類別爲盲孔(步驟S304)。 處理模組106將所述滿足孔定義條件的圖形定義爲上 述確定的類別(步驟S305)。 生成模組108根據所述圖元資訊及孔的類別,生成孔 的註解,所述註解包括孔的精度及孔的直徑(步驟S306)。 存儲模組110添加孔的註解到所述滿足孔定義條件的 圖形,同時將所述孔的註解存儲到資料庫18中,以利於後 續模具的設計和加工(步驟S307)。 判斷模組102判斷是否還有要定義爲孔的圖形。具體 而言,判斷模組102根據存儲模組110所記錄的圖形的標 示號進行判斷,若所選擇的圖形的標示號都已被存儲模組 110所記錄,則說明不存在要定義爲孔的圖形,流程結束 (步驟 S308)。 在步驟S302中,若判斷模組102判定所選擇的圖形 不滿足孔定義條件,則直接進入步驟S308。 在步驟S308中,若判斷模組102判定還有要定義爲 孔的圖形,即判斷模組102判定所選擇的圖形的標示號尚 未全部被存儲模組110所記錄,則返回步驟S302。 1320137 【圖式簡單說明】 圖1係本發明孔定義系統較佳實施例的硬體架構圖。 圖2係本發明孔定義系統主機的功能模組圖。 圖3係本發明孔定義方法較佳實施例的作業流程圖。 【主要元件符號說明】Compu (6), Cong PC), eight ship's brain] Cong P said nal network server, can also be a sound A's MacPc, personal computer, mold design process t! si V his computer. Host 忉 save - 2 7 1320137 Referring to Figure 2, it is a functional module diagram of the host of the hole definition system of the present invention. The host 10 includes a main controller 20, which includes a selection module 100, a determination module 102, and acquisition. The module 104, the processing module 106, the generation module 108, and the storage module 110. The selection module 100 is used to select a graphic to be defined as a hole. In general, in the mold design process, there are usually many graphics to be defined. The hole module is used for subsequent processing. The determining module 102 is configured to determine whether the graphic selected by the selection module 100 satisfies the hole definition condition and determine whether there is a graphic to be defined as a hole. The hole definition condition is defined as a hole. The graphic is a closed graphic. The obtaining module 104 is configured to acquire the primitive information of the selected graphic when the selected graphic satisfies the hole defining condition. The graphic element is a minimum unit constituting the graphic. The number of the circle, the type of the circle, the number of the arc, the diameter of the circle, and the line type of the circle. The line type refers to the type of the line, including both the dotted line and the solid line. The processing module 106 is configured to be used according to the acquisition module 104. The obtained primitive information determines a category of the hole, wherein the category of the hole includes: a counterbore, a screw hole, a blind hole, etc. The processing module 106 is further configured to define the graphic that satisfies the hole definition condition as the above The determined category. For example, if the acquired primitive information is two concentric circles, the processing module 106 determines that the category of the hole is a counterbore; if the obtained primitive information is two concentric circles and in the two concentric circles There is an arc between the processing module 106 to determine the type of the hole as a screw hole. 8 1320137 The generating module 108 is configured to obtain the type of the hole defined by the acquiring module 104 and the hole defined by the processing module 106. An annotation of the hole is generated. The annotation includes the accuracy of the hole and the diameter of the hole. The storage module 110 is configured to add the generated annotation to the graphic that satisfies the hole definition condition, and annotate the generated hole. Deposit to the database 18 In order to facilitate the design and processing of the subsequent molds, the storage module 11〇 is also used to record the identifiers of the graphics judged by the judging module 102, and the logo numbers correspond to the graphs one by one. Shown is a flow chart of the preferred embodiment of the hole defining method of the present invention. First, the selecting module 100 selects a graphic to be defined as a hole. The selecting module 100 can select a graphic to be defined as a hole at a time, or once. Selecting a plurality of graphics to be defined as holes, wherein the graphics correspond to their identity (ID) number (step S301). The determining module 102 determines one by one whether the selected module is selected. Meet the hole definition conditions. Specifically, the determination module 102 determines whether one of the selected graphics satisfies the hole definition condition, that is, whether the graphic is a closed graphic. The storage module 11 〇 simultaneously records the identification number of the above-mentioned judged figure (step S302). If it is determined that the graphic determined by the module 102 satisfies the hole definition condition, the acquisition module 104 acquires the primitive information of the graphic. Wherein, the primitive is a minimum unit that constitutes a graphic. The primitive information includes: the number of circles, the number of foxes, the diameter of the circle, and the line type of the circle (step S303). 9 1320137 The processing module 106 determines, according to the primitive information acquired by the acquisition module 104, the category of the hole of the graphic that satisfies the hole definition condition. The categories of the holes include: counterbore, screw holes, blind holes, and the like. For example, if the obtained primitive information is two concentric circles, the processing module 106 determines that the hole type is a counterbore; if the acquired primitive information is a hatching, the processing module 106 determines that the hole type is a blind hole ( Step S304). The processing module 106 defines the pattern satisfying the hole definition condition as the above determined category (step S305). The generation module 108 generates an annotation of the hole based on the primitive information and the type of the hole, the annotation including the accuracy of the hole and the diameter of the hole (step S306). The storage module 110 adds an annotation of the hole to the pattern satisfying the hole definition condition while storing the annotation of the hole in the database 18 to facilitate the design and processing of the subsequent mold (step S307). The judging module 102 judges whether there is still a figure to be defined as a hole. Specifically, the determining module 102 determines according to the identification number of the graphic recorded by the storage module 110. If the marked number of the selected graphic has been recorded by the storage module 110, it means that there is no hole to be defined as a hole. The graph ends in the flow (step S308). In step S302, if the determination module 102 determines that the selected pattern does not satisfy the hole definition condition, it proceeds directly to step S308. In step S308, if the determination module 102 determines that there is still a graphic to be defined as a hole, that is, the determination module 102 determines that the identification number of the selected graphic has not been recorded by the storage module 110, the process returns to step S302. 1320137 BRIEF DESCRIPTION OF THE DRAWINGS Figure 1 is a hardware architecture diagram of a preferred embodiment of the hole definition system of the present invention. 2 is a functional block diagram of a host of the hole definition system of the present invention. Figure 3 is a flow chart showing the operation of the preferred embodiment of the hole defining method of the present invention. [Main component symbol description]
主機 10 鍵盤 12 滑鼠 14 顯示器 16 貢料庫 18 主控制器 20 選擇模組 100 判斷模組 102 獲取模組 104 處理模組 106 生成模組 108 存儲模組 110 11Host 10 Keyboard 12 Mouse 14 Display 16 Franchise Library 18 Main Controller 20 Selection Module 100 Judgment Module 102 Acquisition Module 104 Processing Module 106 Generation Module 108 Storage Module 110 11