TWI806668B - Electrical circuit diagram comparison method and non-tansitory computer readable medium - Google Patents

Electrical circuit diagram comparison method and non-tansitory computer readable medium Download PDF

Info

Publication number
TWI806668B
TWI806668B TW111122800A TW111122800A TWI806668B TW I806668 B TWI806668 B TW I806668B TW 111122800 A TW111122800 A TW 111122800A TW 111122800 A TW111122800 A TW 111122800A TW I806668 B TWI806668 B TW I806668B
Authority
TW
Taiwan
Prior art keywords
file
difference
text
files
component
Prior art date
Application number
TW111122800A
Other languages
Chinese (zh)
Other versions
TW202401288A (en
Inventor
曾協淳
鄭永健
謝憶欣
Original Assignee
英業達股份有限公司
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 英業達股份有限公司 filed Critical 英業達股份有限公司
Priority to TW111122800A priority Critical patent/TWI806668B/en
Application granted granted Critical
Publication of TWI806668B publication Critical patent/TWI806668B/en
Publication of TW202401288A publication Critical patent/TW202401288A/en

Links

Images

Landscapes

  • Image Analysis (AREA)
  • Debugging And Monitoring (AREA)
  • Near-Field Transmission Systems (AREA)
  • Hardware Redundancy (AREA)

Abstract

A method for comparing electronic circuit diagrams, comprising executing with a processor: converting a first electronic circuit diagram file into a first text file; converting a second electronic circuit diagram file into a second text file; comparing the text file with the second text file to obtain a difference text file including at least one text difference between the first text file and the second text file; and generating a difference image file according to the difference text file, wherein the difference map At least one difference point on the file is marked corresponding to the at least one text difference

Description

電子線路圖比對方法及非暫態電腦可讀取媒體Electronic circuit diagram comparison method and non-transitory computer-readable medium

本發明係關於一種電子線路圖比對方法,特別是指一種可供處理器執行程序的電子線路圖比對方法。 The invention relates to a method for comparing electronic circuit diagrams, in particular to a method for comparing electronic circuit diagrams that can be used by processors to execute programs.

現行電子研發工程師設計畫好電子線路圖後,隨著市產驗證結果若是需要進行線路修改變更,電子研發工程師就會以前一版線路圖進行修改後進版儲存,但因為一份線路圖有6-70頁,產品驗證後需要修改位置可能多達1~20處不等。以往做法是開啟兩份檔案來交叉比對檢查修改是否到位及完成,這樣的作法容易疏漏且相對費時。 After the current electronic R&D engineers design and draw the electronic circuit diagram, if it is necessary to modify the circuit according to the market production verification results, the electronic R&D engineer will modify the previous version of the circuit diagram and then store it in the version, but because a circuit diagram has 6- 70 pages, after product verification, there may be as many as 1 to 20 places that need to be modified. The previous practice was to open two files to cross-check whether the modification is in place and completed. This method is easy to miss and relatively time-consuming.

鑒於上述,本發明提供一種電子線路圖比對方法及非暫態電腦可讀取媒體。 In view of the above, the present invention provides a method for comparing electronic circuit diagrams and a non-transitory computer-readable medium.

依據本發明一實施例的電子線路圖比對方法,包含以一處理器執行:將一第一電子線路圖檔轉換為一第一文字檔;將一第二電子線路圖檔轉換為一第二文字檔;將該第一文字檔與該第二文字檔進行比較,以得到包含該第一文字檔與該第二文字檔的至少一文字差異處的 一差異文字檔;以及根據該差異文字檔產生一差異圖檔,其中該差異圖檔上的至少一差異點是對應於該至少一文字差異處被標記。 The method for comparing electronic circuit diagrams according to an embodiment of the present invention includes executing with a processor: converting a first electronic circuit diagram file into a first text file; converting a second electronic circuit diagram file into a second text file file; comparing the first text file with the second text file to obtain at least one text difference between the first text file and the second text file a difference text file; and a difference image file is generated according to the difference text file, wherein at least one difference point on the difference image file is marked corresponding to the at least one text difference.

依據本發明一實施例的非暫態電腦可讀取媒體,儲存電腦程序,所述電腦程序經處理器執行後處理器執行所述電子線路圖比對方法。 The non-transitory computer-readable medium according to an embodiment of the present invention stores a computer program, and the computer program is executed by a processor, and then the processor executes the electronic circuit diagram comparison method.

藉由上述架構,本案所揭示的電子線路圖比對方法及非暫態電腦可讀取媒體可以將不同版本的電子線路圖檔轉換為各自的文字檔,再將不同的文字檔進行比較,以得到包含兩文字檔的文字差異處的差異文字檔,根據該差異文字檔產生差異圖檔,以標記呈現對應於上述文字差異處的差異點,藉此降低修改檢查的複雜度,進而提升電路設計的效率。 With the above structure, the electronic circuit diagram comparison method disclosed in this case and the non-transitory computer-readable medium can convert different versions of electronic circuit diagram files into their respective text files, and then compare different text files to achieve Obtain a difference text file including the text difference between the two text files, generate a difference graphic file according to the difference text file, and present the difference point corresponding to the above text difference with a mark, thereby reducing the complexity of modification and checking, and further improving the circuit design s efficiency.

以上之關於本揭露內容之說明及以下之實施方式之說明係用以示範與解釋本發明之精神與原理,並且提供本發明之專利申請範圍更進一步之解釋。 The above description of the disclosure and the following description of the implementation are used to demonstrate and explain the spirit and principle of the present invention, and provide a further explanation of the patent application scope of the present invention.

S1~S7、S51~S55、S511~S517、S531~S537、S71~S73:步驟 S1~S7, S51~S55, S511~S517, S531~S537, S71~S73: steps

11:非暫態電腦可讀取媒體 11: Non-transitory computer-readable media

13:處理器 13: Processor

2:差異點 2: Difference point

圖1係依據本發明一實施例所繪示的電子線路圖比對方法之流程圖。 FIG. 1 is a flow chart of a method for comparing electronic circuit diagrams according to an embodiment of the present invention.

圖2係依據本發明一實施例所繪示的電子線路圖比對方法之比較步驟的流程圖。 FIG. 2 is a flow chart of comparing steps of a method for comparing electronic circuit diagrams according to an embodiment of the present invention.

圖3係依據本發明一實施例所繪示的電子線路圖比對方法之比較子步驟的流程圖。 FIG. 3 is a flow chart of the comparison sub-steps of the electronic circuit diagram comparison method according to an embodiment of the present invention.

圖4係依據本發明一實施例所繪示的電子線路圖比對方法之另一比較子步驟的流程圖。 FIG. 4 is a flow chart of another comparison sub-step of the electronic circuit diagram comparison method according to an embodiment of the present invention.

圖5係依據本發明一實施例所繪示的電子線路圖比對方法之標記步驟的流程圖。 FIG. 5 is a flow chart of marking steps of a method for comparing electronic circuit diagrams according to an embodiment of the present invention.

圖6係依據本發明一實施例所繪示的第一電子線路圖檔之示意圖。 FIG. 6 is a schematic diagram of a first electronic circuit diagram file according to an embodiment of the present invention.

圖7係依據本發明一實施例所繪示的第二電子線路圖檔之示意圖。 FIG. 7 is a schematic diagram of a second electronic circuit diagram file according to an embodiment of the present invention.

圖8係依據本發明一實施例所繪示的差異圖檔之示意圖。 FIG. 8 is a schematic diagram of a difference image file drawn according to an embodiment of the present invention.

圖9係依據本發明一實施例所繪示的系統功能方塊圖。 FIG. 9 is a functional block diagram of a system according to an embodiment of the present invention.

以下在實施方式中詳細敘述本發明之詳細特徵以及優點,其內容足以使任何熟習相關技藝者了解本發明之技術內容並據以實施,且根據本說明書所揭露之內容、申請專利範圍及圖式,任何熟習相關技藝者可輕易地理解本發明相關之目的及優點。以下之實施例係進一步詳細說明本發明之觀點,但非以任何觀點限制本發明之範疇。 The detailed features and advantages of the present invention are described in detail below in the implementation mode, and its content is enough to make any person familiar with the related art understand the technical content of the present invention and implement it accordingly, and according to the content disclosed in this specification, the scope of the patent application and the drawings , anyone skilled in the art can easily understand the purpose and advantages of the present invention. The following examples are to further describe the concept of the present invention in detail, but not to limit the scope of the present invention in any way.

本案多個實施例所提的電子線路圖比對方法可由處理器執行,所述處理器例如為中央處理器、可程式化邏輯控制器、微控制器或其他具有資料處理功能的電子裝置。處理器可以接收兩不同版本的電子線路圖檔(如前版電子線路圖檔及後版電子線路圖檔),而在本文中,分別定義兩電子線路圖檔為第一電子線路圖檔及第二電子線路圖檔。值得注意的是,上述第一與第二電子線路圖檔不影射電子線路圖檔之版本 的先後順序,且第一與第二電子線路圖檔也可為一電子線路母圖檔的兩版本分支,或是相隔數代版本差異的電子線路圖檔,總之只要是兩個能夠產生對應比較的電子線路圖檔皆能成為本案所述的第一及第二電子線路圖檔,此部分不應成為本案限制。另外,對於同時比較三個以上的電子線路圖檔之方法,如果過程是建立在兩兩比較的基礎上,則可依據本案請求項而因此屬於本案保護範圍中。 The method for comparing electronic circuit diagrams provided in various embodiments of the present application can be executed by a processor, such as a central processing unit, a programmable logic controller, a microcontroller, or other electronic devices with data processing functions. The processor can receive two different versions of electronic circuit diagram files (such as the previous version of the electronic circuit diagram file and the later version of the electronic circuit diagram file), and in this paper, the two electronic circuit diagram files are respectively defined as the first electronic circuit diagram file and the second electronic circuit diagram file. 2. Electronic circuit diagram files. It is worth noting that the above-mentioned first and second electronic circuit diagram files do not allude to the version of the electronic circuit diagram file sequence, and the first and second electronic circuit diagram files can also be two versions of a parent electronic circuit diagram file, or electronic circuit diagram files separated by several generations of version differences, in short, as long as the two can produce corresponding comparison All of the electronic circuit diagram files can become the first and second electronic circuit diagram files mentioned in this case, and this part should not be a limitation of this case. In addition, as for the method of comparing more than three electronic circuit diagram files at the same time, if the process is based on pairwise comparison, it can be based on the claims of this case and thus fall within the scope of protection of this case.

請參考圖1,圖1為依據本發明一實施例所繪示的電子線路圖比對方法之流程圖。如圖1所示,電子線路圖比對方法包含步驟S1:將第一電子線路圖檔轉為第一文字檔;步驟S3:將第二電子線路圖檔轉為第二文字檔;步驟S5:將第一文字檔與第二文字檔進行比較,以得到包含第一文字檔與第二文字檔的至少一文字差異處的差異文字檔;以及步驟S7:根據差異文字檔產生差異圖檔,其中該差異圖檔上的至少一差一點是對應於該至少一文字差異處被標記。 Please refer to FIG. 1 . FIG. 1 is a flowchart of a method for comparing electronic circuit diagrams according to an embodiment of the present invention. As shown in Figure 1, the electronic circuit diagram comparison method includes step S1: converting the first electronic circuit diagram file into a first text file; step S3: converting the second electronic circuit diagram file into a second text file; step S5: converting The first text file is compared with the second text file to obtain a difference text file including at least one text difference between the first text file and the second text file; and step S7: generating a difference image file according to the difference text file, wherein the difference image file At least one difference point on is marked corresponding to the at least one text difference.

於步驟S1及步驟S3前,處理器可在接收第一及第二電子線路圖檔後,再將第一電子線路圖檔轉換為第一文字檔(步驟S1)且將第二電子線路圖檔轉換為第二文字檔(步驟S3)。處理器也可以事先接收第一電子線路圖檔就執行步驟S1,再接收第二電子線路圖檔執行步驟S3。而如同前面所述的,第一電子線路圖檔與第二電子線路圖檔沒有順序上的差別,因此步驟S1及步驟S3在順序上可交換,也可平行處理。 Before step S1 and step S3, after receiving the first and second electronic circuit diagram files, the processor may convert the first electronic circuit diagram file into a first text file (step S1) and convert the second electronic circuit diagram file It is the second text file (step S3). The processor may also perform step S1 upon receiving the first electronic circuit diagram file in advance, and then perform step S3 upon receiving the second electronic circuit diagram file. As mentioned above, there is no difference in order between the first electronic circuit diagram file and the second electronic circuit diagram file, so the order of step S1 and step S3 can be exchanged or processed in parallel.

於步驟S5,處理器將第一文字檔與第二文字檔進行比較,以得到包含至少一文字差異處的差異文字檔。具體而言,本案所指涉的比較可為判斷兩文字檔是否相等,即程式運算中的是否等於,可以產生 如布林值(Boolean)的結果;然而,對於其他種比較形式如將兩資料進行相減,以得到零值(表示相同)或非零值(表示相異),或是其他種類能產生類似功效之運算方法,則因同樣具有比較效果而應屬於本案保護範圍中。另一方面,本案所指涉的文字檔與圖檔主要差異在於呈現方式的不同,因此文字檔中可包含文字、數字、指標(pointer)或其他帶有屬性的上述文字、數字及指標(pointer)的資料結構或型態如樹(tree)、連結串列(linked list)、堆疊(stack)及陣列(array)等,而非僅包含單純文字之資料型態,因此這部分不應成為本案限制條件。 In step S5, the processor compares the first text file with the second text file to obtain a difference text file including at least one text difference. Specifically, the comparison referred to in this case can be used to judge whether two text files are equal, that is, whether or not in the program operation is equal, which can generate Such as the result of Boolean value (Boolean); however, for other types of comparison, such as subtracting two data to obtain a zero value (indicating the same) or a non-zero value (indicating the difference), or other types can produce similar The calculation method of efficacy should also fall within the protection scope of this case because it also has comparative effects. On the other hand, the main difference between the text file and the image file referred to in this case lies in the different presentation methods, so the text file can contain text, numbers, indicators (pointer) or other above-mentioned text, numbers and indicators (pointer) with attributes ) data structures or types such as tree (tree), linked list (linked list), stack (stack) and array (array), etc., rather than data types containing only simple text, so this part should not be included in this case limitation factor.

