A CAD drawing data storage method and system

By analyzing the close association and connection degree of CAD drawing data, correcting the degree to be modified, determining the importance and compressing and storing it, the problem of poor storage effect in the existing technology is solved and the storage effect of CAD image data is improved.

CN118656501BActive Publication Date: 2024-10-22SHANDONG BAOKE INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411131592.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-19
Publication Date
2024-10-22
Estimated Expiration
2044-08-19

AI Technical Summary

Technical Problem

The existing technology fails to effectively consider the drawing order when storing CAD drawing data, resulting in large errors in important data and affecting the storage effect.

Method used

By obtaining historical versions of CAD drawing data, the close correlation, connection degree and information representation ability of the drawing data points are analyzed, the degree to be modified is corrected, and the importance is determined, and different types of compression storage are performed based on the importance.

Benefits of technology

It improves the storage effect of CAD image data, ensures lossless compression of important data and lossy compression of auxiliary data, and reduces storage pressure.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118656501B_ABST
    Figure CN118656501B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of data processing, and in particular to a CAD drawing data storage method and system, including: obtaining the close association degree of drawing data points; obtaining the connection degree of each drawing data point; obtaining the degree of modification of each drawing data point; obtaining the information representation capability of the drawing data point in each historical version of the CAD drawing data; obtaining the contribution degree of the drawing data point according to the information representation capability and the number of data edges of the drawing data point in different historical versions of the CAD drawing data; correcting the degree of modification of the drawing data point by the contribution degree to obtain the importance of the drawing data point; performing different types of compression on the CAD drawing data based on the importance degree to obtain the compressed CAD drawing data; and storing the compressed CAD drawing data in a database. The present invention improves the storage effect of CAD image data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and in particular to a method and system for storing CAD drawing data. Background Art

[0002] In modern industrial design and engineering drawing, CAD (computer-aided design) software plays a vital role; the storage method of CAD drawing data directly affects data management, security, access efficiency and subsequent processing; therefore, it is particularly important to understand and master efficient CAD drawing data storage methods; when storing CAD drawing data, draftsmen need to save multiple historical versions of CAD drawing data to prevent accidental loss of important data, but this will increase the storage burden, so it is necessary to obtain important data in the CAD drawing data and store it losslessly to reduce storage pressure; in the prior art, only historical versions of CAD drawing data are compared and analyzed to obtain important data; the drawing order of CAD drawing data is not taken into account, resulting in large errors in the important data obtained, which in turn makes the storage effect of CAD image data poor. Summary of the invention

[0003] In order to solve the above problems, the present invention provides a CAD drawing data storage method and system.

[0004] An embodiment of the present invention provides a method for storing CAD drawing data, the method comprising the following steps:

[0005] Acquire several historical versions of CAD drawing data; each historical version of CAD drawing data includes several drawing data points;

[0006] According to the distribution of drawing data points in the surrounding range of each drawing data point, the close correlation degree of the drawing data points is obtained; all data edges of each drawing data point are obtained; according to the difference between the data edges in the surrounding range of each drawing data point, the connection degree of each drawing data point is obtained;

[0007] According to the differences in the close association and connection degrees of the drawing data points in different historical versions of CAD drawing data, the degree of modification to be performed for each drawing data point is obtained; according to the differences and similarities in the number of data edges of the drawing data points in the adjacent historical versions of CAD drawing data, the information representation capability of the drawing data points in each historical version of CAD drawing data is obtained; according to the information representation capability and the trend of the number of data edges of the drawing data points in different historical versions of CAD drawing data, the contribution degree of the drawing data points is obtained; the degree of modification to be performed for the drawing data points is corrected by the contribution degree to obtain the importance of the drawing data points;

[0008] The CAD drawing data is compressed in different ways based on the importance to obtain compressed CAD drawing data; and the compressed CAD drawing data is stored in a database.

[0009] Preferably, the method of obtaining the close association degree of the drawing data points according to the distribution of the drawing data points in the surrounding range of each drawing data point includes the following specific methods:

[0010] Preset a window parameter For any drawing data point, a size of Window, and make the neighborhood range of the drawing data point;

[0011] Use the drawing data points directly connected to the drawing data points as the connecting drawing data points of the drawing data points;

[0012] The ratio of the number of connected drawing data points within the neighborhood of the drawing data point to the number of all drawing data points within the neighborhood of the drawing data point is recorded as the effective connectivity of the drawing data point; the product of the effective connectivity of the drawing data point and the inverse of the variance of the Euclidean distance between all drawing data points within the neighborhood of the drawing data point and the drawing data point is taken as the close association degree of the drawing data point.

[0013] Preferably, the specific method of obtaining all data edges of each drawing data point includes:

[0014] The straight line connecting edge between the drawing data point and each connecting drawing data point of the drawing data point is used as the data edge of the drawing data point.

[0015] Preferably, the method of obtaining the connection degree of each drawing data point according to the difference between the data edges in the surrounding range of each drawing data point includes the following specific methods:

[0016] For any drawing data point, the average of the slopes of the straight lines connecting all drawing data points within the neighborhood of the drawing data point and the drawing data point is recorded as the first mean; the first mean is recorded as the slope of the straight line connecting all drawing data points within the neighborhood of the drawing data point. The absolute value of the difference between the slope of the first data edge and the first mean is taken as the The difference value of the data edge;

[0017] The product of the cumulative sum of the difference values ​​of all data edges of the drawing data point and the variance of the slopes of all data edges of the drawing data point is taken as the degree of connection of the drawing data point.

[0018] Preferably, the specific method of obtaining the degree of modification of each drawing data point according to the difference in the close association degree and connection degree of the drawing data point in different historical versions of CAD drawing data includes:

[0019] The first The historical version of the CAD drawing data The close correlation between the first drawing data point and the The historical version of the CAD drawing data The absolute value of the difference between the close correlation degrees of the drawing data points is recorded as the first difference; The historical version of the CAD drawing data The degree of connection between the data points of the first drawing and the The historical version of the CAD drawing data The absolute value of the difference between the connection degrees of the data points of the drawing is recorded as the second difference; the sum of the first difference and the second difference is recorded as the first difference. The historical version of the CAD drawing data Modification factor for each drawing data point;

[0020] All historical versions of CAD drawing data The cumulative sum of the modification factors of the drawing data points is used as the The degree of modification of each drawing data point.

[0021] Preferably, the method of obtaining the information representation capability of the drawing data points in each historical version of the CAD drawing data according to the difference in the number and similarity of the data edges of the drawing data points in the adjacent historical versions of the CAD drawing data includes the following specific methods:

[0022] For any drawing data point, The historical version of the CAD drawing data All data edges and the first The historical version of the CAD drawing data All data edges of the drawing data points Algorithm, get the The historical version of the CAD drawing data The number of matching data edges for each drawing data point;

[0023] The first The historical version of the CAD drawing data The number of data edges of the drawing data point is the same as the The historical version of the CAD drawing data The ratio of the number of data edges of the drawing data points is recorded as the change value of the number of data edges; The product of the reciprocal of the number of matching data edges of the drawing data point and the change value of the number of data edges is recorded as the first product; the absolute value of the difference between the first product and 1 is recorded as the second product. The historical version of the CAD drawing data The information representation capability of each drawing data point.

[0024] Preferably, the specific method of obtaining the contribution degree of the drawing data point according to the information representation capability and the change trend of the number of data edges of the drawing data point in different historical versions of CAD drawing data includes:

[0025] For any drawing data point, the number of data edges of the drawing data point in all historical versions of CAD drawing data is fitted into a curve using the least squares method to obtain the data edge change curve of the drawing data point;

[0026] For any data point on the data edge change curve, if the slope of the data point is greater than or equal to 0, the data is recorded as a non-target data point; if the slope of the data point is less than 0, the data is recorded as a target data point; the absolute value of the difference between the number of all target data points and the number of all non-target data points on the data edge change curve is used as the auxiliary possibility of the drawing data point;

[0027] The product of the cumulative sum of the information representation capabilities of the drawing data points in all historical versions of the CAD drawing data and the inverse of the auxiliary possibility of the drawing data points is taken as the contribution degree of the drawing data points.

