CN110232047B - Time line management system, method, computer readable storage medium and computer terminal for CAD file - Google Patents

Time line management system, method, computer readable storage medium and computer terminal for CAD file Download PDF

Info

Publication number
CN110232047B
CN110232047B CN201910634339.XA CN201910634339A CN110232047B CN 110232047 B CN110232047 B CN 110232047B CN 201910634339 A CN201910634339 A CN 201910634339A CN 110232047 B CN110232047 B CN 110232047B
Authority
CN
China
Prior art keywords
data
cad
file
information
data summary
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201910634339.XA
Other languages
Chinese (zh)
Other versions
CN110232047A (en
Inventor
王伟
席辉
邓涛
袁传杰
梁江
陆翔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Gstarsoft Co ltd
Original Assignee
Suzhou Gstarsoft Co ltd
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 Suzhou Gstarsoft Co ltd filed Critical Suzhou Gstarsoft Co ltd
Publication of CN110232047A publication Critical patent/CN110232047A/en
Application granted granted Critical
Publication of CN110232047B publication Critical patent/CN110232047B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]

Abstract

The invention relates to a time line management system of a CAD file, which is characterized by comprising the following steps: a first data summary file and an incremental database; the first data summary file comprises a first data item index table and first data summary information; the incremental database stores first data detailed information corresponding to the first data summary information; the first data item index table is used for searching the first data detail information corresponding to the first data summary information in the incremental database; and the data summary file is set to be associated with a first restore point. The invention adopts the mode of the data abstract file and the incremental database to manage the CAD file, can reduce the data transmission amount during file reduction by transmitting the incremental data, and can quickly and accurately reduce the CAD file by the information storage integrity of the data abstract file.

Description

