591450 五、發明說明(1) 發明所屬之技術領域 本發明係有關於一種電腦補助繪製方法,特別有關於 一種管線設備圖之電腦補助繪製方法,可提供使用者更方 便之繪製介面。 先前技術 在現行之電腦補助繪圖應用軟體中,並未見專門應用 於管線設備圖之設計,使用者在使用如AutoCAD之繪圖軟 體時,需要對每一設備元件作移動或旋轉設定,甚至連每 一個管線設備之代表圖形亦需自行製作。在繪製管線設備 圖時,除了設備圖形之擺設外,還需考量每一設備之工程 屬性,如連接方向、材質、規格等等,這些在使用傳統之 電腦輔助繪圖軟體時,使用者都必需自行將相關之資#標 示於設備圖形上,亦需自行注意各設備間規格匹配、材料 提供等問題。因此,使用傳統電腦補助繪圖軟體繪製管線 設備圖時,工作十分繁複且效率不高。在繪製完成後,亦 不能提供自動統計材料之功能。 發明内容 為了解決上述問題,本發明提供一種管線設備圖之電 腦補助繪製方法,可提供使用者更方便與自動之繪圖環591450 V. Description of the invention (1) The technical field to which the invention belongs The present invention relates to a computer aided drawing method, and in particular to a computer aided drawing method for pipeline equipment diagrams, which can provide users with a more convenient drawing interface. The previous technology has not seen the design of pipeline equipment drawings in the current computer-assisted drawing application software. When using drawing software such as AutoCAD, users need to make movement or rotation settings for each equipment component, and even each The representative graphics of a pipeline equipment also need to be produced by itself. When drawing pipeline equipment diagrams, in addition to the layout of the equipment graphics, the engineering properties of each equipment, such as connection direction, material, specifications, etc. need to be considered. When using traditional computer-aided drawing software, users must themselves The relevant information # is marked on the equipment graphics, and you also need to pay attention to the specifications matching, material supply and other issues. Therefore, when using traditional computer-assisted drawing software to draw pipeline equipment, the work is very complicated and inefficient. After the drawing is completed, it cannot provide the function of automatically counting materials. SUMMARY OF THE INVENTION In order to solve the above problems, the present invention provides a computer aided drawing method for pipeline equipment diagrams, which can provide users with a more convenient and automatic drawing circle.
591450 五、發明說明(2) 境,簡化管線設備圖之 本發明之一目的在 緣製方法,用以繪製一 法包括以下步驟:預存 該設計圖之繪圖稽;選 圖形,並加入該繪圖檔 代表設 材質 於該 第二 代表 配, 該繪 指定 結端 之媒 設備 代表 ’並將該弟^一权板 繪圖檔之一工作視 模板圖形,並加入 設備之一擺放角度 並將該第二模板圖 圖檔之該工作視窗 該第二模板圖形與 繪製 於提 具有 代表 擇該 中; 備之 圖形 窗中 該繪 、規 形所 中; 該第 工作 供一 複數 該些 種管線設備 管線設備之 設備之模板圖形; 些模板圖形之一為一第 圖之電腦補助 設計圖 本發 體裝 之設 該些 明之另 置,適 計圖’ 設備之 一目的 用於一 依一第 一連 所代 ;選 圖檔 格及 代表 以及 一模 在於提供 電腦中, 裝置使該 接端 表設 擇該 中; 材質 設備 依據 板圖 一種 使用者 、擺放 備之規 些模板 使該第 與該第 之規格 要求, 角度、 格及材 圖形之 ,該方 建立一 一模板 指定該 規格及 質顯示 一為一 及材質 一第二使用者 形連結端鄰近 二模板圖形所 一模板圖相匹 顯示於 要求, 之 連 儲存 用以繪製 該媒體裝置使該電腦執行 模板圖形;建立一該設計 電腦 一具 擇該些模板圖形之一為一第一模板圖形 該第一 及材 中;依一第一使 備之一連 圖形所代 窗中;選 求,指定 度、規格 及材質顯 用者要 接端、擺放角 表設備之規格 擇該些模板圖形之一為一第 質, 示於該繪 模 以下 圖之 ,並加 模板圖 ’並將 圖檔 板圖 可讀 有複 步驟 繪圖 入該 形所 該第 之一 形, 取程式 數管線 :預存 檔;選 繪圖檔 代表設 一模板 工作視 並加入591450 V. Description of the invention (2) One of the purposes of the present invention is to simplify the pipeline equipment diagram. The purpose of the invention is to make a method that includes the following steps: pre-storing the design drawing of the design plan; selecting a graphic and adding the drawing file The representative sets the material for the second representative, and the media device representative that draws the designated end will work as one of the template drawing files, and add one of the equipment to place the angle and place the second The template window of the template map and the second template graphics and drawing are drawn in the representative; the drawing window in the drawing and the design office; the first job is for a plurality of these types of pipeline equipment Equipment template graphics; one of these template graphics is a computer aided design drawing of the first figure, the installation of the body should be clearly placed separately, appropriate plan 'one of the purposes of the device is used to replace one by one first; The picture selection grid and representative and a model are provided in the computer, and the device makes the connection table selected; the material equipment is based on the board drawing, a user, and placement rules These templates make the specifications, angles, grids, and material graphics of the first and the second, and the party creates a template to specify the specifications and quality display one as one and the material as a second user-shaped connection end adjacent to the two template graphics. A template image is displayed corresponding to the request, and connected storage is used to draw the media device to make the computer execute the template graphic; create a design computer, select one of the template graphics as a first template graphic, the first material Medium; according to the first one, one of the windows is replaced by a graphic; optional, the user who specifies the degree, specifications, and material display should be connected, and the specifications of the angle table equipment are selected. One of the template graphics is a first quality. , Shown in the following drawing of the drawing model, and add a template drawing 'and read the drawing board drawing with multiple steps into the first form of the institute, take the program pipeline: pre-archive; select the drawing file to represent the design A template job view and join
591450 五、發明說明(3) 設備之一擺放角 ,並將該第二模板 繪圖檔之該工作視 定該第二模板圖形 端0 該繪圖檔中;使該第二模板圖形所代表 度、規格及材質與該第一模板圖相匹配 圖形所代表設備之規格及材質顯示於該 窗中;以及依據一第二使用者要求,指 與該第一模板圖形連結端鄰近之一連結 實施方式 2.繪圖工作檔(VSDh 機制15之VBA巨集指令13。 3 .工具箱視窗:為自 操作介面,當自動連結及 L i b r a r y )啟動時會顯示X 4.自動連結及材料统 建置了管線設備自動連結 第1圖顯示了本發明一實施例中管 之功能結構圖。其包括了六個主要之功 備模板槽(V S S ) 1 1、設計圖之繪圖工作j 集指令13、工具箱視窗14、自動連結及 管線材料資料庫1 6。分別說明如下: 1 ·模板播(V S S):各類管線設備圖g 訊建立,設備基本資料定義及設定,^ VBA巨集指令設定 111 〜115。 第1圖中顯示了五 建立呼叫自s 2連、结及材料 料統計機制 具箱視窗1 4。 計機制DLL·: 、選擇連結端 I設備圖繪製介面 能方塊,分別為設 ! (VSD)12、 VBA巨 材料統計機制1 5及 I設計,連結端資 I備内建事件連結 ^設備模板 連結及材料統計 統計機制1 5之功能 DLL(Dynami c Link ^ 一 COM DLL,其内 程序、決定旋轉方 591450 五、發明說明(4) 向程序、規格屬性繼承功能、規格屬性設定介面,圖面材 料統計功能等。 5 ·管線材料資料庫··管線設備之材料資訊建立,自動 連結及材料統計機制1 5可以設備規格屬性自動取得唯一之 材料編號。 第2圖顯示了本發明一實施例中管線設備圖繪製介面 之設備連結流程圖。以下將配合第1圖進行說明。 1 首先,在步驟S 1中,先自設備模板圖形1 1 1〜丨丨5中選 擇其一,如設備模板圖形1 1 1,拉放至繪圖工作槽丨2中$ 為初始之連結端設備。 接著,在步驟S2中,再自設備模板圖形11 1~π 5中選 擇其一,如設備模板圖形1 1 2,拉放至繪圖工作檔丨2中。 然後’在步驟S 3中,使設備模板圖形1 1 2之旋轉角度 自動與設備模板圖形π丨相同,而不需使用者自行調整。 再者’在步驟S4中,使設備模板圖形1 1 2之連結端自 動與設備模板圖形1丨丨之連結端連結。 接著’在步驟S 5中,判斷設備模板圖形1 1 1及1 1 2是否 有兩個以上之連結端。若是則執行步驟S6 ;若否則執行步 驟S8〇 在步驟S6中,顯示多連結選擇對話視窗,並在繪圖工 作播之工作視窗中顯示設備模板圖形111與11 2間其中一種 連結方式。 ,在步驟S 7中,取得使用者之指令,判斷是否需要移動 回形Π 2並連結至圖形π丨的另一個連結端顯示下一種連 591450 五、發明說明(5) 結。若是,則回到步驟S 4 ;若否,則執行步驟s 7. 1。 接著,在步驟S7· 1中,判斷設備模板圖形112是否有兩個 以上之連結端。若是則執行步驟S 8 ;若否則執行步驟 S1卜 在步驟S 8中,顯示設備旋轉方向之選擇視窗,以取得 使用者是否需進行設備模板圖形11 2旋轉之指令。 在步驟S 9中,判斷使用者是否要進行旋轉。若是,則 執行步驟S 1 0,若否’則執行步驟S1 1。 在步驟S 1 0中,依據連結方向,旋轉設備模板圖形i i 2 並使圖形1 1 2的另一連結端重新與設備模板圖1丨丨連結。 在步驟S 1 1中,將設備模板圖形1 1 2之規格設定與設備 模板圖形1 1 1相同,並顯示於設備模板圖形1 1 2之一側。 在步驟S 1 2中,經由自動連結及材料統計機制1 5至管 線材料資料庫1 6中查詢設備模板圖形1 1 2之規格,是否存 在有與圖形1 1 1相同管線口徑對應之材料。若有,則自動 指定設備模板圖形1 1 2之規格且執行步驟S 1 5 ;若無,則執 行步驟S 1 3。 在步驟S 1 3中,顯示設備規格屬性畫面。 在步驟S 1 4中,經由設備規格屬性晝面取得使用者對 設備模板圖形1 1 2規格之設定,並顯示於設備模板圖形 之一側。 12 在步驟S 1 5中,將設備模板圖形11 2之規格依據自管 材料資料庫1 6中查得之材料,自動設定設備模板圖形Y線 之材料編號,並將材料規格說明顯示於設備模板圖^ 2 2 591450 五、發明說明(6) 一側。 最後’在步驟S 1 6中’將設備模板圖形1 1 2設定為新的 連結端設備,以供後續增加之設備模板進行連結。 第3圖至第1 6圖顯示了本發明一實施例中使用管線設 備圖繪製介面進行繪圖工作檔編輯之流程。 先設定一設備為連結端設備從模板中拉放一宜管設 備進繪圖頁,確認此一設備為連結端設備,如第3圖所 示。591450 V. Description of the invention (3) One of the equipment is placed at an angle, and the work of the second template drawing file is determined as the second template graphic end 0 in the drawing file; The specifications and materials match the specifications and materials of the device represented by the graphic of the first template. The specifications and materials of the device represented in the window are displayed in the window; .Drawing work file (VSDh mechanism 15 VBA macro instruction 13. 3. Toolbox window: It is a self-operating interface, X will be displayed when the automatic connection and Library are started. 4. The automatic connection and material integration build the pipeline equipment Figure 1 shows the functional structure of a tube in an embodiment of the present invention. It includes six main functions: template slot (V S S) 1 1. Drafting of design drawings, j Set instructions 13, toolbox window 14, automatic connection and pipeline material database 16. The explanations are as follows: 1. Template broadcast (VS): The establishment of various pipeline equipment diagrams, information definition and setting of equipment basic data, ^ VBA macro instruction setting 111 ~ 115. Figure 1 shows five mechanisms for establishing calls from s2, connection, and material statistics. Box window 14. Design mechanism DLL :: Select the connection side I device diagram drawing interface energy block, which is set! (VSD) 12, VBA giant material statistics mechanism 15 and I design, linking the end device I equipment built-in event link ^ device template link And material statistics and statistics mechanism 1 5 Function DLL (Dynami c Link ^ A COM DLL, which contains the program, the decision rotation party 591450 V. Description of the invention (4) Inheritance of functions to the program, specification attributes, specification attribute setting interface, drawing materials Statistics functions, etc. 5 · Pipeline material database · · Material information establishment of pipeline equipment, automatic connection and material statistics mechanism 1 5 The unique material number can be obtained automatically by the equipment specification attributes. Figure 2 shows the pipeline in an embodiment of the present invention. Equipment diagram drawing interface device connection flow chart. The following description will be given in conjunction with Figure 1. 1 First, in step S1, first select one of the equipment template graphics 1 1 1 ~ 丨 5, such as equipment template graphics 1 1 1. Put it in the drawing work slot 丨 2. $ is the initial connection end device. Then, in step S2, select one of the device template graphics 11 1 ~ π 5, such as the device template. The graphic 1 1 2 is pulled into the drawing work file 丨 2. Then, in step S 3, the rotation angle of the equipment template graphic 1 1 2 is automatically the same as the equipment template graphic π 丨 without the user's own adjustment. Furthermore, 'in step S4, the connection end of the device template graphic 1 1 2 is automatically connected to the connection end of the device template graphic 1 丨 丨' Then, in step S5, the device template graphic 1 1 1 and 1 1 2 are judged Whether there are more than two connected ends. If yes, go to step S6; otherwise, go to step S8. In step S6, a multi-link selection dialog window is displayed, and device template graphics 111 and 11 are displayed in the working window of the drawing job broadcast. One of the connection methods is, in step S7, obtain the user's instruction to determine whether it is necessary to move the return shape Π 2 and connect to the other end of the figure π 丨 to display the next connection 591450 V. Description of the invention (5) If yes, go back to step S4; if no, go to step s7.1. Next, in step S7.1, determine whether the device template graphic 112 has more than two connected ends. If yes, go to step S 8; if not Step S1 is performed. In step S8, a selection window for the rotation direction of the device is displayed to obtain an instruction as to whether the user needs to rotate the device template graphic 112. In step S9, it is determined whether the user wants to rotate. If yes, Then step S 1 0 is performed, and if not, step S 1 1 is performed. In step S 10, according to the connection direction, the device template graphic ii 2 is rotated and the other connection end of the graphic 1 1 2 is reconnected with the device template FIG. 1丨 丨 Link. In step S 1 1, the specifications of the equipment template graphic 1 1 2 are the same as those of the equipment template graphic 1 1 1 and displayed on one side of the equipment template graphic 1 1 2. In step S 12, the specifications of the equipment template figure 1 12 are queried through the automatic connection and material statistics mechanism 15 to the pipeline material database 16 to see if there is any material corresponding to the same pipeline diameter as the figure 1 1 1. If there is, the specifications of the equipment template graphic 1 12 are automatically specified and step S 1 5 is performed; if not, the step S 1 3 is performed. In step S 1 3, a device specification attribute screen is displayed. In step S 1 4, the user sets the specifications of the device template graphic 1 12 through the device specification attribute on the day and displays it on one side of the device template graphic. 12 In step S 1 5, the specifications of the equipment template graphic 11 2 are based on the materials found in the self-managed material database 16, and the material number of the equipment template graphic Y line is automatically set, and the material specification is displayed on the equipment template. Figure ^ 2 2 591450 V. Description of the invention (6) side. Finally, in step S 1 6, the device template graphic 1 12 is set as a new connection terminal device for subsequent addition of the device template for connection. Figures 3 to 16 show the process of editing drawing files using the pipeline equipment drawing interface in an embodiment of the present invention. First set a device as the link-end device. Pull an appropriate tube device from the template into the drawing page and confirm that this device is the link-end device, as shown in Figure 3.
顯不設備之材料屬性視窗’由使用者決定正確之材料 編號及規格說明,如第4圖所示。 確認材料資訊之設備將自動在圖件上顯示其規格及材 質,如第5圖所示。 利用繪圖工具設定設備之起始角度,如第6圖所示。 從模板中拉放(Dr ag & Dr op )—欲連結之管線設備元件至 繪圖頁内後,將自動設定設備元件之旋轉角度、移動位置 並且直接將一端點連結至連結端設備之一端點。因連結端 設備有二個連結端點,顯示一訊問視窗訊問使用者是否要 移到下一個連結端,如第7、8圖所示。The material property window of the display device is determined by the user as to the correct material number and specification, as shown in Figure 4. The equipment that confirms the material information will automatically display its specifications and materials on the drawing, as shown in Figure 5. Use the drawing tool to set the starting angle of the device, as shown in Figure 6. Pull from the template (Dr ag & Dr op)-after the pipeline equipment components to be connected to the drawing page, the rotation angle and movement position of the equipment components will be automatically set and an end point will be directly connected to an end point of the connection end equipment . Because the link device has two link endpoints, an interrogation window is displayed asking the user if he wants to move to the next link, as shown in Figures 7 and 8.
確認要移到下一個連結端點時,設備元件自動變換角 度、移動位置並且連結至連結端設備之另一連結端點,如 第9、 1 0圖所示。 連結端點確認後,顯示一訊問視窗訊問使用者端點接頭方 向是否正確,是否要作設備方向的旋轉,如第1 1、1 2圖所 示0When you confirm that you want to move to the next connection end point, the device component automatically changes its angle, moves the position, and connects to the other connection end point of the connection end device, as shown in Figures 9 and 10. After confirming the connection end point, an interrogation window is displayed to ask the user whether the direction of the end point connector is correct, and whether to rotate the device direction, as shown in Figures 1 and 12 0
第10頁 591450Page 10 591450
五、發明說明(7) — 設備方向確認後,即完成斬設備元件與原連結端設備 自動連辞動作,新設備元件特料編號與規格說明將直接 繼承原連結端設備,所以不需要重新輸入,最後新設備元 件成為新連結瑞設備,將接受後續設備元件之連結,如第 1 3圖所示。 依據以上步驟方法’將一管線設備圖之各個設備依序 從設備模板中拉放至繪圖買中,有效率地連結組合出管線 設備圖,其且每一設備都已指定了材料資訊,如第1 4圖所 示0 此外,當一段管線設備圖繪製中或完成時,隨時都3 以使用本發明之圖面材料統計功能,進行圖面上材料的詞 計,統計結果即時顯示在一視窗内,如第1 5、丨6圖所示 綜合上述,本發明運用拉放式(Drag & Dr °)之模^ ° 元件繪圖環境,設計出管線設備圖繪製時之自士' 制、多連結端選擇介面、設備方向旋轉介面、 =j 工程屬性介面、圖面材料自動統計之管線 二 計。藉此,簡化了使用傳統電腦補助输圖軟= 備圖之作。 干粒、、、曰I官線言; 雖然本發明已以一較佳實施例揭露如 以限定本發明,任何熟習此技藝者,在^ 、’然其並非用 神和範圍内,當可作些許之更動與潤飾,^離本發明之精 護範圍當視後附之申請專利範圍所界定者此本發明之保 馬準。 591450 圖式簡單說明 第1圖顯示了本發明一實施例中管線設備圖繪製介面 之功能結構圖; 第2圖顯示了本發明一實施例中管線設備圖繪製介面 之設備連結流程圖; 第3圖至第1 6圖顯示了本發明一實施例中使用管線設 備圖繪製介面進行繪圖工作檔編輯之流程。 符號說明V. Description of the invention (7) — After confirming the direction of the device, the device will automatically complete the reciprocal action between the device and the original connection end device. The new equipment component special material number and specification will directly inherit the original connection end device, so there is no need to re-enter Finally, the new device element becomes the newly connected Swiss device, and will accept the connection of subsequent device elements, as shown in Figure 13. According to the above steps and methods', each device of a pipeline equipment diagram is sequentially pulled from the equipment template to the drawing and buying, and the pipeline equipment diagram is efficiently connected and combined, and each equipment has been assigned material information, such as the first 1 4 shown in figure 0 In addition, when drawing or completing a piece of pipeline equipment diagram, at any time 3 to use the statistical material statistics function of the present invention to calculate the wording of materials on the graphics, the statistical results are displayed in a window immediately As shown in Figures 1 and 5, and 6 above, the present invention uses a drag-and-drop (Drag & Dr °) model ^ ° component drawing environment to design a self-made system and multiple links when drawing pipeline equipment diagrams. The terminal selection interface, the equipment direction rotation interface, = j engineering attribute interface, and the pipeline material automatic statistics of the pipeline are counted. This simplifies the use of traditional computers to subsidize the output of map software = map preparation. Dry granules, and, I official line language; Although the present invention has been disclosed in a preferred embodiment to limit the present invention, anyone skilled in this art, within the scope of ^, ', but does not use God and scope, should be used as With a few changes and retouching, the departure from the scope of the present invention should be regarded as the horse protection standard of the present invention as defined by the attached patent scope. 591450 Brief Description of Drawings Figure 1 shows the functional structure diagram of the pipeline equipment diagram drawing interface in an embodiment of the present invention; Figure 2 shows the equipment connection flowchart of the pipeline equipment diagram drawing interface in an embodiment of the present invention; Figures 1 to 16 show the process of editing a drawing file using a pipeline equipment diagram drawing interface according to an embodiment of the present invention. Symbol Description
Π〜設備模板檔(VSS); 1 1 1 - 1 1 5〜設備模板; 12〜設計圖之繪圖工作檔(VSD); 13〜VBA巨集指令; 1 4〜工具箱視窗; 1 5〜自動連結及材料統計機制; 1 6〜管線材料資料庫。Π ~ Equipment template file (VSS); 1 1 1-1 1 5 ~ Equipment template; 12 ~ Design drawing drawing file (VSD); 13 ~ VBA macro instruction; 1 4 ~ Toolbox window; 1 5 ~ Auto Connection and material statistics mechanism; 16 ~ pipeline material database.
第12頁Page 12