[0028] Preferably, the degree of modification of the drawing data point is corrected by the contribution degree to obtain the importance of the drawing data point, and the specific method includes:

[0029] For any drawing data point, the normalized value of the product of the contribution degree of the drawing data point and the inverse of the degree to be modified of the drawing data point is used as the importance of the drawing data point.

[0030] Preferably, the method of performing different types of compression on the CAD drawing data based on the importance to obtain the compressed CAD drawing data includes the following specific methods:

[0031] If the importance of a drawing data point is greater than or equal to a preset threshold, the drawing data point is recorded as an important drawing data point; the sequence composed of all important drawing data points in the CAD drawing data is recorded as an important data sequence; the sequence composed of all other drawing data points in the CAD drawing data is recorded as an identification auxiliary sequence; the identification auxiliary sequence is losslessly compressed using a transformation coding algorithm; the important data sequence is losslessly compressed using a Huffman coding algorithm; and the compressed CAD drawing data is obtained.

[0032] The present invention also proposes a CAD drawing data storage system, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements any one of the steps of the CAD drawing data storage method when executing the computer program.

[0033] The beneficial effects of the technical solution of the present invention are as follows: the present invention obtains the contribution degree of the drawing data point according to the information characterization capability and the trend of the number of data edges of the drawing data point in different historical versions of CAD drawing data; corrects the degree of modification of the drawing data point according to the contribution degree to obtain the importance of the drawing data point; performs different types of compression on the CAD drawing data based on the importance to obtain compressed CAD drawing data; stores the compressed CAD drawing data in a database; thereby, the importance of the drawing data points in the CAD drawing data is obtained through the drawing order of the CAD drawing data, and then the important drawing data points in the CAD drawing data are obtained, the important drawing data points are losslessly compressed, and other identification auxiliary data are losslessly compressed, thereby improving the storage effect of the CAD image data. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0035] Figure 1 A flow chart of the steps of a CAD drawing data storage method of the present invention;

[0036] Figure 2 This is a characteristic relationship flow chart of CAD drawing data storage according to the present invention. DETAILED DESCRIPTION

[0037] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of a CAD drawing data storage method and system proposed by the present invention, its specific implementation, structure, features and effects, in conjunction with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.

[0038] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.

[0039] The following describes in detail a specific solution of a CAD drawing data storage method and system provided by the present invention in conjunction with the accompanying drawings.

[0040] See also Figure 1 , which shows a flowchart of a method for storing CAD drawing data provided by an embodiment of the present invention, the method comprising the following steps:

[0041] Step S001: Obtain several historical versions of CAD drawing data.

[0042] It should be noted that when storing CAD drawing data, the draftsman needs to save multiple historical versions of the CAD drawing data to prevent accidental loss of important data.

[0043] Specifically, we first need to collect and obtain several historical versions of CAD drawing data. The specific process is as follows:

[0044] Obtain several historical versions of CAD drawing data, and use CAD software to obtain the three-dimensional coordinate information of all drawing data points on the CAD drawing data.

[0045] So far, several historical versions of CAD drawing data have been obtained through the above method.

[0046] Step S002: Obtain the close association degree of the drawing data points according to the distribution of the drawing data points in the surrounding range of each drawing data point; obtain all data edges of each drawing data point; obtain the connection degree of each drawing data point according to the difference between the data edges in the surrounding range of each drawing data point.

[0047] It should be noted that CAD drawing data includes basic graphic elements such as drawing data points, edges, polygons, etc., and CAD drawing data usually displays the geometric shape and location information of objects, such as building outlines, streets, wellheads and text annotations. Therefore, there is a strong correlation between drawing data points. Since the drawing data points are connected by smooth straight lines or other curves to show the overall change pattern and trend direction of the object, the connection relationship between different edges is quantified by the degree of connection of each drawing data point.

[0048] 1. Get the degree of close correlation of drawing data points.

[0049] It should be noted that the close correlation degree of a drawing data point quantifies the correlation between the drawing data point and other drawing data points in the CAD drawing data data; and therefore, the more concentrated the distribution of the drawing data point in different directions within the neighborhood range and the greater the number of drawing data points directly connected to the drawing data point, the closer the drawing data point is located to the central position of the part, and the greater the close correlation degree of the drawing data point in the CAD drawing data.

[0050] Preferably, in some implementations of the embodiments of the present invention, the specific method for obtaining the close association degree of the drawing data points according to the distribution of the drawing data points in the surrounding range of each drawing data point is:

[0051] Preset a window parameter , wherein this embodiment is based on This example is described as an example, and this embodiment is not specifically limited. Depends on the specific implementation situation;

[0052] For any drawing data point, a Window, and make the neighborhood range of the drawing data point;

[0053] Use the drawing data points directly connected to the drawing data points as the connecting drawing data points of the drawing data points;

[0054] The ratio of the number of connected drawing data points within the neighborhood of the drawing data point to the number of all drawing data points within the neighborhood of the drawing data point is recorded as the effective connectivity of the drawing data point; the product of the effective connectivity of the drawing data point and the inverse of the variance of the Euclidean distance between all drawing data points within the neighborhood of the drawing data point and the drawing data point is taken as the close association degree of the drawing data point.

[0055] The specific formula is:

[0056]

[0057] In the formula, Indicates the close correlation degree of the drawing data points; Indicates the number of connected drawing data points within the neighborhood of the drawing data point; Represents the number of all drawing data points within the neighborhood of the drawing data point; Represents the variance of the Euclidean distance between this drawing data point and all drawing data points in the neighborhood of the drawing data point.

[0058] At this point, the close correlation degree of the drawing data points is obtained.

[0059] 2. Get the degree of connectivity of drawing data points.

[0060] It should be noted that since the drawing data points are connected by smooth straight lines or other curves to show the overall change pattern and trend direction of the object, the degree of close association of the drawing data points can only be used to determine the analysis of the edge where each drawing data point is located. The relationship between the drawing data points on each edge is not taken into account. Therefore, the connection relationship between different edges is quantified by the degree of connection of each drawing data point.

[0061] Preferably, in some implementations of the embodiments of the present invention, the specific method for obtaining all data edges of each drawing data point is:

[0062] For any drawing data point, the straight line connecting edge between the drawing data point and each connecting drawing data point of the drawing data point is used as the data edge of the drawing data point.

[0063] Preferably, in some implementations of the embodiments of the present invention, the specific method for obtaining the degree of connection of each drawing data point according to the difference between the data edges in the surrounding range of each drawing data point is:

[0064] For any drawing data point, the average of the slopes of the straight lines connecting all drawing data points within the neighborhood of the drawing data point and the drawing data point is recorded as the first mean; the first mean is recorded as the slope of the straight line connecting all drawing data points within the neighborhood of the drawing data point. The absolute value of the difference between the slope of the first data edge and the first mean is taken as the The difference value of each data edge;

[0065] The product of the cumulative sum of the difference values ​​of all data edges of the drawing data point and the variance of the slopes of all data edges of the drawing data point is taken as the degree of connection of the drawing data point.

[0066] The specific formula is:

[0067]

[0068] In the formula, Indicates the degree of connection of drawing data points; The slope variance of all data edges representing the drawing data points; The number of all data edges representing the drawing data points; Indicates the first The slope of the data edge; It represents the mean value of the slopes of the straight lines connecting all drawing data points within the neighborhood of the drawing data point and the drawing data point; Indicates taking the absolute value.

[0069] At this point, the degree of connection of the drawing data points is obtained through the above method.

[0070] Step S003: According to the differences in the close association and connection degrees of the drawing data points in different historical versions of CAD drawing data, obtain the degree to be modified of each drawing data point; according to the differences and similarities in the number of data edges of the drawing data points in adjacent historical versions of CAD drawing data, obtain the information representation capability of the drawing data points in each historical version of the CAD drawing data; according to the information representation capability and the trend of the number of data edges of the drawing data points in different historical versions of CAD drawing data, obtain the contribution degree of the drawing data points; correct the degree to be modified of the drawing data points according to the contribution degree, and obtain the importance of the drawing data points.

[0071] It should be noted that due to the drawing order of CAD drawing data, there are data edges in different historical versions of CAD drawing data that disappear and reappear, appear and then disappear, and never change. Therefore, there is still inaccuracy in quantifying the importance simply by the degree to be modified. Therefore, it is necessary to obtain the contribution of the drawing data point through the type of role played by the data edge of the drawing data point in the drawing process of the CAD drawing data, and then correct the degree to be modified to obtain the importance of the drawing data point.

[0072] 1. Get the degree of modification of the drawing data points.

[0073] It should be noted that, in the process of drawing CAD drawing data of different historical versions, if the two characteristics of the close association degree and the connection degree of the drawing data point have never changed, it means that the drawing data point is clear in multiple historical versions of CAD drawing data and does not need to be modified. The smaller the degree of modification of the drawing data point is, the more important the drawing data point represents in the CAD drawing data, and the greater the importance of the drawing data point is. On the contrary, if the drawing data point is modified, it means that the drawing data point needs to be changed later. The greater the degree of modification of the drawing data point is, it cannot represent important information in the CAD drawing data, and the smaller the importance of the drawing data point is.

[0074] Preferably, in some implementations of the embodiments of the present invention, according to the differences in the close association degree and connection degree of the drawing data points in different historical versions of CAD drawing data, the specific method for obtaining the degree of modification of each drawing data point is:

[0075] The first The historical version of the CAD drawing data The close correlation between the first drawing data point and the The historical version of the CAD drawing data The absolute value of the difference between the close correlation degrees of the drawing data points is recorded as the first difference; The historical version of the CAD drawing data The degree of connection between the data points of the first drawing and the The historical version of the CAD drawing data The absolute value of the difference between the connection degrees of the data points of the drawing is recorded as the second difference; the sum of the first difference and the second difference is recorded as the first difference. The historical version of the CAD drawing data Modification factor for each drawing data point;

[0076] All historical versions of CAD drawing data The cumulative sum of the modification factors of the drawing data points is used as the The degree of modification of each drawing data point.

[0077] The specific formula is:

[0078]

[0079] In the formula, Indicates The degree of modification of each drawing data point; Indicates the total number of CAD drawing data of all historical versions; Indicates The historical version of the CAD drawing data The closeness of the data points in the drawing; Indicates The historical version of the CAD drawing data The closeness of the data points in the drawing; Indicates The historical version of the CAD drawing data The degree of connectivity of the data points of the drawing; Indicates The historical version of the CAD drawing data The degree of connectivity of the data points of the drawing; Indicates taking the absolute value.

[0080] At this point, the degree of modification of the drawing data points is obtained.

[0081] 2. Get the contribution degree of the drawing data points.

[0082] It should be noted that in different historical versions of CAD drawing data, if the draftsman needs to analyze and modify the data edges in the drawing data, the existing data edges will be eliminated first, and then drawn in the CAD drawing data after the data edges are modified as needed; that is, the change of this type of data edge is: first appears, then disappears, and then appears again, indicating that the data edge belongs to the modified data edge, and the modified data edge can better reflect the important data of the CAD drawing data, so the contribution of the drawing data points on the modified data edge is greater;

[0083] The draftsman will first create CAD drawing data based on the auxiliary data edge. When the creation is completed, the auxiliary data edge needs to be eliminated to retain important data; that is, the change of the data edge is: first appear and then disappear, indicating that the data edge belongs to the auxiliary data edge. Since the role of the auxiliary data edge is only auxiliary and has no other meaning, the contribution of the drawing data points on the auxiliary data edge is small;

[0084] When drawing CAD drawing data, the first step is to formulate a framework. Once the framework is determined, it will not be changed. That is, the change of the data edge is: it appears in the first historical version of the CAD drawing data and has not changed since then, indicating that the data edge belongs to the framework data edge, and the contribution of the drawing data points on the framework data edge is large;

[0085] In summary, in different historical versions of CAD drawing data, there are different types of data edges, and different types of data edges have different meanings for the CAD drawing data.

[0086] Preferably, in some implementations of the embodiments of the present invention, according to the difference and similarity in the number of data edges of the drawing data points in the CAD drawing data of adjacent historical versions, the specific method for obtaining the information representation capability of the drawing data points in each historical version of the CAD drawing data is:

[0087] For any drawing data point, The historical version of the CAD drawing data All data edges and the first The historical version of the CAD drawing data All data edges of the drawing data points Algorithm, get the The historical version of the CAD drawing data The number of matching data edges for each drawing data point;

[0088] The first The historical version of the CAD drawing data The number of data edges of the drawing data point is the same as the The historical version of the CAD drawing data The ratio of the number of data edges of the drawing data points is recorded as the change value of the number of data edges; The product of the reciprocal of the number of matching data edges of the drawing data point and the change value of the number of data edges is recorded as the first product; the absolute value of the difference between the first product and 1 is recorded as the second product. The historical version of the CAD drawing data The information representation capability of each drawing data point.

[0089] The specific formula is:

[0090]

[0091] In the formula, Indicates The historical version of the CAD drawing data The information representation capability of each drawing data point; Indicates The historical version of the CAD drawing data The number of data edges per drawing data point; Indicates The historical version of the CAD drawing data The number of data edges per drawing data point; Indicates The historical version of the CAD drawing data The number of matching data edges for each drawing data point; Indicates taking the absolute value.

[0092] It should be noted that It indicates the change relationship of the number of data edges of the same drawing data point in adjacent historical versions, and Indicates the data edge matching results of the drawing data points in adjacent historical versions. and The difference between the ratio and 1 is used to characterize the information characterization capability of the drawing data point after the historical version changes; The algorithm is a prior art and will not be described in detail in this embodiment.

[0093] Preferably, in some implementations of the embodiments of the present invention, according to the information representation capability and the number of data edges of the drawing data points in different historical versions of CAD drawing data, the specific method for obtaining the contribution degree of the drawing data points is:

[0094] For any drawing data point, the number of data edges of the drawing data point in all historical versions of CAD drawing data is fitted into a curve using the least squares method to obtain the data edge change curve of the drawing data point;

[0095] For any data point on the data edge change curve, if the slope of the data point is greater than or equal to 0, the data is recorded as a non-target data point; if the slope of the data point is less than 0, the data is recorded as a target data point; the absolute value of the difference between the number of all target data points and the number of all non-target data points on the data edge change curve is used as the auxiliary possibility of the drawing data point;

[0096] The product of the cumulative sum of the information representation capabilities of the drawing data points in all historical versions of the CAD drawing data and the inverse of the auxiliary possibility of the drawing data points is taken as the contribution degree of the drawing data points.

[0097] The specific formula is:

[0098]

[0099] In the formula, Indicates The contribution of each drawing data point; Indicates Possibility of auxiliary drawing data points; Indicates the total number of CAD drawing data of all historical versions; Indicates The historical version of the CAD drawing data The information representation capability of each drawing data point.

[0100] It should be noted that, since the information of the drawing data points changes greatly after the historical version changes, the corresponding contribution of the drawing data points is greater, and the corresponding importance of the drawing data points is greater; the least squares method is an existing technology, and this embodiment will not be described in detail here.

[0101] At this point, the contribution degree of the drawing data points is obtained.

[0102] 3. Obtain the importance of drawing data points.

[0103] It should be noted that if a drawing data point is clear in multiple historical versions of CAD drawing data and does not need to be modified, the smaller the degree of modification of the drawing data point is, the more important the drawing data point represents in the CAD drawing data. On the contrary, if a drawing data point is modified, indicating that the drawing data point needs to be changed later, the greater the degree of modification of the drawing data point is, and it cannot represent important information in the CAD drawing data, then the importance of the drawing data point is smaller. Since the greater the contribution of the drawing data point, the greater the corresponding importance of the drawing data point. Therefore, the degree of modification is corrected based on the contribution of the drawing data point to obtain the importance of the drawing data point.

[0104] Preferably, in some implementations of the embodiments of the present invention, the degree of modification of the drawing data point is corrected by the contribution degree, and the specific method for obtaining the importance of the drawing data point is:

[0105] For any drawing data point, the normalized value of the product of the contribution degree of the drawing data point and the inverse of the degree to be modified of the drawing data point is used as the importance of the drawing data point.

[0106] The specific formula is:

[0107]

[0108] In the formula, Indicates The importance of each drawing data point; Indicates The degree of modification of each drawing data point; Indicates The contribution of each drawing data point; represents linear normalization.

[0109] So far, the importance of the drawing data points is obtained through the above method.

[0110] Step S004: performing different types of compression on the CAD drawing data based on the importance to obtain compressed CAD drawing data; and storing the compressed CAD drawing data in a database.

[0111] Preferably, a threshold parameter is preset , wherein this embodiment is based on This example is described as an example, and this embodiment is not specifically limited. Depends on the specific implementation situation;

[0112] If the importance of the drawing data point is greater than or equal to the threshold parameter , record the drawing data points as important drawing data points; record the sequence composed of all important drawing data points in the CAD drawing data as an important data sequence; record the sequence composed of all other drawing data points in the CAD drawing data as an identification auxiliary sequence; use the transformation coding algorithm to lossily compress the identification auxiliary sequence; use the Huffman coding algorithm to losslessly compress the important data sequence; then obtain the compressed CAD drawing data; store the compressed CAD drawing data in the database.

[0113] Among them, the conversion coding algorithm and the Huffman coding algorithm are existing technologies, and will not be described in detail in this embodiment.

[0114] See also Figure 2 , which shows a feature relationship flow chart of CAD drawing data storage.

[0115] Through the above steps, a CAD drawing data storage method is completed.

[0116] The present invention also proposes a CAD drawing data storage system, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of a CAD drawing data storage method in steps S001 to S004 are implemented.

[0117] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for storing CAD drawing data, characterized in that: The method comprises the following steps: Acquire several historical versions of CAD drawing data; each historical version of CAD drawing data includes several drawing data points; According to the distribution of drawing data points in the surrounding range of each drawing data point, the close correlation degree of the drawing data points is obtained; all data edges of each drawing data point are obtained; according to the difference between the data edges in the surrounding range of each drawing data point, the connection degree of each drawing data point is obtained; According to the differences in the close association and connection degrees of the drawing data points in different historical versions of CAD drawing data, the degree of modification to be performed for each drawing data point is obtained; according to the differences and similarities in the number of data edges of the drawing data points in the adjacent historical versions of CAD drawing data, the information representation capability of the drawing data points in each historical version of CAD drawing data is obtained; according to the information representation capability and the trend of the number of data edges of the drawing data points in different historical versions of CAD drawing data, the contribution degree of the drawing data points is obtained; the degree of modification to be performed for the drawing data points is corrected by the contribution degree to obtain the importance of the drawing data points; Perform different types of compression on the CAD drawing data based on the importance to obtain compressed CAD drawing data; store the compressed CAD drawing data in a database; The specific method of obtaining the close correlation degree of the drawing data points according to the distribution of the drawing data points in the surrounding range of each drawing data point is as follows: Preset a window parameter For any drawing data point, a size of Window, and make the neighborhood range of the drawing data point; Use the drawing data points directly connected to the drawing data points as the connecting drawing data points of the drawing data points; The ratio of the number of connected drawing data points within the neighborhood of the drawing data point to the number of all drawing data points within the neighborhood of the drawing data point is recorded as the effective connectivity of the drawing data point; the product of the effective connectivity of the drawing data point and the inverse of the variance of the Euclidean distance between all drawing data points within the neighborhood of the drawing data point and the drawing data point is recorded as the close association degree of the drawing data point; The specific method of obtaining the connection degree of each drawing data point according to the difference between the data edges in the surrounding range of each drawing data point is as follows: For any drawing data point, the average of the slopes of the straight lines connecting all drawing data points within the neighborhood of the drawing data point and the drawing data point is recorded as the first mean; the first mean is recorded as the slope of the straight line connecting all drawing data points within the neighborhood of the drawing data point. The absolute value of the difference between the slope of the first data edge and the first mean is taken as the The difference value of each data edge; The product of the cumulative sum of the difference values ​​of all data edges of the drawing data points and the variance of the slopes of all data edges of the drawing data points is taken as the degree of connection of the drawing data points; The specific method of obtaining the degree of modification of each drawing data point according to the difference in the close association degree and connection degree of the drawing data point in different historical versions of CAD drawing data is as follows: The first The historical version of the CAD drawing data The close correlation between the first drawing data point and the The historical version of the CAD drawing data The absolute value of the difference between the close correlation degrees of the drawing data points is recorded as the first difference; The historical version of the CAD drawing data The degree of connection between the data points of the first drawing and the The historical version of the CAD drawing data The absolute value of the difference between the connection degrees of the data points of the drawing is recorded as the second difference; the sum of the first difference and the second difference is recorded as the first difference. The historical version of the CAD drawing data Modification factor for each drawing data point; All historical versions of CAD drawing data The cumulative sum of the modification factors of the drawing data points is used as the The degree of modification of each drawing data point; The specific method of obtaining the information representation capability of the drawing data points in each historical version of the CAD drawing data according to the number difference and similarity of the data edges of the drawing data points in the adjacent historical versions of the CAD drawing data includes: For any drawing data point, The historical version of the CAD drawing data All data edges and the first The historical version of the CAD drawing data All data edges of the drawing data points Algorithm, get the The historical version of the CAD drawing data The number of matching data edges for each drawing data point; The first The historical version of the CAD drawing data The number of data edges of the drawing data point is the same as the The historical version of the CAD drawing data The ratio of the number of data edges of the drawing data points is recorded as the change value of the number of data edges; The product of the reciprocal of the number of matching data edges of the drawing data point and the change value of the number of data edges is recorded as the first product; the absolute value of the difference between the first product and 1 is recorded as the second product. The historical version of the CAD drawing data The information representation capability of each drawing data point; The specific method of obtaining the contribution degree of the drawing data point according to the information representation capability and the change trend of the number of data edges of the drawing data point in different historical versions of CAD drawing data includes: For any drawing data point, the number of data edges of the drawing data point in all historical versions of CAD drawing data is fitted into a curve using the least squares method to obtain the data edge change curve of the drawing data point; For any data point on the data edge change curve, if the slope of the data point is greater than or equal to 0, the data is recorded as a non-target data point; if the slope of the data point is less than 0, the data is recorded as a target data point; the absolute value of the difference between the number of all target data points and the number of all non-target data points on the data edge change curve is used as the auxiliary possibility of the drawing data point; The product of the cumulative sum of the information representation capabilities of the drawing data points in all historical versions of the CAD drawing data and the inverse of the auxiliary possibility of the drawing data points is taken as the contribution degree of the drawing data points; The method of correcting the degree of modification of the drawing data point by the contribution degree to obtain the importance of the drawing data point includes: For any drawing data point, the normalized value of the product of the contribution degree of the drawing data point and the inverse of the degree to be modified of the drawing data point is used as the importance of the drawing data point.

2. A CAD drawing data storage method according to claim 1, characterized in that: The specific method of obtaining all data edges of each drawing data point includes: The straight line connecting edge between the drawing data point and each connecting drawing data point of the drawing data point is used as the data edge of the drawing data point.

3. A CAD drawing data storage method according to claim 1, characterized in that: The specific method of performing different types of compression on the CAD drawing data based on the importance to obtain the compressed CAD drawing data includes: If the importance of a drawing data point is greater than or equal to a preset threshold, the drawing data point is recorded as an important drawing data point; the sequence composed of all important drawing data points in the CAD drawing data is recorded as an important data sequence; the sequence composed of all other drawing data points in the CAD drawing data is recorded as an identification auxiliary sequence; the identification auxiliary sequence is losslessly compressed using a transformation coding algorithm; the important data sequence is losslessly compressed using a Huffman coding algorithm; and the compressed CAD drawing data is obtained.

4. A CAD drawing data storage system, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the computer program, the steps of a CAD drawing data storage method as described in any one of claims 1 to 3 are implemented.