在步驟S5中,文字差異處可代表線路差異或元件差異等其他電子線路中的類似的差異資訊;另一方面,如果兩文字檔沒有任何差異,則可得到不包含文字差異處的差異文字檔,使得相關人員可以確認兩版本電子線路圖檔的局部是否經過變更;當然在一般情況下,上述文字差異檔可包含至少一文字差異處。而透過將兩電子線路圖檔轉換為兩文字檔,使得兩文字檔的比較對於兩電子線路圖檔的差異較具有實質意義,原因在於單純對圖檔進行比較可能會含有較多無意義資訊,如排版及分頁導致的圖形差異等,此問題尤其在圖檔數量龐大或頁數較多的情況較容易發生。 In step S5, the text differences can represent similar difference information in other electronic circuits such as circuit differences or component differences; on the other hand, if there is no difference between the two text files, a difference text file that does not include the text differences can be obtained , so that relevant personnel can confirm whether parts of the electronic circuit diagram files of the two versions have been changed; of course, under normal circumstances, the above-mentioned text difference files may contain at least one text difference. By converting the two electronic circuit diagram files into two text files, the comparison of the two text files is more meaningful to the difference between the two electronic circuit diagram files, because simply comparing the diagram files may contain more meaningless information, Such as graphics differences caused by typesetting and pagination, etc. This problem is more likely to occur especially in the case of a large number of graphics files or a large number of pages.

在得到差異文字檔後,如步驟S7,可根據差異文字檔產生差異圖檔,其中文字差異處會對應標記差異點於差異圖檔上。也就是,相關人員透過此步驟所產生的差異圖檔,可以明確目視辨認第一電子線路圖檔與第二電子線路圖檔的差異,無論是透過顏色或其他圖案來標記 兩電子線路圖檔的差異點,使得多頁數的電子線路圖檔之比較更為輕鬆且有效率。 After the difference text file is obtained, as in step S7, a difference graphic file can be generated according to the difference text file, wherein text differences will be correspondingly marked with difference points on the difference graphic file. That is to say, relevant personnel can clearly and visually identify the difference between the first electronic circuit drawing file and the second electronic circuit drawing file through the difference drawing file generated in this step, whether it is marked by color or other patterns The differences between the two electronic circuit diagrams make the comparison of multi-page electronic circuit diagrams easier and more efficient.

進一步而言,第一文字檔可包含第一線路資料與第一元件資料,且第二文字檔可包含第二線路資料與第二元件資料。請參照圖2,圖2係依據本發明一實施例所繪示的電子線路圖比對方法之比較步驟的流程圖。如圖2所示,圖1的比較步驟S5可包含以下步驟:步驟S51:將第一線路資料與第二線路資料進行比較,以得到線路比較結果;步驟S53:將第一元件資料與第二元件資料進行比較,以得到元件比較結果;以及步驟S55:根據包含關聯於線路比較結果及元件比較結果的至少一文字差異處產生差異文字檔。 Furthermore, the first text file may include the first circuit data and the first component data, and the second text file may include the second circuit data and the second component data. Please refer to FIG. 2 . FIG. 2 is a flow chart showing the comparison steps of the method for comparing electronic circuit diagrams according to an embodiment of the present invention. As shown in Figure 2, the comparison step S5 of Figure 1 may include the following steps: Step S51: compare the first circuit data with the second circuit data to obtain the circuit comparison result; step S53: compare the first component data with the second Comparing the component data to obtain a component comparison result; and step S55 : generating a difference text file according to at least one text difference associated with the circuit comparison result and the component comparison result.

具體而言,線路資料可為電路圖中每個節點(node)與其他節點的連結關係,實施方式屬於習知技術在此不贅述。透過步驟S51,可以得知兩電子線路圖的拓撲結構是否相等,以及得到不同處並記錄。步驟S53則是針對各節點上的元件進行比較,透過對元件進行比較可以篩選出不同類型的元件變更如電阻被更換成電容,或是篩選出同類型但阻抗值不同的元件。需要注意的是,凡是元件必然位於節點上,然節點上卻不一定具有元件(如接地點、等電位點或端點等)。以步驟S55來說,無論是僅有線路比較結果具有差異或僅有元件比較結果具有差異,或線路比較結果與元件比較結果皆具有差異,都能產生包含差異的差異文字檔,供本案方法之後的步驟使用。 Specifically, the line data can be the connection relationship between each node (node) and other nodes in the circuit diagram, and the implementation methods belong to the prior art and will not be described here. Through step S51, it can be known whether the topological structures of the two electronic circuit diagrams are equal, and the differences are obtained and recorded. Step S53 is to compare the components on each node. By comparing the components, different types of component changes can be screened out, such as resistors being replaced with capacitors, or components of the same type but with different impedance values can be screened out. It should be noted that all components must be located on the nodes, but the nodes do not necessarily have components (such as grounding points, equipotential points or endpoints, etc.). Taking step S55 as an example, no matter whether only the circuit comparison result has a difference or only the component comparison result has a difference, or both the circuit comparison result and the component comparison result have differences, a difference text file containing the difference can be generated for future use of the method in this case. steps to use.

更進一步而言,第一線路資料可包含多個第一線路檔案,且第二線路資料可包含多個第二線路檔案。針對包含多個線路檔案的線 路資料之比較的詳細實施方式請參考圖3,圖3係依據本發明一實施例所繪示的電子線路圖比對方法之比較子步驟的流程圖。如圖3所示,圖2的步驟S51可以包含:步驟S511:根據第一線路檔案的多個檔案名稱,取得第二線路檔案中對應的多個目標線路檔案;步驟S513:將目標線路檔案中的每一者與第一線路檔案中的對應的每一者進行比較;步驟S515:將目標線路檔案中與對應的第一線路檔案中具有差異者記錄為所述文字差異處至所述線路差異結果;以及步驟S517:當第一線路檔案及第二線路檔案包含沒有被對應的剩餘線路檔案時,將剩餘線路檔案記錄為所述文字差異處至所述線路比較結果。 Furthermore, the first route data may include a plurality of first route files, and the second route data may include a plurality of second route files. For lines containing multiple line files Please refer to FIG. 3 for a detailed implementation of the comparison of circuit data. FIG. 3 is a flow chart of the comparison sub-steps of the method for comparing electronic circuit diagrams according to an embodiment of the present invention. As shown in Figure 3, step S51 of Figure 2 may include: Step S511: According to the multiple file names of the first line file, obtain a plurality of corresponding target line files in the second line file; Each one is compared with each corresponding one in the first line file; Step S515: Record the difference between the target line file and the corresponding first line file as the text difference to the line difference Result; and step S517 : when the first line file and the second line file include the remaining line files that are not corresponding, record the remaining line files as the text difference to the line comparison result.

在本例中,第一線路資料的多個第一線路檔案具有多個檔案名稱,其中每個檔案名稱可對應電路板上的一條線路。具體來說,以市面常用電子線路設計軟體Allegro為例,線路檔案可為Nets file,而線路檔案具有多個檔案名稱分別對應到各條線路。於步驟S511,多個第一線路檔案的多個檔案名稱可對應取得多個第二線路檔案中的目標線路檔案。於步驟S513,目標線路檔案中的每一者與第一線路檔案中的對應線路檔案進行比較,即兩不同版本的電子線路圖檔可根據同一條線路進行比較。在步驟S515中,針對線路比較中具有差異者可記錄為上述文字差異處並儲存至上述線路比較結果,至此,已經針對兩版本電子線路圖檔中對應線路的差異部分進行記錄。於步驟S517,對於第一線路檔案及第二線路檔案中沒有被對應的剩餘線路檔案,同樣可記錄為所述文字差異處至所述線路比較結果中,也就是,對於兩筆線路檔案中,沒有辦 法產生對應的線路資料,如後版新增或刪除了某些線路,則將該些未能產生對應的線路資料記錄為文字差異處。 In this example, the multiple first circuit files of the first circuit data have multiple file names, wherein each file name may correspond to a circuit on the circuit board. Specifically, taking Allegro, a commonly used electronic circuit design software in the market, as an example, the circuit file can be a Nets file, and the circuit file has multiple file names corresponding to each circuit. In step S511, a plurality of file names of the plurality of first route files can be correspondingly obtained to a target route file in the plurality of second route files. In step S513, each of the target circuit files is compared with the corresponding circuit file in the first circuit file, that is, two different versions of electronic circuit files can be compared based on the same circuit. In step S515, those with differences in the circuit comparison can be recorded as the above-mentioned text differences and stored in the above-mentioned circuit comparison results. So far, the differences of the corresponding circuits in the two versions of the electronic circuit diagram files have been recorded. In step S517, for the remaining line files that are not corresponding in the first line file and the second line file, it can also be recorded as the text difference in the line comparison result, that is, for the two line files, did not do If some lines are added or deleted in the later version, the corresponding line data that cannot be generated will be recorded as text differences.

至此,本例的差異文字檔中的線路比較結果已經涵蓋了兩版本電子線路圖中的所有線路差異,包含無法產生對應的線路,以及對應線路中可能包含的節點數量及位置改變。關於本例步驟S53對元件資料進行的比較,詳細實施方式請參考圖4,圖4係依據本發明一實施例所繪示的電子線路圖比對方法之另一比較子步驟流程圖,包含步驟S531:根據第一元件檔案的多個檔案名稱,取得第二元件檔案中對應的多個目標元件檔案;步驟S533:將目標元件檔案中的每一者與第一元件檔案中的對應的每一者進行比較;步驟S535:將目標元件檔案中與對應的第一元件檔案中具有差異者記錄為所述文字差異處至所述元件比較結果;步驟S537:當第一線路檔案及第二線路檔案包含所述剩餘線路檔案時,將第一元件檔案及第二元件檔案中對應於所述剩餘線路檔案的剩餘元件檔案記錄為所述文字差異處至所述元件比較結果。 So far, the line comparison results in the difference text file in this example have covered all the line differences in the two versions of the electronic circuit diagram, including the inability to generate corresponding lines, and changes in the number and position of nodes that may be included in the corresponding lines. Regarding the comparison of component data in step S53 of this example, please refer to Figure 4 for detailed implementation. S531: Obtain multiple target component files corresponding to the second component file according to multiple file names of the first component file; Step S533: Match each of the target component files with each corresponding target component file or compare them; step S535: record the difference between the target component file and the corresponding first component file as the text difference to the component comparison result; step S537: when the first circuit file and the second circuit file When the remaining circuit files are included, the remaining component files corresponding to the remaining circuit files in the first component file and the second component file are recorded as the character difference to the component comparison result.

在本例中,第一元件資料包含多個第一元件檔案,且第二線路資料包含多個第二元件檔案,且第一元件檔案具有與第一線路檔案類似的多個檔案名稱,其中每個檔案名稱可對應電路板上的一條線路,具體來說,以市面常用電子線路設計軟體Allegro為例,元件檔案可為Components file,而元件檔案具有多個檔案名稱分別對應到各條線路。具體來說,步驟S531至步驟S535類似於上述步驟S511至步驟S515,故在此不贅述。然而需要注意的是,雖然步驟S531是根據第一元件檔案的多個檔案名稱對應取得第二元件檔案中的目標元件檔案,但是如熟悉本 領域通常知識者可以理解的,第一元件檔案中的檔案名稱與第一線路檔案中的檔案名稱同屬於第一電子線路圖檔所轉換的第一文字檔,故自然具有部分相同的檔案名稱,或是具有一對一關係的檔案名稱,即,具有相同的線路。因此,步驟S531也可為根據第一線路檔案的多個檔案名稱,取得第二元件檔案中對應的多個目標元件檔案,此部分屬於簡單變化,不應成為本案限制條件。 In this example, the first component data includes a plurality of first component files, and the second circuit data includes a plurality of second component files, and the first component file has a plurality of file names similar to the first circuit file, wherein each Each file name can correspond to a circuit on the circuit board. Specifically, taking the common electronic circuit design software Allegro in the market as an example, the component file can be Components file, and the component file has multiple file names corresponding to each circuit. Specifically, steps S531 to S535 are similar to the above steps S511 to S515, so details are not repeated here. However, it should be noted that although step S531 is to obtain the target component file in the second component file according to the multiple file names of the first component file, if you are familiar with this It can be understood by those skilled in the art that the file name in the first component file and the file name in the first circuit file belong to the first text file converted from the first electronic circuit diagram file, so they naturally have part of the same file name, or are file names that have a one-to-one relationship, i.e., have the same line. Therefore, step S531 can also obtain multiple target component files corresponding to the second component file according to multiple file names of the first circuit file. This part is a simple change and should not be a limiting condition of this case.

於步驟S537,結合上段所述,第一線路檔案及第二元件檔案中對應於所述剩餘線路檔案的剩餘元件檔案,等同於第一線路檔案及第二元件檔案中沒有被步驟S531所對應的剩餘元件檔案,至此,本例的處理器已經取得了包含線路比較結果以及元件比較結果的文字差異處。此外需要注意的是,本例是採取線路資料的比較優先於元件資料的比較之執行順序,但這並不表示先比較元件資料或同時比較元件及線路資料不在本案範圍,在此僅為一種舉例說明。 In step S537, in combination with the above paragraph, the remaining component files in the first circuit file and the second component file corresponding to the remaining circuit files are equal to those not corresponding to the step S531 in the first circuit file and the second component file The rest of the component files. So far, the processor in this example has obtained the text differences containing the circuit comparison results and component comparison results. In addition, it should be noted that in this example, the comparison of circuit data takes precedence over the comparison of component data, but this does not mean that comparing component data first or comparing component and circuit data at the same time is not within the scope of this case. This is just an example. illustrate.

進一步說明產生標記差異點的差異圖檔的步驟的詳細實施方式。請參考圖5,圖5係依據本發明一實施例所繪示的電子線路圖比對方法之標記步驟流程圖。如圖5所示,圖1之步驟S7可包含步驟S71:在原始圖檔上根據第一顏色屬性以第一顏色標記至少一差異點以產生差異圖檔,其中原始圖檔關聯於第一電子線路圖檔或第二電子線路圖檔;步驟S73:在原始圖檔上根據第二顏色屬性以第二顏色標記至少一差異點外的非差異點以產生差異圖檔。具體來說,處理器可將上述差異文字檔轉換回一電子線路圖檔或是直接使用所述第一電子線路圖檔或第二電子線路圖檔,作為原始圖檔,且利用被第一顏色屬性如紅色屬性 標記的文字差異處在原始圖檔上產生具紅色標記的差異點;相較於差異點,方案上選擇性地,步驟S73可針對非文字差異處在原始圖檔上產生具第二顏色如黑色的標記,如此一來使得差異圖檔的整體僅具有鮮明的兩種顏色對比,讓相關人員在尋找差異點時能一目了然。上述的顏色屬性是屬於定義文字檔所涵蓋的資料之一,使得當文字檔轉換為圖檔時,可以針對該顏色屬性去定義圖檔上所呈現的例如三原色光(RGB)比例,以呈現期望的表現色彩。當然,使用顏色標記僅為一種便於實施的方案選擇,在其他實施例中,也可透過圖案標記或字體變化等能夠斟酌本發明產生聯想之替代方案,故此部分不應成為本案限制條件。 A detailed implementation of the step of generating a difference image file with marked difference points is further described. Please refer to FIG. 5 . FIG. 5 is a flow chart of marking steps of a method for comparing electronic circuit diagrams according to an embodiment of the present invention. As shown in FIG. 5, step S7 of FIG. 1 may include step S71: mark at least one difference point with a first color on the original image file according to the first color attribute to generate a difference image file, wherein the original image file is associated with the first electronic Circuit diagram file or second electronic circuit diagram file; step S73: mark at least one non-difference point other than the difference point on the original diagram file with a second color according to the second color attribute to generate a difference diagram file. Specifically, the processor can convert the difference text file back to an electronic circuit diagram file or directly use the first electronic circuit diagram file or the second electronic circuit diagram file as the original image file, and use the first color attributes such as the red attribute The text difference of the mark produces the difference point with red mark on the original image file; Compared with the difference point, in the program, step S73 can generate a second color such as black on the original image file for the non-text difference In this way, the overall difference image file has only two distinct color contrasts, so that relevant personnel can see at a glance when looking for differences. The above-mentioned color attribute is one of the materials covered by the definition of the text file, so that when the text file is converted into a graphic file, the color attribute can be used to define the ratio of the three primary colors (RGB) displayed on the graphic file to present the desired performance color. Of course, the use of color markings is only an option for easy implementation. In other embodiments, alternative schemes that can be associated with the present invention can also be considered through pattern markings or font changes, so this part should not be a limiting condition of this case.