Time line management system, method, computer readable storage medium and computer terminal for CAD file
Priority application
The present application claims priority of the chinese patent application 201810778814.6 "a method and system for timeline management of CAD graphic data" filed in 2018, 7, 16, which is incorporated by reference in its entirety.
Technical Field
The invention relates to the field of Computer Aided Design (CAD), in particular to a method and a system for managing a time line of CAD graphic data.
Background
In recent years, internet technologies, especially mobile internet technologies, are widely applied in the field of CAD design, and the original CAD whole image transmission technology has high overhead and low efficiency, and is not beneficial to collaborative design and sharing results in the internet and mobile fields. In recent years, a source code Version Control System (VCS) represented by Subversion (SVN) and Git is widely applied to the field of software collaborative development, but such software mainly aims at a small-sized plain text file, and CAD graphic data is generally binary, and has a complex format and a large size.
Version control systems, such as Subversion, store information in the form of a file change list. Such systems view the information they hold as a set of elementary files and the differences that each file accumulates over time. When a version (i.e., restore point) is created, differences from the previous version are generated and recorded. When the historical version is traced back, the difference on each restoration point needs to be combined in sequence from the basic file, and finally the file version required by the user is restored. The amount of data for such systems is relatively small due to the differences stored. However, because the difference needs to be analyzed and processed, the algorithm is complex, the amount of calculation is large, and errors are easy to generate.
The version control system represented by Git stores information in a full-text snapshot manner. Such systems view data as a set of snapshots of a small file system. Each time a restore point is established, an update is committed, or the state of the project is saved in it, it essentially takes a snapshot of all the files at that time and saves an index of this snapshot. For efficiency, if a file has not been modified, they do not restore the file, but rather only keep a link to the previously stored file, whereas the entire file is restored even if the modifications are small. The amount of data for such systems is relatively large because full-text snapshots are stored. But because the snapshot is complete and does not need to process the difference, the algorithm is simpler and has higher performance and reliability. But to transfer this snapshot, the I/O overhead is much larger than the difference would be transferred alone.
CAD design projects are characterized by three: firstly, the system has more specialties and more graphic files, and the reference relationship among the graphic files is complicated; secondly, the format of the drawing file is complex, the drawing file is mostly binary data, and the data randomness is high; thirdly, the size of the drawing file is large, the size is as small as several MB, and the size is as large as several hundred MB.
When storing and transmitting the CAD drawing, the conventional CAD drawing management system (management software, a network disk, a cloud storage system, etc.) either does not have a timeline function, or archives and generates a version (similar to a Git system, and also stores information in a full-text snapshot manner) with the whole CAD file as a unit. When the system processes design change, even if the content of each drawing change is very small, the complete drawing file is stored and transmitted, the data overhead is large, and the flow consumption is high.
Moreover, because many graphic files of the CAD design project are available, and the size of each graphic file is larger, if a full-text snapshot type data storage manner is adopted, the number of files and the number of restore points increase continuously along with the transition of a time line, the number of snapshots is accumulated continuously, and the data overhead required for accessing and transmitting the snapshots is considerable.
In addition, since the graphic file of the CAD design project is in a complicated binary format and has a large size, if a difference accumulation storage method represented by Subversion is adopted, an algorithm for collecting and processing difference data is inevitably complicated, calculation is slow, and errors are easily caused. Due to the fact that data randomness is high, even if the data is slightly modified, a large amount of difference may exist between the file data of the front version and the file data of the back version, and therefore compared with a full-text snapshot, the storage advantage of a difference accumulation mode may not be obvious.
Disclosure of Invention
The invention aims to provide a novel CAD file management mode which is suitable for a CAD collaborative design system, and the technical problems of file storage, transmission and management in the existing CAD system are overcome or relieved to a certain extent.
A timeline management system for CAD files, comprising: a first data summary file and an incremental database; the first data summary file comprises a first data item index table and first data summary information; the incremental database stores first data detailed information corresponding to the first data summary information; the first data item index table is used for searching the first data detail information corresponding to the first data summary information in the incremental database; and the data summary file is set to be associated with a first restore point.
Further, the present invention also includes: a time axis on which the first restore point is set according to a time at which it is created.
Further, a plurality of restore points are included on the timeline, and the plurality of restore points are arranged in order according to the creation time thereof.
Furthermore, the invention also comprises a second data summary file which comprises a second data item index table and second data summary information; the second data summary information is stored in the incremental database relative to the incremental data detail information of the first data summary information; the incremental database comprises a second data item index table used for searching second data detail information corresponding to the second data summary information in the incremental database; and the second data summary file is set to be associated with a second restore point.
Further, the first restoring point and the second restoring point are sequentially arranged on the time axis according to the created time.
Further, the second data detail includes (i) the incremental data detail, and (ii) some or all of the first data detail.
Further, the first data summary file is saved in a full-text snapshot mode.
Further, the first data summary file is generated based on one or more CAD drawings, and the one or more CAD drawings all relate to the same engineering project.
Further, the first data summary information includes one or more of author information, creation time, modification time, and/or thumbnail summary information.
Further, the first data detail information is a metadata item (metadata).
Further, the first data detail information comprises one or more CAD elements and element attributes corresponding to the one or more CAD elements, wherein the element attributes comprise insertion positions, stretching size ratios, start and end point information and/or rendering information of the elements in the CAD drawing.
The invention also discloses a user terminal of the CAD system, which is characterized by comprising the following components: the restoration point acquisition module is used for acquiring a first restoration point from the timeline storage device; the restoring point analyzing module is connected with the restoring point acquiring module and used for analyzing a first data summary file associated with the first restoring point, wherein the first data summary file comprises a first data item index table and first data summary information; and the file restoration module is connected with the restoration point analysis module, acquires the first data item index table and the first data summary information, acquires first data detailed information corresponding to the first data summary information from an incremental database of the timeline storage device, and restores the first data detailed information to generate a first file.
Further, the present invention also includes: the restoring point acquiring module acquires the first restoring point on a time axis in the time line storage device.
Further, the restoring point acquiring module also acquires a second restoring point from the timeline storage device; the restoring point analysis module acquires a second data summary file through the second restoring point, wherein the second data summary file comprises a second data item index table and second data summary information; and the file restoration module acquires second data detailed information corresponding to the second data summary information from an incremental database of the timeline storage device based on the second data item index table and the second data summary information, and restores the second data detailed information to generate a second file.
Further, the second data detail information includes: (ii) incremental data detail of said second data summary information relative to said first data summary information; and (ii) some or all of the first data detail information.
Further, the first data summary file is saved in a full-text snapshot mode.
Further, the first data summary file comprises one or more CAD drawings, and all the CAD drawings relate to the same engineering project.
Further, the first data summary information includes one or more of author information, creation time, modification time, and/or thumbnail summary information.
Further, the first data detail information is a metadata item (metadata).
Further, the first data detail information includes one or more CAD elements, and element attributes corresponding to the one or more CAD elements, where the element attributes include insertion positions, stretching size ratios, start and end point information, and/or rendering information of the elements in the CAD drawing generated by restoring.
The invention also discloses a time line management method of the CAD file, which is characterized by comprising the following steps: s101, acquiring one or more first CAD files; s102, creating a first data summary file based on the one or more first CAD files, wherein the first data summary file comprises a first data item index table and first data summary information of the one or more CAD files; s103, extracting first data detailed information corresponding to the first data summary information from the one or more first CAD files, storing the first data detailed information in an incremental database, and recording a first storage path of the first data detailed information in the first data item index table; s104, creating a first restoring point, and associating the first data summary file with the first restoring point.
Further, the invention also comprises the following steps: s105, recording the first restoring point on a time axis according to the time when the first restoring point is completely created.
Further, the invention also comprises the following steps: s106, acquiring one or more second CAD files; s107, creating a second data summary file based on the one or more second CAD files, wherein the second data summary file comprises a second data item index table and second data summary information of the one or more CAD files; s108, comparing the first data summary file with the second data summary file, storing detailed information of the second data summary file relative to the incremental data of the first data summary file in an incremental database, enabling the incremental database to comprise all second data detailed information corresponding to the second data summary information, and recording a second storage path of the second data detailed information in the second data item index table; s109, a second restore point is created, and the second data summary file is associated with the second restore point.
Further, the invention also comprises the following steps: s110 records the second restore point on a time axis according to the time when the creation of the second restore point is completed.
Further, the first data summary file is saved in a full-text snapshot mode.
Further, the one or more first CAD files all relate to the same engineering project.
Further, the first data summary information includes one or more of author information, creation time, modification time, and/or thumbnail summary information.
Further, the first data detail information is a metadata item (metadata).
Further, the first data detail information includes one or more CAD elements, and element attributes corresponding to the one or more CAD elements, where the element attributes include insertion positions, stretching size ratios, start and end point information, and/or rendering information of the elements in the CAD drawing generated by restoring.
The invention also discloses a method for restoring the CAD file, which is characterized by comprising the following steps; s201, acquiring a first restoring point and a first data summary file associated with the first restoring point from a timeline storage device, wherein the first data summary file comprises a first data item index table and first data summary information; s202, acquiring first data detailed information corresponding to the first data summary information from an incremental database of the timeline storage device according to the first data item index table and the first data summary information; s203, according to the detailed information of the first data, according to the first data abstract file, restoring to generate a first file.
Further, the first restore point is recorded on a time axis of the timeline storage.
Further, the invention also comprises the following steps: s204, acquiring a second restore point and a second data summary file associated with the second restore point from the timeline storage device, wherein the second data summary file comprises a second data item index table and second data summary information; s205, acquiring detailed incremental data information corresponding to the incremental data from the incremental database according to the second data item index table and the incremental data of the second data summary information compared with the first data summary information; and S206, combining the detailed information of the first data and the detailed information of the incremental data, and restoring according to the second data summary file to generate a second file.
Further, the first data summary file is saved in a full-text snapshot mode.
Further, the first data summary file is generated based on one or more CAD drawings, and the one or more CAD drawings all relate to the same engineering project.
Further, the first data summary information includes one or more of author information, creation time, modification time, and/or thumbnail summary information.
Further, the first data detail information is a metadata item (metadata).
Further, the first data detail information includes one or more CAD elements, and element attributes corresponding to the one or more CAD elements, where the element attributes include insertion positions, stretching size ratios, start and end point information, and/or rendering information of the elements in the CAD drawing generated by restoring.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below. Throughout the drawings, like elements or portions are generally identified by like reference numerals. In the drawings, elements or portions are not necessarily drawn to scale. It is obvious that the drawings in the following description are some embodiments of the invention, and that for a person skilled in the art, other drawings can be derived from them without inventive exercise.
Fig. 1 is a flowchart of an embodiment of a method for managing a timeline of CAD graphic data according to the present invention.
Fig. 2 is a schematic diagram of an embodiment of a method for managing a timeline of CAD graphic data according to the present invention.
Fig. 3a is a flowchart illustrating an embodiment of a method for managing a timeline of CAD graphic data according to the present invention.
Fig. 3b is a flowchart illustrating an embodiment of a method for managing a timeline of CAD graphic data according to the present invention.
Fig. 4a is a flowchart illustrating an embodiment of a method for managing a timeline of CAD graphic data according to the present invention.
Fig. 4b is a flowchart illustrating an embodiment of a method for managing a timeline of CAD graphic data according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention. It is to be understood that the embodiments described are only a few embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Herein, suffixes such as "module", "part", or "unit" used to denote elements are used only for facilitating the description of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The term is defined as:
"entity" (entity): in this context, an entity refers to graphical data on a CAD file, displayed on a CAD drawing interface. An entity has attributes, i.e., data values that control entity or element specific visual characteristics (e.g., visibility, color, and line style). In various embodiments, entities may also be referred to as "pixels," primitives.
In this context, an object refers to information on a CAD file that is not displayed on a CAD drawing interface, such as layers, text styles, annotation styles, and the like. Herein, "style" refers to a named set of attributes used to classify and define a particular geometric and textual element (e.g., a line style or a text style).
An "element": in this context, an element refers to all possible information on a CAD file, i.e., including "entities" and "objects," and may also be block, group, unit definitions based on "entities" and/or "objects.
A "file": in this context, a file refers to any type of file that can be run in a CAD system for drawing, editing, modifying, storing, viewing a CAD drawing. Common CAD file formats include, but are not limited to, DWG, DXF, DWT, DWF, DWL, DWS, DWX, MNU, MNC, MNL, MNS, CUI, CUIX, SHX, PAT, LIN, CTB, STB, PLT, PC3, and the like.
"synergistic side": in this context, collaborators refer to users who participate together in a drawing project and collaborate with each other. The specialties may be the same between collaborators (e.g., multiple construction professional engineers drawing together) or different (e.g., construction engineers, plumbing engineers, electrical engineers, heating and ventilation engineers drawing together), with the collaborators referring to drawings drawn with respect to each other.
Example one
The CAD drawing data of the present invention is composed of two parts: one part is a data summary file, and the other part accesses an incremental database of actual data.
The data summary file is composed of two parts, wherein the main part is an index table used for retrieving data items in the incremental database, and the other part is used for storing other necessary graphic data summary information, such as an author, creation time, modification time, a thumbnail and the like.
The incremental database is used to store detailed data of an object in the CAD drawing, i.e., a metadata item that contains all the necessary information to construct the object. When the graph is modified, the metadata of the newly added or modified object is added into the database to form a new data item.
The timeline of a CAD design project consists of a series of restore points over time. Each restoring point makes a full-text snapshot based on the data summary of the current file and makes an index pointing to the full-text snapshot of the data summary. Each file at the restore point has a data summary file corresponding to it. The data digest is used to retrieve the necessary set of metadata from the delta database when restoring the file.
As shown in FIG. 1, the invention discloses a method for managing a time line of CAD graphic data, which comprises the following steps:
step S01, set the timeline store 200 to store data by classification
The timeline storage 200 is configured to create a corresponding data summary file 202 and a corresponding delta database 204 for all selected CAD drawings: the timeline storage device 200 reads and analyzes all selected CAD graphs, records object metadata in each CAD graph file in a corresponding incremental database 204, calculates an index table 206 of each item of data, and fills the index table 206 into a data summary file 202 and stores the index table; data summary file 202 includes an index table 206 for retrieving data items in delta database 204 file and other necessary graphical data summary information (such as author, creation time, modification time, thumbnail, etc.); the incremental database 204 is used to store detailed data of objects in the CAD graph, i.e., metadata items (metadata), and when a modification of the graph occurs, the metadata of the newly added or modified object is added to the incremental database to form a new data item.
Step S02, establishing a reference reduction point 208
The CAD user imports a desired set of CAD graphics into the timeline storage 200 via an import function.
Note that the present invention takes the form of a "global timeline," i.e., each restore point (including the base restore point) contains a complete set of associated CAD drawings (e.g., construction drawings, plumbing drawings, electrical drawings, heating and ventilation drawings, etc., all relating to an engineering project). In other words, the invention establishes a time line for the whole set of CAD graphs, rather than an individual time line for each CAD drawing, and the global time line has the advantages that a CAD user can obtain a whole set of CAD drawings related to the project at each restoration point, thereby being beneficial to the overall management of multi-person multi-professional multi-version CAD drawings and avoiding confusion.
For the set of data summary files 202 that need to be synchronized to the server, the timeline storage 200 creates a reference restore point 208 for the set of data summary files 202, and the timeline storage 200 sends the newly created reference restore point information 208, the selected data summary files 202, and the associated delta data 204 to the server, where the server creates an archive.
Step S03, a reference reduction point 208 is obtained
Upon detecting that a reference restore point 208 for the CAD design project is obtained from the server, the timeline storage 200 downloads the selected reference restore point 208 to the CAD user's local computer, and establishes a working snapshot for this reference restore point 208 locally.
Step S04, expanding the content of the reduction point
The data summary file 202 in the working snapshot is opened by the CAD software, the timeline storage 200 analyzes the index table 206 of this data summary file 202, incrementally synchronizes the graphical data to the local delta database 204, and then assembles the graphical data into a data format recognizable by the CAD editing software.
Step S05, saving the modification information
The CAD graph is modified and saved using CAD software, and the timeline storage 200 analyzes the modifications made, saves the added, deleted, or modified object data information to the delta database 204, and then updates the corresponding data summary file 202a (e.g., the index table is updated to 206 a).
Step S06, establishing a new restore point 210
A group of data summary files needing to be synchronized to the server are selected, the timeline storage device 200 creates a new restore point 210 for the group of data summary files 202a, and the timeline storage device 200 sends the newly created new restore point information 210, the selected data summary files 202a and related incremental data to the server, which establishes archiving.
It should be noted that although the present invention employs a "global timeline," the term "global" in the "global timeline" means that each restore point contains all of the files of the project at that time, with respect to the last restore point, only a portion of the files being changed. This change may include all local modifications or only a portion of local modifications, which may be more common, and thus is "selective" when data summary file 202a is submitted at step S06 above. Such as: the CAD user changes 10 files, but only wants to submit 3 of them, then the CAD user can select the 3 files as the object of this submission, and the remaining 7 files can be spoken later.
To take a more realistic example: consider a designer who is processing two design tasks (or changes) in parallel, one of which is completed and involves 3 file modifications, and the other is still in progress and involves 7 file modifications. At this point, the designer needs to submit only 3 documents related to the completed task, and therefore must first make a "selection" at the time of submission. The selected content is as follows: files that change due to completed tasks. The change then includes: addition, modification or deletion.
Step S07, updating to the reduction point
The collaborative user can update the CAD graph version of the collaborative user to the latest version or select a certain restoring point needing to be updated through the updating function. The method comprises the following steps: the timeline storage device 200 downloads the selected restoration point from the server to the local and updates the corresponding working snapshot, and the timeline storage device 200 analyzes the information of the restoration point to find out the modified CAD figure file, and then downloads the data summary file corresponding to the CAD figure file to the local and updates the data summary file to the working snapshot.
The bold cropping in fig. 2 indicates the portion with the changed data.
Example two
In some embodiments, the present invention discloses a time line storage device for CAD drawings, comprising: a first data summary file and an incremental database; the first data summary file comprises a first data item index table and first data summary information; the incremental database stores first data detailed information corresponding to the first data summary information; the first data item index table is used for searching the first data detail information corresponding to the first data summary information in the incremental database; and the data summary file is set to be associated with a first restore point.
In some embodiments, the present invention further comprises a time axis on which the first restore point is set according to a time at which it was created.
In some embodiments, a plurality of restore points are included on the timeline, the plurality of restore points being arranged in order according to their creation time.
In some embodiments, the present invention further includes a second data summary file comprising a second data item index table and second data summary information; the second data summary information is stored in the incremental database relative to the incremental data detail information of the first data summary information; the incremental database comprises a second data item index table used for searching second data detail information corresponding to the second data summary information in the incremental database; and the second data summary file is set to be associated with a second restore point.
In some embodiments, the first restore point and the second restore point are arranged on the timeline in order by time of creation.
In some embodiments, the second data detail includes (i) the incremental data detail and (ii) some or all of the first data detail.
In some embodiments, the first data summary file is saved as a full-text snapshot.
In some embodiments, the first data summary file is generated based on one or more CAD drawings, which all relate to the same engineering project.
In some embodiments, the first data summary information includes one or more of author information, creation time, modification time, and/or thumbnail summary information.
In some embodiments, the first data detail information is a metadata item (metadata).
EXAMPLE III
In some embodiments, the present invention discloses a user terminal of a CAD system, comprising: the restoration point acquisition module is used for acquiring a first restoration point from the timeline storage device; the restoring point analyzing module is connected with the restoring point acquiring module and used for analyzing a first data summary file associated with the first restoring point, wherein the first data summary file comprises a first data item index table and first data summary information; and the file restoration module is connected with the restoration point analysis module, acquires the first data item index table and the first data summary information, acquires first data detailed information corresponding to the first data summary information from an incremental database of the timeline storage device, and restores the first data detailed information to generate a first file.
In some embodiments, the invention further comprises: the restoring point acquiring module acquires the first restoring point on a time axis in the time line storage device.
In some embodiments, the restore point acquisition module also acquires a second restore point to the timeline storage;
the restoring point analysis module acquires a second data summary file through the second restoring point, wherein the second data summary file comprises a second data item index table and second data summary information;
and the file restoration module acquires second data detailed information corresponding to the second data summary information from an incremental database of the timeline storage device based on the second data item index table and the second data summary information, and restores the second data detailed information to generate a second file.
In some embodiments, the second data detail information comprises: incremental data detail information stored in the incremental database, the second data summary information relative to the first data summary information; and some or all of the first data detail information.
In some embodiments, the first data summary file is saved as a full-text snapshot.
In some embodiments, the first data summary file includes one or more CAD drawings, all relating to the same engineering project.
In some embodiments, the first data summary information includes one or more of author information, creation time, modification time, and/or thumbnail summary information.
In some embodiments, the first data detail information is a metadata item (metadata).
Example four
In some embodiments, the present invention discloses a method for managing a CAD drawing, which is characterized by comprising the following steps (see fig. 3 a):
s101, acquiring one or more first CAD files;
s102, creating a first data summary file based on the one or more first CAD files, wherein the first data summary file comprises a first data item index table and first data summary information of the one or more CAD files;
s103, extracting first data detailed information corresponding to the first data summary information from the one or more first CAD files, storing the first data detailed information in an incremental database, and recording a first storage path of the first data detailed information in the first data item index table;
s104, creating a first restoring point, and associating the first data summary file with the first restoring point.
In some embodiments, the present invention further comprises the steps of: s105, recording the first restoring point on a time axis according to the time when the first restoring point is completely created.
In some embodiments, the present invention further comprises the following steps (see fig. 3 b):
s106, acquiring one or more second CAD files;
s107, creating a second data summary file based on the one or more second CAD files, wherein the second data summary file comprises a second data item index table and second data summary information of the one or more CAD files;
s108, comparing the first data summary file with the second data summary file, storing detailed information of the second data summary file relative to the incremental data of the first data summary file in an incremental database, enabling the incremental database to comprise all second data detailed information corresponding to the second data summary information, and recording a second storage path of the second data detailed information in the second data item index table;
s109, a second restore point is created, and the second data summary file is associated with the second restore point.
In some embodiments, the present invention further comprises the steps of: s110 records the second restore point on a time axis according to the time when the creation of the second restore point is completed.
In some embodiments, the first data summary file is saved as a full-text snapshot.
In some embodiments, the one or more first CAD files all relate to the same engineering project.
In some embodiments, the first data summary information includes one or more of author information, creation time, modification time, and/or thumbnail summary information.
In some embodiments, the first data detail information is a metadata item (metadata).
EXAMPLE five
In some embodiments, the present invention discloses a method for restoring a CAD file, which is characterized by comprising the following steps (FIG. 4 a);
s201, acquiring a first restoring point and a first data summary file associated with the first restoring point from a timeline storage device, wherein the first data summary file comprises a first data item index table and first data summary information;
s202, acquiring first data detailed information corresponding to the first data summary information from an incremental database of the timeline storage device according to the first data item index table and the first data summary information;
s203, according to the detailed information of the first data, according to the first data abstract file, restoring to generate a first file.
In some embodiments, the first restore point is recorded on a timeline of the timeline storage.
In some embodiments, the invention further comprises the following steps (fig. 4 b):
s204, acquiring a second restore point and a second data summary file associated with the second restore point from the timeline storage device, wherein the second data summary file comprises a second data item index table and second data summary information;
s205, acquiring detailed incremental data information corresponding to the incremental data from the incremental database according to the second data item index table and the incremental data of the second data summary information compared with the first data summary information;
and S206, combining the detailed information of the first data and the detailed information of the incremental data, and restoring according to the second data summary file to generate a second file.
In some embodiments, the first data summary file is saved as a full-text snapshot.
In some embodiments, the first data summary file is generated based on one or more CAD drawings, which all relate to the same engineering project.
In some embodiments, the first data summary information includes one or more of author information, creation time, modification time, and/or thumbnail summary information.
In some embodiments, the first data detail information is a metadata item (metadata).
Compared with the prior art, the invention has the following technical characteristics:
1. the manner in which the timeline information is stored is snapshot (i.e., a full-text snapshot is used to store the data summary file), while the manner in which the restore point data is stored is incremental, both.
2. Because the present invention transmits and processes CAD drawings in a manner that is data summarization plus incremental data, the present invention does not take a full-text snapshot of the entire CAD drawing.
3. The invention traces back the design change between the reduction points by analyzing the data abstract file and the incremental data, rather than comparing the difference based on the whole CAD graph.
The invention makes the time line by taking the whole engineering design project as a unit, and does not establish an independent time line for each CAD graph file in the project.
Based on the technical characteristics, the invention has the beneficial effects that:
1. the invention manages the time line and the data information of the CAD graph in a data abstract plus data increment mode instead of a complete graph file, thereby reducing the storage and transmission cost of the CAD graph data and improving the processing performance of a data line storage device.
2. The invention establishes the global time line by taking the engineering design project as a unit, and does not establish an independent time line for each CAD graph file in the project, thereby ensuring that the graph data of the project on each reduction point are complete and consistent, and the condition of mixing new and old graphs is not easy to occur. For example: in the design scenario of the electrical layout diagram with reference to the building plan, if the two taken file versions are not matched, the result of the diagram may be wrong. The manner in which the present invention establishes the timeline may avoid such errors from occurring.
3. The invention greatly reduces the transmission data amount of the CAD graph data and improves the transmission efficiency by transmitting the incremental data of the CAD graph instead of the whole CAD graph file.
4. The invention traces the design change by analyzing the data abstract and the incremental data, thereby improving the efficiency of checking the design change.
Specifically, the invention creates a data summary file for the CAD graphic file, and then establishes a time line in a full-text snapshot mode of storing the data summary. Incremental data (i.e., difference portions) resulting from file modifications are additionally stored in an incremental database. The data summary is much smaller than the original file. It also contains all the necessary information and metadata index to process the original file, i.e. the data summary file has integrity.
Because the data summary file has the characteristic of small size, the time line information is established by storing the full-text snapshot of the data summary, compared with the original text snapshot (Git mode), the data consumption of the invention is smaller, namely, the storage space requirement and the I/O overhead of the device are reduced. This advantage is particularly suitable for the fields of mobile devices (small memory) and the internet (slow transmission and high cost).
This technical advantage of the invention is illustrated: take a CAD design project with an initial file number of 100 as an example. If the average size of the file is 10MB, the file has 200 restoration points in total, each restoration point modifies 5 files on average, and the data volume of each file changed is 100 KB. The reference data is as follows: (10 MB/100) ═ 1 GB. Based on the full-text snapshot mode, the required amount of additional data to store the complete timeline of the project is: (10 MB/5 × 200) ═ 10 GB. The invention uses the data abstract of the graphic file as the snapshot to establish the restore point, the modified data (difference part) is separately stored in the corresponding incremental database, the data abstract stores the index of the data item instead of the data item, the size of the data abstract is much smaller than that of the original image, and the assumption is that: 1/10 (i.e., 1 MB). Based on the technical solution of the present invention, to store the complete timeline of the project, the required amount of additional data is: (1/10MB +100KB) × 5 × 200) ═ 1.1GB, which is about 1/10 in full-text snapshot. The smaller the size of the index entry compared to the data entry, the access advantage of the present invention is more or less significant.
In addition, because the timeline device of the present invention stores the data summaries, and the data summary files have integrity, when a user needs to trace back design changes between versions (restore points), the present invention only needs to compare the data summary files at two restore points to obtain complete change information (for example, find an incremental data summary by comparing the data summary information, and then obtain the detailed incremental data information corresponding to the incremental data summary from the incremental database). In other words, the user can restore the file from any restore point to another restore point only by the data summary file, rather than needing to merge the differences at each restore point in sequence starting with the base file to restore the version of the file, as in Subversion. This recovery approach based on differential merging obviously requires more data to be analyzed and processed. Therefore, compared with a differential time line device, the invention has higher performance and reliability, namely, the performance and data security of the device are improved; and the efficiency is improved, and the problem of efficiency in tracing the design change is solved.
The invention has wide application fields including, but not limited to, networked storage, sharing and protection of CAD graphic data. Other application scenarios of the invention are as follows:
1. the data file meets the requirements of metadata transformation. I.e. the data file can be broken down into smaller sets of metadata.
2. For incremental saving or reading of disk files.
3. For incremental transmission of files or data in a network environment.
4. For backup and restore of data files.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a computer terminal (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.
For example, in the first embodiment, although the timeline storage is located in a remote server (e.g., the cloud of the CAD collaborative design system), a CAD user can create the timeline storage in its own local computer terminal and create a complete project timeline (which can also be referred to as a private timeline). The CAD user can integrally upload the established private timeline to the cloud end of the CAD collaborative design system, so that the collaborative party can obtain CAD files on different restoration points. In other words, although the present invention is particularly suitable for CAD collaborative design systems, the present invention can also be applied to non-collaborative design projects, and a CAD drawing engineer can also use the present invention to manage CAD files of drawing points.

Claims (31)

1. A timeline management system for CAD files, comprising:
a first data summary file and an incremental database;
the first data summary file comprises a first data item index table and first data summary information;
the incremental database stores first data detailed information corresponding to the first data summary information;
the first data item index table is used for searching the first data detail information corresponding to the first data summary information in the incremental database; and is
The data summary file is set to be associated with a first restore point;
the timeline management system further comprises: a time axis on which the first restore point is set according to a time at which it is created;
the timeline management system further comprises: a second data summary file comprising a second data item index table and second data summary information;
the second data summary information is stored in the incremental database relative to the incremental data detail information of the first data summary information;
the second data item index table is used for searching the incremental database for second data detailed information corresponding to the second data summary information; and is
The second data summary file is set to be associated with a second restore point.
2. The system for timeline management of CAD files of claim 1, comprising a plurality of restore points on said timeline, said plurality of restore points being arranged in order according to their creation time.
3. The system for managing a timeline of a CAD file according to claim 1, wherein said first restore point and said second restore point are arranged in order on said timeline at a time of creation.
4. The timeline management system for CAD files of claim 1 wherein said second data details comprise (i) said incremental data details and (ii) some or all of said first data details.
5. The CAD file timeline management system of claim 1 wherein said first data summary file is saved as a full-text snapshot.
6. The CAD file timeline management system of claim 1, wherein said first data summary file is generated based on one or more CAD drawings, said one or more CAD drawings all relating to a same engineering project.
7. The timeline management system of CAD files of claim 1, wherein said first data summary information comprises one or more of author information, creation time, modification time, and/or thumbnail summary information.
8. The timeline management system of CAD files of claim 1 wherein said first data details are metadata items (metadata).
9. The timeline management system for CAD files of claim 1, wherein said first data details comprise one or more CAD elements and element attributes corresponding to said one or more CAD elements, said element attributes comprising an element's insertion position in a CAD drawing, a stretch size ratio, start and end point information, and/or rendering information.
10. A user terminal for a CAD system, comprising:
the restoration point acquisition module is used for acquiring a first restoration point from the timeline storage device;
the restoring point analyzing module is connected with the restoring point acquiring module and used for analyzing a first data summary file associated with the first restoring point, wherein the first data summary file comprises a first data item index table and first data summary information;
the file restoration module is connected with the restoration point analysis module, acquires the first data item index table and the first data summary information, acquires first data detailed information corresponding to the first data summary information from an incremental database of the timeline storage device, and restores the first data detailed information to generate a first file;
the restoring point acquisition module also acquires a second restoring point from the time line storage device; the restoring point analysis module acquires a second data summary file through the second restoring point, wherein the second data summary file comprises a second data item index table and second data summary information;
the file restoration module acquires second data detailed information corresponding to the second data summary information from an incremental database of the timeline storage device based on the second data item index table and the second data summary information, and restores the second data detailed information to generate a second file;
wherein the second data detail information includes:
(i) incremental data detail information stored in the incremental database, the second data summary information relative to the first data summary information; and
(ii) some or all of the first data detail information.
11. The CAD system user terminal of claim 10, further comprising: the restoring point acquiring module acquires the first restoring point on a time axis in the time line storage device.
12. The CAD system user terminal of claim 10, wherein said first data summary file is saved as a full-text snapshot.
13. The CAD system user terminal of claim 10, wherein the first data summary file comprises one or more CAD drawings, each relating to the same project.
14. The user terminal of the CAD system as recited in claim 10, wherein the first data summary information comprises one or more of author information, creation time, modification time, and/or thumbnail summary information.
15. The user terminal of the CAD system as recited in claim 10, wherein the first data detail is a metadata item (metadata).
16. The user terminal of the CAD system of claim 10, wherein the first data detail information comprises one or more CAD elements, and element attributes corresponding to the one or more CAD elements, the element attributes comprising an insertion position of an element in the restored CAD drawing, a stretch size ratio, start and end point information, and/or rendering information.
17. A method for managing a timeline of a CAD file, comprising the steps of:
s101, acquiring one or more first CAD files;
s102, creating a first data summary file based on the one or more first CAD files, wherein the first data summary file comprises a first data item index table and first data summary information of the one or more CAD files;
s103, extracting first data detailed information corresponding to the first data summary information from the one or more first CAD files, storing the first data detailed information in an incremental database, and recording a first storage path of the first data detailed information in the first data item index table;
s104, creating a first restoring point, and associating the first data summary file with the first restoring point;
s106, acquiring one or more second CAD files;
s107, creating a second data summary file based on the one or more second CAD files, wherein the second data summary file comprises a second data item index table and second data summary information of the one or more CAD files;
s108, comparing the first data summary file with the second data summary file, storing detailed information of the second data summary file relative to the incremental data of the first data summary file in an incremental database, enabling the incremental database to comprise all second data detailed information corresponding to the second data summary information, and recording a second storage path of the second data detailed information in the second data item index table;
s109, a second restore point is created, and the second data summary file is associated with the second restore point.
18. The method for managing a timeline of a CAD file according to claim 17, further comprising the steps of: s105, recording the first restoring point on a time axis according to the time when the first restoring point is completely created.
19. The method for managing a timeline of a CAD file according to claim 17, further comprising the steps of: s110 records the second restore point on a time axis according to the time when the creation of the second restore point is completed.
20. The method for timeline management of CAD files of claim 17, wherein said first data summary file is saved as a full-text snapshot.
21. The method for timeline management of CAD files of claim 17, wherein said one or more first CAD files each relate to the same engineering project.
22. The timeline management method for CAD files of claim 17, wherein said first data summary information comprises one or more of author information, creation time, modification time, and/or thumbnail summary information.
23. The timeline management method of CAD files according to claim 17, wherein said first data detail information is a metadata item (metadata).
24. The method for timeline management of CAD files of claim 17, wherein said first data details comprise one or more CAD elements, and element attributes corresponding to said one or more CAD elements, said element attributes comprising insertion position, stretch size ratio, start and end point information, and/or rendering information of elements in a restored CAD drawing.
25. A method for restoring a CAD file is characterized by comprising the following steps;
s201, acquiring a first restoring point and a first data summary file associated with the first restoring point from a timeline storage device, wherein the first data summary file comprises a first data item index table and first data summary information;
s202, acquiring first data detailed information corresponding to the first data summary information from an incremental database of the timeline storage device according to the first data item index table and the first data summary information;
s203, according to the detailed information of the first data, according to the first data abstract file, restoring to generate a first file;
s204, acquiring a second restore point and a second data summary file associated with the second restore point from the timeline storage device, wherein the second data summary file comprises a second data item index table and second data summary information;
s205, acquiring detailed incremental data information corresponding to the incremental data from the incremental database according to the second data item index table and the incremental data of the second data summary information compared with the first data summary information;
and S206, combining the detailed information of the first data and the detailed information of the incremental data, and restoring according to the second data summary file to generate a second file.
26. The method of restoring a CAD file according to claim 25, wherein the first restoring point is recorded on a time axis of the time line storage means.
27. The method for restoring a CAD file as recited in claim 25, wherein said first data summary file is saved as a full-text snapshot.
28. The method for restoring a CAD file as recited in claim 25, wherein the first data summary file is generated based on one or more CAD drawings, wherein the one or more CAD drawings all relate to the same engineering project.
29. The method of restoring a CAD file as recited in claim 25, wherein the first data summary information includes one or more of author information, creation time, modification time, and/or thumbnail summary information.
30. The method of restoring a CAD file as recited in claim 25, wherein the first data detail is a metadata item (metadata).
31. The method for restoring a CAD file according to claim 25, wherein the first data detail information includes one or more CAD elements, and element attributes corresponding to the one or more CAD elements, the element attributes including an insertion position of an element in the restored CAD drawing, a stretch size ratio, start and end point information, and/or rendering information.
CN201910634339.XA 2018-07-16 2019-07-15 Time line management system, method, computer readable storage medium and computer terminal for CAD file Active CN110232047B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2018107788146 2018-07-16
CN201810778814 2018-07-16

Publications (2)

Publication Number Publication Date
CN110232047A CN110232047A (en) 2019-09-13
CN110232047B true CN110232047B (en) 2021-03-23

Family

ID=67855427

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910634339.XA Active CN110232047B (en) 2018-07-16 2019-07-15 Time line management system, method, computer readable storage medium and computer terminal for CAD file

Country Status (1)

Country Link
CN (1) CN110232047B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115422598A (en) * 2022-11-08 2022-12-02 壹仟零壹艺网络科技(北京)有限公司 CAD drawing version management method based on GIT system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6205451B1 (en) * 1998-05-22 2001-03-20 Oracle Corporation Method and apparatus for incremental refresh of summary tables in a database system
CN103324660A (en) * 2012-03-23 2013-09-25 波音公司 Panoptic visualization document database management
CN104239443A (en) * 2014-09-01 2014-12-24 英方软件(上海)有限公司 Serialization data operation log storage method
CN106970856A (en) * 2015-10-28 2017-07-21 恩芬森株式会社 Data are backed up, recover and carry data management system and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6205451B1 (en) * 1998-05-22 2001-03-20 Oracle Corporation Method and apparatus for incremental refresh of summary tables in a database system
CN103324660A (en) * 2012-03-23 2013-09-25 波音公司 Panoptic visualization document database management
CN104239443A (en) * 2014-09-01 2014-12-24 英方软件(上海)有限公司 Serialization data operation log storage method
CN106970856A (en) * 2015-10-28 2017-07-21 恩芬森株式会社 Data are backed up, recover and carry data management system and method

Also Published As

Publication number Publication date
CN110232047A (en) 2019-09-13

Similar Documents

Publication Publication Date Title
US11567736B2 (en) Systems and methods for providing an instant communication channel within integrated development environments
US11526533B2 (en) Version history management
JP6854041B2 (en) Project management in a content management system
US20100114985A1 (en) Managing the content of shared slide presentations
US20210216678A1 (en) Cad collaborative design system
US7546533B2 (en) Storage and utilization of slide presentation slides
US20060294469A1 (en) Storage and utilization of slide presentation slides
US20060294468A1 (en) Storage and utilization of slide presentation slides
EP1513065A1 (en) File system and file transfer method between file sharing devices
KR20140060305A (en) Efficient data recovery
CN110287192B (en) Search application data processing method and device, computer equipment and storage medium
US9063949B2 (en) Inferring a sequence of editing operations to facilitate merging versions of a shared document
CN103329110B (en) Document processing device, document processing and file service management householder method
US8396887B2 (en) Method and system for facilities management
CN110232047B (en) Time line management system, method, computer readable storage medium and computer terminal for CAD file
CN112783482B (en) Visual form generation method, device, equipment and storage medium
US9471437B1 (en) Common backup format and log based virtual full construction
CN116579295B (en) Method for dynamically inserting pages, moving bits and hiding and displaying multi-format file subscription
EP2856359B1 (en) Systems and methods for storing data and eliminating redundancy
TWI546727B (en) Computer accessible storage medium and method for cross-platform synchronizing attributes of files
KR102232003B1 (en) Method for object management using trace identifier, apparatus for the same, computer program for the same, and recording medium storing computer program thereof
CN111753141A (en) Data management method and related equipment
CA2722511C (en) Efficient change tracking of transcoded copies
CN110019056A (en) Container separated from meta-data for cloud layer
US9678979B1 (en) Common backup format and log based virtual full construction

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant