TWI396985B - System and method for reducing space of a drawing document and backed up - Google Patents
System and method for reducing space of a drawing document and backed up Download PDFInfo
- Publication number
- TWI396985B TWI396985B TW96137510A TW96137510A TWI396985B TW I396985 B TWI396985 B TW I396985B TW 96137510 A TW96137510 A TW 96137510A TW 96137510 A TW96137510 A TW 96137510A TW I396985 B TWI396985 B TW I396985B
- Authority
- TW
- Taiwan
- Prior art keywords
- graphic
- database
- information
- file
- image file
- Prior art date
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Processing Or Creating Images (AREA)
Description
本發明涉及一種圖檔縮容備份系統及方法。The invention relates to a file shrinkage backup system and method.
在模具設計中,圖檔存和讀的速度一直係制約模具設計效率的關鍵因素之一。通常模具設計的時間在2天到5天之間,在整個設計過程中,各個時間點都要進行圖檔的備份。一套模具設計完成後,用來備份設計圖檔的硬碟空間往往係圖檔本身大小的20倍左右,不但佔用硬碟空間影響系統速度,同時影響模具圖檔的管控。另外,以一套小型模具設計圖檔來看,圖檔大小在15M到40M之間,讀取時間在35秒到60秒之間,讀取時間長並且讀取時容易出現錯誤導致圖檔損壞。In the mold design, the speed of image storage and reading has always been one of the key factors that restrict the efficiency of mold design. Usually the mold design time is between 2 days and 5 days. During the entire design process, the image files are backed up at various time points. After a set of mold design is completed, the hard disk space used to back up the design files is often about 20 times the size of the image file itself, which not only occupies the hard disk space to affect the system speed, but also affects the control of the mold image file. In addition, with a small set of mold design files, the file size is between 15M and 40M, the reading time is between 35 seconds and 60 seconds, the reading time is long and the reading is prone to errors and the image file is damaged. .
鑒於以上內容,有必要提供一種圖檔縮容備份系統,能夠使圖檔的存和讀的速度大幅度提升,同時保證圖檔的安全性。In view of the above, it is necessary to provide a file shrinkage backup system, which can greatly increase the speed of saving and reading of the image file, and at the same time ensure the security of the image file.
此外,還有必要提供一種圖檔縮容備份方法,能夠使圖檔的存和讀的速度大幅度提升,同時保證圖檔的安全性。In addition, it is also necessary to provide a method for reducing the size of the image file, which can greatly increase the speed of storing and reading the image file, and at the same time ensure the security of the image file.
一種圖檔縮容備份系統,包括圖檔資料庫、備份資料庫及與該圖當資料庫和備份資料庫相連的安裝有模具設計系統的電腦主機,該電腦主機包括:提取模組,用於從模具設計系統中提取需備份圖檔的名稱和該圖檔的圖檔資料庫;刪除模組,用於刪除該圖檔資料庫中的繪圖環境參數,得到新的圖檔資料庫;獲取模組,用於從該新的圖檔資料庫中獲取該圖檔中所有圖形的圖形資訊,從該新的圖檔資料庫中獲取該圖檔中所有圖形的屬性資訊,及從所述屬性資訊中獲取圖形關聯資訊;設置模組,用於獲取備份資料庫的位址,將該備份資料庫與該模具設計系統建立連接,用於在該備份資料庫中建立一個資料表,該資料表的名稱為該圖檔的名稱;及儲存模組,用於將所獲取的圖形資訊、屬性資訊及圖形關聯資訊儲存至該資料表中。A file shrinkage backup system includes a map file database, a backup data base, and a computer host with a mold design system connected to the data base and the backup data base, the computer host includes: an extraction module, Extracting the name of the image file to be backed up from the mold design system and the image file library of the image file; deleting the module, deleting the drawing environment parameter in the image file database, obtaining a new image file database; a group, configured to obtain graphic information of all graphics in the image file from the new image database, obtain attribute information of all graphics in the image file from the new image database, and obtain information from the attribute Obtaining graphics association information; setting a module, configured to obtain an address of the backup database, and establishing a connection between the backup database and the mold design system, configured to establish a data table in the backup database, the data table The name is the name of the image file; and the storage module is configured to store the acquired graphic information, attribute information and graphic related information into the data table.
一種圖檔縮容備份方法,該方法包括如下步驟:從模具設計系統中提取需備份圖檔的名稱和該圖檔的圖檔資料庫;刪除該圖檔資料庫中的繪圖環境參數,得到新的圖檔資料庫;從該新的圖檔資料庫中獲取該圖檔中所有圖形的圖形資訊;從該新的圖檔資料庫中獲取該圖檔中所有圖形的屬性資訊;從所述圖形的屬性資訊中獲取圖形關聯資訊;獲取備份資料庫的位址,將備份資料庫與該模具設計系統建立連接;在該備份資料庫中建立一個資料表,該資料表的名稱為該圖檔的名稱;及將所獲取的圖形資訊、屬性資訊及圖形關聯資訊儲存至該資料表中。A method for shrinking a backup file, the method comprising the steps of: extracting a name of a file to be backed up and a file database of the image file from the mold design system; deleting a drawing environment parameter in the image file database to obtain a new a graphic file database; obtaining graphic information of all graphics in the graphic file from the new graphic file database; obtaining attribute information of all graphics in the graphic file from the new graphic file database; from the graphic Obtaining graphic association information in the attribute information; obtaining the address of the backup database, establishing a connection between the backup database and the mold design system; establishing a data table in the backup database, the name of the data table is the image file Name; and store the acquired graphic information, attribute information and graphic related information into the data table.
相較於習知技術,所述圖檔縮容備份系統及方法將繪圖環境從圖檔資料庫中刪除,備份內容使用外部資料庫來儲存,這樣使圖檔存和讀的速度大幅度提升,大大節約設計者時間,同時也保證了圖檔的安全性。Compared with the prior art, the image file shrinkage backup system and method delete the drawing environment from the image file database, and the backup content is stored by using an external data library, so that the speed of saving and reading the image file is greatly improved. Significantly saves designer time and also ensures the security of the image file.
如圖1所示,係本發明圖檔縮容備份系統較佳實施例的硬體架構圖。該系統包括電腦主機1、備份資料庫2、圖檔資料庫3及用戶端4。其中,電腦主機1用於刪除圖檔資料庫3中的繪圖環境參數及將所需圖檔資訊備份至備份資料庫2的相關操作,其可以係IBM的電腦、Apple公司的Mac PC、個人電腦、網路服務器,還可以係任意其他適用的電腦。圖檔資料庫3與該電腦主機1相連,用於儲存模具設計系統中所有圖檔的資訊。備份資料庫2與該電腦主機1相連,該備份資料庫2為模具設計系統的外部資料庫,用於備份圖檔資料庫2中的圖檔資訊。用戶端4與該電腦主機1相連,用於給用戶提供一個互動式介面,便於用戶輸入資訊至電腦主機1。As shown in FIG. 1, it is a hardware architecture diagram of a preferred embodiment of the file reduction backup system of the present invention. The system includes a computer host 1, a backup database 2, a map database 3, and a client terminal 4. The computer host 1 is used for deleting the drawing environment parameters in the image database 3 and backing up the required image information to the backup database 2, which may be an IBM computer, an Apple Mac PC, or a personal computer. , network server, can also be any other suitable computer. The image file library 3 is connected to the computer host 1 for storing information of all the image files in the mold design system. The backup database 2 is connected to the computer host 1. The backup database 2 is an external database of the mold design system for backing up the image information in the image database 2. The client 4 is connected to the host computer 1 for providing an interactive interface for the user to input information to the host computer 1.
如圖2所示,係圖1中電腦1的功能模組圖。所述電腦1包括提取模組10、刪除模組12、獲取模組14、設置模組16及儲存模組18。As shown in FIG. 2, it is a functional module diagram of the computer 1 in FIG. The computer 1 includes an extraction module 10, a deletion module 12, an acquisition module 14, a setting module 16, and a storage module 18.
提取模組10,用於從模具設計系統中獲取需備份圖檔的名稱和該需備份圖檔的圖檔資料庫3。該圖檔資料庫3用於儲存模具設計過程中的圖檔資訊,該圖檔資訊包括:繪圖環境參數、圖形資訊及圖形對應的屬性資訊。The extraction module 10 is configured to obtain, from the mold design system, the name of the image to be backed up and the image database 3 of the image to be backed up. The image file database 3 is used for storing image file information in the mold design process, and the image file information includes: drawing environment parameters, graphic information, and attribute information corresponding to the graphic.
刪除模組12,用於刪除該圖檔資料庫3中的繪圖環境參數,得到新的圖檔資料庫。所述繪圖環境參數在圖檔資料庫中佔用了大量空間,其包括:圖層資訊、字體資訊、顏色資訊、線型資訊及模具總體變數。該新的圖檔資料庫相比較於刪除繪圖環境參數前的圖檔資料庫3,新的圖檔資料庫容量大大減少,使圖檔的存和讀的速度大幅度提升。The deletion module 12 is configured to delete the drawing environment parameter in the image database 3 to obtain a new image database. The drawing environment parameter occupies a large amount of space in the image database, and includes: layer information, font information, color information, line type information, and overall mold variables. The new image database is compared with the image database 3 before the deletion of the drawing environment parameter, and the capacity of the new image database is greatly reduced, so that the speed of reading and reading the image file is greatly improved.
獲取模組14,用於從該新的圖檔資料庫中獲取該圖檔中所有圖形的圖形資訊。所述圖形資訊包括:圖形的線形(例如:虛線,實線)、線形的顏色、線形的寬度、圖形的圖層及圖形的類型(例如:圓,圓弧,直線)。The obtaining module 14 is configured to obtain graphic information of all the graphics in the image file from the new image database. The graphic information includes: a linear shape of the graphic (for example, a dotted line, a solid line), a color of the line, a width of the line, a layer of the graphic, and a type of the graphic (for example, a circle, an arc, and a line).
所述獲取模組14還用於從該新的圖檔資料庫中獲取該圖檔中所有圖形的屬性資訊。所述圖形的屬性資訊包括:材料、加工方式、加工精度、對應的注解及相對應的圖形資訊。The obtaining module 14 is further configured to obtain attribute information of all the graphics in the image file from the new image database. The attribute information of the graphic includes: material, processing mode, processing precision, corresponding annotation and corresponding graphic information.
所述獲取模組14還用於從所述圖形的屬性資訊中獲取圖形關聯資訊。在屬性資訊中,若在相對應圖形資訊的欄位上顯示了圖形資訊序號,則判斷存在與所述屬性資訊相對應的圖形資訊;在屬性資訊中,若在相對應圖形資訊的欄位上顯示為空,則判斷不存在與所述屬性資訊相對應的圖形資訊。該圖形資訊序號可以用阿拉伯數字來表示,例如:1,2,3。若在屬性資訊中的相對應圖形資訊欄位上顯示2,則表示有與該屬性資訊相對應的圖形資訊,且該相對應的圖形資訊為2;若在屬性資訊中的相對應圖形資訊欄位上顯示為空,則表示沒有與該屬性資訊相對應的圖形資訊。The obtaining module 14 is further configured to obtain the graphic association information from the attribute information of the graphic. In the attribute information, if the graphic information serial number is displayed on the field corresponding to the graphic information, it is determined that there is graphic information corresponding to the attribute information; in the attribute information, if it is in the corresponding graphic information field If the display is empty, it is determined that there is no graphic information corresponding to the attribute information. The graphic information serial number can be represented by an Arabic numeral, for example: 1, 2, 3. If 2 is displayed on the corresponding graphic information field in the attribute information, it means that there is graphic information corresponding to the attribute information, and the corresponding graphic information is 2; if the corresponding graphic information column in the attribute information If the bit is empty, it means there is no graphic information corresponding to the attribute information.
設置模組16,用於將該備份資料庫2與模具設計系統建立連接。該備份資料庫2為模具設計系統的外部資料庫,利用該備份資料庫2來存儲圖檔資料庫3中的資料,不僅大大節省了模具設計系統所佔用的空間,同時利用資料庫來管理圖檔更加保證了圖檔的安全性。The setting module 16 is configured to establish a connection between the backup database 2 and the mold design system. The backup database 2 is an external database of the mold design system, and the backup data library 2 is used to store the data in the image database 3, which not only greatly saves the space occupied by the mold design system, but also uses the database to manage the map. The file further ensures the security of the image file.
所述設置模組16還用於在該備份資料庫2中建立一個資料表,該資料表的名稱為該需備份的圖檔的名稱。該資料表可以係Excel的格式。The setting module 16 is further configured to establish a data table in the backup database 2, the name of the data table is the name of the image file to be backed up. This data sheet can be in Excel format.
儲存模組18,用於將所獲取的圖形資訊、屬性資訊及圖形關聯資訊儲存至該資料表中。The storage module 18 is configured to store the acquired graphic information, attribute information, and graphic related information into the data table.
所述刪除模組12還用於將所獲取的圖形資訊、屬性資訊及圖形關聯資訊儲存至該資料表後,刪除新的圖檔資料庫中的所有資料。The deleting module 12 is further configured to save the acquired graphic information, attribute information, and graphic related information to the data table, and delete all the materials in the new image database.
如圖3所示,係本發明圖檔縮容備份方法較佳實施例的作業流程圖。首先,步驟S10,提取模組10從模具設計系統中提取需備份圖檔的名稱和該圖檔的圖檔資料庫3。As shown in FIG. 3, it is a flowchart of a preferred embodiment of the method for backing up files of the present invention. First, in step S10, the extraction module 10 extracts the name of the image to be backed up and the image database 3 of the image file from the mold design system.
步驟S12,刪除模組12刪除該圖檔資料庫3中的繪圖環境參數,得到新的圖檔資料庫。In step S12, the deletion module 12 deletes the drawing environment parameters in the image database 3, and obtains a new image database.
步驟S14,獲取模組14從該新的圖檔資料庫中獲取該圖檔中所有圖形的圖形資訊。In step S14, the obtaining module 14 acquires graphic information of all the graphics in the image file from the new image database.
步驟S16,獲取模組14從該新的圖檔資料庫中獲取該圖檔中所有圖形的屬性資訊。In step S16, the obtaining module 14 obtains attribute information of all the graphics in the image file from the new image database.
步驟S18,獲取模組14從所述圖形的屬性資訊中獲取圖形關聯資訊。In step S18, the obtaining module 14 obtains graphic association information from the attribute information of the graphic.
步驟S20,設置模組16將備份資料庫2與模具設計系統建立連接。In step S20, the setting module 16 establishes a connection between the backup database 2 and the mold design system.
步驟S22,設置模組16在該備份資料庫2中建立一個資料表,該資料表的名稱為該圖檔的名稱。In step S22, the setting module 16 creates a data table in the backup database 2, and the name of the data table is the name of the image file.
步驟S24,儲存模組18將所獲取的圖形資訊、屬性資訊及圖形關聯資訊儲存至該資料表中。In step S24, the storage module 18 stores the acquired graphic information, attribute information and graphic related information into the data table.
步驟S26,將所獲取的圖形資訊、屬性資訊及圖形關聯資訊儲存至該資料表後,刪除模組12刪除該新的圖檔資料庫中的所有資料。Step S26: After the acquired graphic information, attribute information and graphic related information are stored in the data table, the deleting module 12 deletes all the data in the new image database.
電腦主機...1Computer host. . . 1
備份資料庫...2Backup database. . . 2
圖檔資料庫...3Graphic file database. . . 3
用戶端...4user terminal. . . 4
提取模組...10Extraction module. . . 10
刪除模組...12Delete the module. . . 12
獲取模組...14Get the module. . . 14
設置模組...16Set the module. . . 16
儲存模組...18Storage module. . . 18
從模具設計系統中獲取需備份圖檔的名稱和該圖檔的圖檔資料庫...S10Obtain the name of the image to be backed up and the image database of the image file from the mold design system. . . S10
刪除該圖檔資料庫中的繪圖環境參數,得到新的圖檔資料庫...S12Delete the drawing environment parameters in the image database to get a new image database. . . S12
從該新的圖檔資料庫中獲取該圖檔中所有圖形的圖形資訊...S14Obtain the graphic information of all the graphics in the image file from the new image database. . . S14
從該新的圖檔資料庫中獲取該圖檔中所有圖形的屬性資訊...S16Obtain the attribute information of all the graphics in the image file from the new image database. . . S16
從所述圖形的屬性資訊中獲取圖形關聯資訊...S18Obtaining graphic association information from attribute information of the graphic. . . S18
將備份資料庫與模具設計系統建立連接...S20Connect the backup database to the mold design system. . . S20
在該備份資料庫中建立一個資料表,該資料表的名稱為該備份圖檔的名稱...S22A data table is created in the backup database, and the name of the data table is the name of the backup image file. . . S22
將所獲取的圖形資訊、屬性資訊及圖形關聯資訊儲存至該資料表中...S24The acquired graphic information, attribute information and graphic related information are stored in the data table. . . S24
刪除新的圖檔資料庫中的資料...S26Delete the data in the new image library. . . S26
圖1係本發明圖檔縮容備份系統較佳實施例的硬體架構圖。1 is a hardware architecture diagram of a preferred embodiment of a file reduction backup system of the present invention.
圖2係圖1中電腦的功能模組圖。Figure 2 is a functional block diagram of the computer of Figure 1.
圖3係本發明圖檔縮容備份方法較佳實施例的作業流程圖。FIG. 3 is a flow chart of the operation of the preferred embodiment of the image file reduction backup method of the present invention.
從模具設計系統中獲取需備份圖檔的名稱和該圖檔的圖檔資料庫...S10Obtain the name of the image to be backed up and the image database of the image file from the mold design system. . . S10
刪除該圖檔資料庫中的繪圖環境參數,得到新的圖檔資料庫...S12Delete the drawing environment parameters in the image database to get a new image database. . . S12
從該新的圖檔資料庫中獲取該圖檔中所有圖形的圖形資訊...S14Obtain the graphic information of all the graphics in the image file from the new image database. . . S14
從該新的圖檔資料庫中獲取該圖檔中所有圖形的屬性資訊...S16Obtain the attribute information of all the graphics in the image file from the new image database. . . S16
從所述圖形的屬性資訊中獲取圖形關聯資訊...S18Obtaining graphic association information from attribute information of the graphic. . . S18
將備份資料庫與模具設計系統建立連接...S20Connect the backup database to the mold design system. . . S20
在該備份資料庫中建立一個資料表,該資料表的名稱為該備份圖檔的名稱...S22A data table is created in the backup database, and the name of the data table is the name of the backup image file. . . S22
將所獲取的圖形資訊、屬性資訊及圖形關聯資訊儲存至該資料表中...S24The acquired graphic information, attribute information and graphic related information are stored in the data table. . . S24
刪除新的圖檔資料庫中的資料...S26Delete the data in the new image library. . . S26
Claims (4)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW96137510A TWI396985B (en) | 2007-10-05 | 2007-10-05 | System and method for reducing space of a drawing document and backed up |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW96137510A TWI396985B (en) | 2007-10-05 | 2007-10-05 | System and method for reducing space of a drawing document and backed up |
Publications (2)
Publication Number | Publication Date |
---|---|
TW200917064A TW200917064A (en) | 2009-04-16 |
TWI396985B true TWI396985B (en) | 2013-05-21 |
Family
ID=44726272
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW96137510A TWI396985B (en) | 2007-10-05 | 2007-10-05 | System and method for reducing space of a drawing document and backed up |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI396985B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040192260A1 (en) * | 2003-03-31 | 2004-09-30 | Seiko Epson Corporation | Data backup system and data backup method, wearable computer, mail transmission system, image-information transmission system, and data backup program |
TW200530872A (en) * | 2004-03-12 | 2005-09-16 | Hon Hai Prec Ind Co Ltd | A mould designing system and method |
TW200732994A (en) * | 2006-02-24 | 2007-09-01 | Hong Chi Hsiu | Method and apparatus for image mail presentation on mobile device |
US20070226266A1 (en) * | 2004-06-04 | 2007-09-27 | Chang-Ju Lee | Apparatus and Method for Protecting System Data on Computer Hard-Disk |
-
2007
- 2007-10-05 TW TW96137510A patent/TWI396985B/en not_active IP Right Cessation
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040192260A1 (en) * | 2003-03-31 | 2004-09-30 | Seiko Epson Corporation | Data backup system and data backup method, wearable computer, mail transmission system, image-information transmission system, and data backup program |
TW200530872A (en) * | 2004-03-12 | 2005-09-16 | Hon Hai Prec Ind Co Ltd | A mould designing system and method |
US20070226266A1 (en) * | 2004-06-04 | 2007-09-27 | Chang-Ju Lee | Apparatus and Method for Protecting System Data on Computer Hard-Disk |
TW200732994A (en) * | 2006-02-24 | 2007-09-01 | Hong Chi Hsiu | Method and apparatus for image mail presentation on mobile device |
Also Published As
Publication number | Publication date |
---|---|
TW200917064A (en) | 2009-04-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5504722B2 (en) | Information processing apparatus and computer program | |
US20080229186A1 (en) | Persisting digital ink annotations as image metadata | |
KR20150087405A (en) | Providing note based annotation of content in e-reader | |
CN111159594A (en) | Information processing method, information processing device and terminal equipment | |
CN103049491A (en) | Method and device for managing picture file | |
US10339204B2 (en) | Converting electronic documents having visible objects | |
CN116579295B (en) | Method for dynamically inserting pages, moving bits and hiding and displaying multi-format file subscription | |
US9111398B2 (en) | Method and system to perform dynamic layout of photographs | |
CN102073554B (en) | Method and device for recovering files closed abnormally | |
US9063949B2 (en) | Inferring a sequence of editing operations to facilitate merging versions of a shared document | |
US7945541B1 (en) | Version set of related objects | |
TWI396985B (en) | System and method for reducing space of a drawing document and backed up | |
KR102053079B1 (en) | Electronic document editing apparatus capable of displaying caption-based reference objects and operating method thereof | |
JP2002116946A (en) | Multimedia data storage method, device and storage medium | |
CN113378527A (en) | PDF document editing method and device, storage medium and electronic equipment | |
JP6353261B2 (en) | Information processing apparatus, control method, and program | |
JP2008059136A (en) | Leaking personal information retrieval system, leaking personal information retrieval method, leaking personal information retrieval device and program | |
KR101758098B1 (en) | Electronic terminal apparatus for copying to keep the shape of the character in the pdf document and method for copying to keep the shape of the character in the pdf document of the electronic terminal apparatus | |
KR20210060808A (en) | Document editing device to check whether the font applied to the document is a supported font and operating method thereof | |
JP2006163732A (en) | Data display method, program for displaying data, recording medium, and document management device | |
CN101393572B (en) | Chart and document contractancy and standby system and method | |
JP2009157470A (en) | Electronic document processor and program | |
EP4432235A1 (en) | Systems and methods for identifying and/or transferring decorative design elements | |
CN106796446B (en) | Workspace metadata management | |
CN118535535A (en) | File management method, apparatus, computer device, storage medium, and program product |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
MM4A | Annulment or lapse of patent due to non-payment of fees |