關於本發明所產生的差異圖檔之實際效果請參考圖6至圖8,分別是依據本發明實施例所繪示的第一電子線路圖檔、第二電子線路圖檔以及差異圖檔的示意圖。其中可以看到圖6及圖7上具有密集分的線路連結與各式元件,使得相關人員需要耗時費力才能確認兩版本之間的差異變更處,然而透過本案電子線路圖比對方法之轉換為文字檔後進行比較、標記以及轉換為差異圖檔,如圖8所示,可以清楚辨認兩圖檔之差異點2。另外需要注意的是,一份電路圖往往具有數十頁圖檔,因此透過本案方法也可協助過濾當中沒有產生更動線路或元件的線路圖,如此一來可實現跨頁搜尋及交叉比對,實務上更為方便。 For the actual effect of the difference image file generated by the present invention, please refer to FIG. 6 to FIG. 8 , which are schematic diagrams of the first electronic circuit image file, the second electronic circuit image file, and the difference image file according to the embodiment of the present invention. . Among them, it can be seen that there are densely divided circuit connections and various components in Figure 6 and Figure 7, making it time-consuming and laborious for relevant personnel to confirm the differences and changes between the two versions. However, through the conversion of the electronic circuit diagram comparison method in this case After the text files are compared, marked and converted into difference image files, as shown in Figure 8, the difference 2 between the two image files can be clearly identified. In addition, it should be noted that a circuit diagram often has dozens of pages of diagram files, so the method of this case can also help filter circuit diagrams that have no changed circuits or components, so that cross-page search and cross-comparison can be realized. more convenient.

透過本發明以軟體比對前後版線路圖,將有修改部分以不同顏色顯示出來,檢查研發人員在檔案中交叉跳頁比對尋找,直接將前後版本檔案的差異處用不同顏色顯示出來,便於研發人員檢視修改是否正確到位。而本案所述的第一電子線路圖檔及第二電子線路圖檔皆可 包含大於四層的電路板層數的多張圖面,因此本發明之比對方法能顯著提升對於複雜線路圖檔的檢視與修改。 Through the present invention, the software compares the circuit diagrams of the front and back versions, and displays the modified parts in different colors. The inspection and development personnel can compare and search for cross-page comparisons in the files, and directly display the differences between the front and back versions of the files in different colors, which is convenient The R&D personnel check whether the modification is correct and in place. Both the first electronic circuit diagram file and the second electronic circuit diagram file mentioned in this case can be It includes multiple drawings with more than four layers of circuit boards, so the comparison method of the present invention can significantly improve the inspection and modification of complex circuit diagram files.

至此係針對本發明電子線路圖比對方法之描述,本發明亦提供一種非暫態電腦可讀取媒體,儲存一電腦程序,該電腦程序經一處理器執行後該處理器執行如上所述之電子線路圖比對方法。此外,本文所舉例的電子線路圖設計軟體為Allegro,然而市面上的眾多軟體如Eagle、Altium、Proteus、Cad、Protel等都可能應用本發明之電子線路圖比對方法及非暫態電腦可讀取媒體。 So far, the description of the electronic circuit diagram comparison method of the present invention is provided. The present invention also provides a non-transitory computer-readable medium storing a computer program. After the computer program is executed by a processor, the processor executes the above-mentioned Electronic circuit diagram comparison method. In addition, the electronic circuit diagram design software mentioned in this article is Allegro, but many softwares on the market such as Eagle, Altium, Proteus, Cad, Protel, etc. may apply the electronic circuit diagram comparison method of the present invention and non-transient computer readable Take the media.

本發明上述實施例所述的電子線路圖比對方法中的全部或部分步驟可以由電腦程序實現,例如應用程式、驅動程式、作業系統等任意組合。所屬技術領域中具有通常知識者可將本發明上述實施例的方法撰寫成電腦程式碼,為求簡明不再加以描述。依據本發明上述實施例的方法實施的電腦程序可儲存於適當的非暫態電腦可讀取媒體,例如DVD、CD-ROM、隨身碟、硬碟,也可置於可透過網路(例如,網際網路,或其他適當介質)存取的網路伺服器。電腦程序經處理器執行後,處理器可以執行上述實施例所述的電子線路圖比對方法中的全部或部分步驟。所述處理器例如為中央處理器、可程式化邏輯控制器、微控制器或其他具有資料處理功能的電子裝置。 All or part of the steps in the method for comparing electronic circuit diagrams described in the above embodiments of the present invention can be implemented by computer programs, such as any combination of application programs, driver programs, and operating systems. Those skilled in the art can write the methods of the above-mentioned embodiments of the present invention into computer program codes, and the description is omitted for the sake of brevity. The computer programs implemented according to the methods of the above-mentioned embodiments of the present invention can be stored in suitable non-transitory computer-readable media, such as DVD, CD-ROM, flash drive, hard disk, and can also be placed through the network (for example, Internet, or other appropriate medium) access to the network server. After the computer program is executed by the processor, the processor can execute all or part of the steps in the electronic circuit diagram comparison method described in the above-mentioned embodiments. The processor is, for example, a central processing unit, a programmable logic controller, a microcontroller or other electronic devices with data processing functions.

藉由上述架構,本案所揭示的電子線路圖比對方法及非暫態電腦可讀取媒體可以將不同版本的電子線路圖檔轉換為各自的文字檔,再將不同的文字檔進行比較,以得到包含兩文字檔的文字差異處的差異文字檔,根據該差異文字檔產生差異圖檔,以標記呈現對應於上 述文字差異處的差異點,藉此降低修改檢查的複雜度,進而提升電路設計的效率。 With the above structure, the electronic circuit diagram comparison method disclosed in this case and the non-transitory computer-readable medium can convert different versions of electronic circuit diagram files into their respective text files, and then compare different text files to achieve Obtain the difference text file containing the text difference between the two text files, generate a difference image file according to the difference text file, and present the difference corresponding to the above The differences in the differences between the above texts can be used to reduce the complexity of modification and inspection, thereby improving the efficiency of circuit design.

雖然本發明以前述之實施例揭露如上,然其並非用以限定本發明。在不脫離本發明之精神和範圍內,所為之更動與潤飾,均屬本發明之專利保護範圍。關於本發明所界定之保護範圍請參考所附之申請專利範圍。 Although the present invention is disclosed by the aforementioned embodiments, they are not intended to limit the present invention. Without departing from the spirit and scope of the present invention, all changes and modifications are within the scope of patent protection of the present invention. For the scope of protection defined by the present invention, please refer to the appended scope of patent application.

S1~S7:步驟 S1~S7: steps

Claims (8)

一種電子線路圖比對方法,包含以一處理器執行:將一第一電子線路圖檔轉換為一第一文字檔;將一第二電子線路圖檔轉換為一第二文字檔;將該第一文字檔與該第二文字檔進行比較,以得到包含該第一文字檔與該第二文字檔的至少一文字差異處的一差異文字檔;以及根據該差異文字檔產生一差異圖檔,其中該差異圖檔上的至少一差異點是對應於該至少一文字差異處被標記,其中該第一文字檔包含一第一線路資料及一第一元件資料,且該第二文字檔包含一第二線路資料及一第二元件資料,且使得將該第一文字檔與該第二文字檔進行比較,以得到包含該第一文字檔與該第二文字檔的該至少一文字差異處的該差異文字檔包含:將該第一線路資料與該第二線路資料進行比較,以得到一線路比較結果;將該第一元件資料與該第二元件資料進行比較,以得到一元件比較結果;以及根據包含關聯於該線路比較結果及該元件比較結果的該至少一文字差異處產生該差異文字檔,且該第一線路資料包含多個第一線路檔案,該第二線路資料包含多個第二線路檔案,且將該第一線路資料與該第二線路資料進行比較,以得到該線路比較結果包含: 根據該些第一線路檔案的多個檔案名稱,取得該些第二線路檔案中對應的多個目標線路檔案;將該些目標線路檔案中的每一者與該些第一線路檔案中的對應的每一者進行比較;將該些目標線路檔案中與對應的該些第一線路檔案中具有差異者記錄為該文字差異處至該線路比較結果;以及當該些第一線路檔案及該些第二線路檔案包含沒有被對應的一剩餘線路檔案時,將該剩餘線路檔案記錄為該文字差異處至該線路比較結果。 A method for comparing electronic circuit diagrams, including executing with a processor: converting a first electronic circuit diagram file into a first text file; converting a second electronic circuit diagram file into a second text file; converting the first text file compare the file with the second text file to obtain a difference text file including at least one text difference between the first text file and the second text file; and generate a difference image file according to the difference text file, wherein the difference image At least one difference point on the file is marked corresponding to the at least one text difference, wherein the first text file includes a first line data and a first component data, and the second text file includes a second line data and a second component data, and make the first text file and the second text file to be compared, so as to obtain the difference text file including the at least one text difference between the first text file and the second text file including: the first text file and the second text file Comparing a circuit data with the second circuit data to obtain a circuit comparison result; comparing the first component data with the second component data to obtain a component comparison result; and according to the inclusion associated with the circuit comparison result The difference text file is generated at the at least one text difference of the comparison result of the component, and the first line data includes a plurality of first line files, the second line data includes a plurality of second line files, and the first line data The data is compared with the second line data to obtain the line comparison result including: Obtain a plurality of target line files corresponding to the second line files according to the file names of the first line files; Each of the target line files is compared; the difference between the target line files and the corresponding first line files is recorded as the text difference to the line comparison result; and when the first line files and the first line files When the second route file includes an uncorresponded remaining route file, record the remaining route file as the character difference to the route comparison result. 如請求項1所述的電子線路圖比對方法,其中將該第一線路資料與該第二線路資料進行比較的執行順序先於將該第一元件資料及該第二元件資料進行比較的執行順序。 The method for comparing electronic circuit diagrams as described in Claim 1, wherein the execution sequence of comparing the first circuit data with the second circuit data is prior to the execution of comparing the first component data and the second component data order. 如請求項1所述的電子線路圖比對方法,其中該第一元件資料包含多個第一元件檔案,該第二元件資料包含多個第二元件檔案,且將該第一元件資料與該第二元件資料進行比較,以得到該元件比較結果包含:根據該些第一元件檔案的多個檔案名稱,取得該些第二元件檔案中對應的多個目標元件檔案;將該些目標元件檔案中的每一者與該些第一元件檔案中的對應的每一者進行比較;將該些目標元件檔案中與對應的該些第一元件檔案中具有差異者記錄為該文字差異處至該元件比較結果;以及 當該些第一線路檔案及該些第二線路檔案包含該剩餘線路檔案時,將該些第一元件檔案及該些第二元件檔案中對應於該剩餘線路檔案的一剩餘元件檔案記錄為該文字差異處至該元件比較結果。 The electronic circuit diagram comparison method as described in claim 1, wherein the first component data includes multiple first component files, the second component data includes multiple second component files, and the first component data and the Comparing the second component data to obtain the component comparison result includes: obtaining a plurality of target component files corresponding to the second component files according to the multiple file names of the first component files; Each of them is compared with each of the corresponding ones of the first component files; the difference between the target component files and the corresponding first component files is recorded as the text difference to the Component comparison results; and When the first line files and the second line files include the remaining line file, record a remaining element file corresponding to the remaining line file among the first component files and the second component files as the Text difference to the comparison result of this component. 如請求項1所述的電子線路圖比對方法,其中該至少一文字差異處具有一第一顏色屬性,且根據該差異文字檔產生該差異圖檔包含:在一原始圖檔上根據該第一顏色屬性以一第一顏色標記該至少一差異點以產生該差異圖檔,其中該原始圖檔關聯於該第一電子線路圖檔或該第二電子線路圖檔。 The electronic circuit diagram comparison method as described in claim 1, wherein the at least one text difference has a first color attribute, and generating the difference image file according to the difference text file includes: on an original image file according to the first color attribute The color attribute marks the at least one difference point with a first color to generate the difference image file, wherein the original image file is associated with the first electronic circuit image file or the second electronic circuit image file. 如請求項4所述的電子線路圖比對方法,其中該原始圖檔包含具有一第二顏色屬性的至少一非文字差異處,且根據該差異文字檔產生該差異圖檔更包含:在該原始圖檔上根據該第二顏色屬性以一第二顏色標記該至少一差異點外的一非差異點以產生該差異圖檔,且該非差異點對應於該至少一非文字差異處。 The method for comparing electronic circuit diagrams as described in claim 4, wherein the original image file includes at least one non-text difference with a second color attribute, and generating the difference image file based on the difference text file further includes: in the A non-difference point other than the at least one difference point is marked with a second color according to the second color attribute on the original image file to generate the difference image file, and the non-difference point corresponds to the at least one non-text difference. 如請求項1所述的電子線路圖比對方法,其中該第一線路資料及該第二線路資料屬於一種Nets file,且該第一元件資料及該第二元件資料屬於一種Components file。 The electronic circuit diagram comparison method as described in Claim 1, wherein the first circuit data and the second circuit data belong to a Nets file, and the first component data and the second component data belong to a Components file. 如請求項1所述的電子線路圖比對方法,其中該第一電子線路圖檔及該第二電子線路圖檔各包含大於四層的電路板層數的多張圖面。 The method for comparing electronic circuit diagrams as described in Claim 1, wherein the first electronic circuit diagram file and the second electronic circuit diagram file each include a plurality of drawings with a circuit board layer number greater than four. 一種非暫態電腦可讀取媒體,儲存一電腦程序,該電腦程序經一處理器執行後該處理器執行如請求項1~7中的任一者所述的電子線路圖比對方法。A non-transitory computer-readable medium storing a computer program. After the computer program is executed by a processor, the processor executes the electronic circuit diagram comparison method described in any one of claims 1-7.
TW111122800A 2022-06-20 2022-06-20 Electrical circuit diagram comparison method and non-tansitory computer readable medium TWI806668B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW111122800A TWI806668B (en) 2022-06-20 2022-06-20 Electrical circuit diagram comparison method and non-tansitory computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW111122800A TWI806668B (en) 2022-06-20 2022-06-20 Electrical circuit diagram comparison method and non-tansitory computer readable medium

Publications (2)

Publication Number Publication Date
TWI806668B true TWI806668B (en) 2023-06-21
TW202401288A TW202401288A (en) 2024-01-01

Family

ID=87803146

Family Applications (1)

Application Number Title Priority Date Filing Date
TW111122800A TWI806668B (en) 2022-06-20 2022-06-20 Electrical circuit diagram comparison method and non-tansitory computer readable medium

Country Status (1)

Country Link
TW (1) TWI806668B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201214293A (en) * 2010-05-31 2012-04-01 Silverbrook Res Pty Ltd Hybrid system for identifying printed page
TW201227344A (en) * 2010-12-20 2012-07-01 King Yuan Electronics Co Ltd Comparison device and method for comparing test pattern files of a wafer tester
CN109508676A (en) * 2018-11-14 2019-03-22 武汉万安智能技术有限公司 A kind of Machine Vision Detection algorithm of logical circuitry information extraction
CN110110454A (en) * 2019-05-13 2019-08-09 李晓明 A kind of circuit diagram automated conversion system and its method
CN111814495A (en) * 2020-07-10 2020-10-23 兰州大学 SVG-based circuit diagram to Braille conversion method and system
US20210174077A1 (en) * 2019-12-06 2021-06-10 Aveva Software, Llc Autonomous intelligent decision support system and server
CN112989730A (en) * 2021-03-08 2021-06-18 深圳同兴达科技股份有限公司 Comparison method of FPC (flexible printed circuit) drawings

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201214293A (en) * 2010-05-31 2012-04-01 Silverbrook Res Pty Ltd Hybrid system for identifying printed page
TW201227344A (en) * 2010-12-20 2012-07-01 King Yuan Electronics Co Ltd Comparison device and method for comparing test pattern files of a wafer tester
CN109508676A (en) * 2018-11-14 2019-03-22 武汉万安智能技术有限公司 A kind of Machine Vision Detection algorithm of logical circuitry information extraction
CN110110454A (en) * 2019-05-13 2019-08-09 李晓明 A kind of circuit diagram automated conversion system and its method
US20210174077A1 (en) * 2019-12-06 2021-06-10 Aveva Software, Llc Autonomous intelligent decision support system and server
CN111814495A (en) * 2020-07-10 2020-10-23 兰州大学 SVG-based circuit diagram to Braille conversion method and system
CN112989730A (en) * 2021-03-08 2021-06-18 深圳同兴达科技股份有限公司 Comparison method of FPC (flexible printed circuit) drawings

Also Published As

Publication number Publication date
TW202401288A (en) 2024-01-01

Similar Documents

Publication Publication Date Title
US6289254B1 (en) Parts selection apparatus and parts selection system with CAD function
JP2019532377A (en) Printed circuit board metal mask manufacturing method and printed circuit board metal mask manufacturing system
CA2812386C (en) Method and apparatus for analyzing a document
KR102177550B1 (en) Method of automatically recognizing and classifying information of design in imaged PID drawings
JP5450443B2 (en) Computer-implemented method, computer program product, and apparatus for supporting failure mode effects analysis of a system having multiple components
CN107025362A (en) A kind of method for verifying schematic diagram and PCB creation data uniformity
US20060123381A1 (en) Data generating system, patterning data generating apparatus, method of generating patterning data and storage medium carrying patterning data
US11645438B2 (en) Generating a template-driven schematic from a netlist of electronic circuits
US10997332B1 (en) System and method for computing electrical over-stress of devices associated with an electronic design
US8645902B1 (en) Methods, systems, and computer program products for implementing interactive coloring of physical design components in a physical electronic design with multiple-patterning techniques awareness
TWI806668B (en) Electrical circuit diagram comparison method and non-tansitory computer readable medium
JP6268435B2 (en) Database reconstruction method, database reconstruction program, and database reconstruction device
CN108140059B (en) Visualization of analytical process parameters for layout-based inspection
CN111090969A (en) EDA tool-based flat panel display layout generation method
US20080172640A1 (en) Method for comparing two designs of electronic circuits
TW201337612A (en) System and method for setting electrical rules of circuit board
US20040143807A1 (en) Method of resolving mismatched graphical symbols in computer-aided integrated circuit design
CN114724170A (en) BOM generation method and device, electronic equipment and storage medium
CN117272972A (en) Electronic circuit diagram comparison method and non-transitory computer readable medium
CN114385167A (en) Front-end page generation method, device, equipment and medium
US20080127022A1 (en) Method for managing net data of a layout
JP2016057534A (en) Compression support method, compression support program, and compression support device
CN113836863B (en) Method and system for checking weight of Logisim circuit diagram
JP2010003195A (en) Ip model generation device, ip model generation method, and ip model generation program
CN113495700A (en) Batch printing method, system and equipment of drawings and computer readable storage medium