Summary of the invention
In view of above content, be necessary to provide a kind of figure document contractancy and standby system, the speed of depositing and reading of figure shelves is promoted significantly, guarantee the security of figure shelves simultaneously.
In addition, also be necessary to provide a kind of figure shelves capacity reducing backup method, the speed of depositing and reading of figure shelves is promoted significantly, guarantee the security of figure shelves simultaneously.
A kind of figure document contractancy and standby system, comprise figure file database, backup database and the main frame that mold designing system is installed that links to each other with backup database when database with this figure, this main frame comprises: extraction module is used for needing the title of backup figure shelves and the figure file database of these figure shelves from the mold designing system extraction; Removing module is used for deleting the drawing environment parameter of this figure file database, obtains new figure file database; Acquisition module is used for obtaining from this new figure file database the graphical information of all figures these figure shelves, obtains the attribute information of all figures in these figure shelves from this new figure file database, and obtains graphical association information from described attribute information; Module is set, is used to obtain the address of backup database, this backup database and this mold designing system are connected, be used for setting up a tables of data at this backup database, the name of this tables of data is called the title of these figure shelves; And preserve module, the graphical information, attribute information and the graphical association information that are used for being obtained are saved to this tables of data.
A kind of figure shelves capacity reducing backup method, this method comprise the steps: that extraction needs the title of backup figure shelves and the figure file database of these figure shelves from mold designing system; Delete the drawing environment parameter in this figure file database, obtain new figure file database; From this new figure file database, obtain the graphical information of all figures in these figure shelves; From this new figure file database, obtain the attribute information of all figures in these figure shelves; From the attribute information of described figure, obtain graphical association information; Obtain the address of backup database, backup database and this mold designing system are connected; Set up a tables of data in this backup database, the name of this tables of data is called the title of these figure shelves; And graphical information, attribute information and the graphical association information of being obtained is saved in this tables of data.
Compared to prior art, described figure document contractancy and standby system and method are deleted drawing environment from figure file database, the backup content uses external data base to preserve, and the figure shelves are deposited and the speed read promotes significantly, greatly save design person's time, also guaranteed the security of figure shelves simultaneously.
Embodiment
As shown in Figure 1, be the hardware structure figure of figure document contractancy and standby system of the present invention preferred embodiment.This system comprises main frame 1, backup database 2, figure file database 3 and client 4.Wherein, main frame 1 is used for deleting the drawing environment parameter of figure file database 3 and with the associative operation of required figure shelves information back-up to backup database 2, it can be computing machine, the Mac PC of Apple company, personal computer, the webserver of IBM, can also be any computing machine that other is suitable for.Figure file database 3 links to each other with this main frame 1, is used for storing the information of all figure shelves of mold designing system.Backup database 2 links to each other with this main frame 1, and this backup database 2 is the external data base of mold designing system, is used for backing up the figure shelves information of figure file database 2.Client 4 links to each other with this main frame 1, is used for providing an interactive interface to the user, is convenient to user's input information to main frame 1.
As shown in Figure 2, be the functional block diagram of computing machine 1 among Fig. 1.Described computing machine 1 comprises extraction module 10, removing module 12, acquisition module 14, module 16 is set and preserves module 18.
Extraction module 10 is used for obtaining the figure file database 3 that the title that needs backup figure shelves and this need backup figure shelves from mold designing system.This figure file database 3 is used for preserving the figure shelves information of die design process, and this figure shelves information comprises: the attribute information of drawing environment parameter, graphical information and figure correspondence.
Removing module 12 is used for deleting the drawing environment parameter of this figure file database 3, obtains new figure file database.Described drawing environment parameter has taken big quantity space in figure file database, it comprises: figure layer information, font information, colouring information, line style information and mould global variable.This new figure file database is compared to the figure file database 3 before the deletion drawing environment parameter, and new chart file data storage capacity significantly reduces, and the speed of depositing and reading of figure shelves is promoted significantly.
Acquisition module 14 is used for obtaining from this new figure file database the graphical information of all figures these figure shelves.Described graphical information comprises: linear (for example: dotted line, solid line) of figure, linear color, linear width, the figure layer of figure and the type (for example: circle, circular arc, straight line) of figure.
Described acquisition module 14 also is used for obtaining from this new figure file database the attribute information of all figures these figure shelves.The attribute information of described figure comprises: the note and the corresponding graphical information of material, processing mode, machining precision, correspondence.
Described acquisition module 14 also is used for obtaining graphical association information from the attribute information of described figure.In attribute information,, then judge to exist and the corresponding graphical information of described attribute information if on the field of corresponding graphical information, shown the graphical information sequence number; In attribute information,, then judge not exist and the corresponding graphical information of described attribute information if on the field of corresponding graphical information, be shown as sky.This graphical information sequence number can represent with arabic numeral, for example: 1,2,3.If show 2 on the corresponding graphical information field in attribute information, then expression has and the corresponding graphical information of this attribute information, and this corresponding graphical information is 2; If be shown as sky on the corresponding graphical information field in attribute information, then expression does not have and the corresponding graphical information of this attribute information.
Module 16 is set, is used for this backup database 2 and mold designing system are connected.This backup database 2 is the external data base of mold designing system, utilize this backup database 2 to come data in the storage map profile database 3, not only save the shared space of mold designing system greatly, utilized database to come the control chart shelves to guarantee the security of figure shelves more simultaneously.
The described module 16 that is provided with also is used for setting up a tables of data at this backup database 2, and the name of this tables of data is called the title of these figure shelves that need back up.This tables of data can be the form of Excel.
Preserve module 18, the graphical information, attribute information and the graphical association information that are used for being obtained are saved to this tables of data.
After graphical information, attribute information and the graphical association information that described removing module 12 also is used for being obtained is saved to this tables of data, delete all data in the new figure file database.
As shown in Figure 3, be the operation process chart of figure shelves capacity reducing backup method of the present invention preferred embodiment.At first, step S10, extraction module 10 extract from mold designing system needs backup figure grade the title and the figure file database 3 of these figure shelves.
Step S12, the drawing environment parameter in removing module 12 these figure file database 3 of deletion obtains new figure file database.
Step S14, acquisition module 14 obtain the graphical information of all figures in these figure shelves from this new figure file database.
Step S16, acquisition module 14 obtain the attribute information of all figures in these figure shelves from this new figure file database.
Step S18, acquisition module 14 obtain graphical association information from the attribute information of described figure.
Step S20 is provided with module 16 backup database 2 and mold designing system is connected.
Step S22 is provided with module 16 and sets up a tables of data in this backup database 2, and the name of this tables of data is called the title of these figure shelves.
Step S24 preserves module 18 graphical information, attribute information and the graphical association information of being obtained is saved in this tables of data.
Step S26, graphical information, attribute information and the graphical association information of being obtained is saved to this tables of data after, all data in removing module 12 these new figure file database of deletion.