A CAD drawing collaborative design and version control method

By collecting data from CAD drawings, generating unique identifiers from file hash values, and compressing and uploading them, combined with authentication and access control, the system automatically merges drawing version differences, generates incremental version files and version change reports, and solves the problem of version management and difference merging that cannot be automated and intelligently achieved in existing technologies. This improves the reliability of data transmission and storage, reduces manual operations, and enhances design efficiency and drawing consistency.

CN122197112APending Publication Date: 2026-06-12SHANGHAI JINQU INFORMATION TECH

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
SHANGHAI JINQU INFORMATION TECH
Filing Date
2026-02-04
Publication Date
2026-06-12

AI Technical Summary

Technical Problem

In existing technologies, automated and intelligent version management and intelligent technology for CAD drawings cannot achieve automated and intelligent version management and difference merging.

Method used

By collecting data from CAD drawings, a unique identifier for the file hash value is generated, and the data is compressed and uploaded. Combined with authentication and access control, the differences between drawing versions are automatically merged to generate incremental version files and version change reports.

Benefits of technology

It achieves high-efficiency data transmission and storage reliability. By implementing patented technologies, it ensures the integrity and validity of drawing data, and guarantees the generation of unique version numbers for drawing data. This improves the reliability of data transmission and storage, reduces manual operation, enhances design efficiency and drawing version management, and solves the problems of automated and intelligent version management and difference merging.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122197112A_ABST
    Figure CN122197112A_ABST
Patent Text Reader

Abstract

The application discloses a CAD drawing collaborative design and version control method, and relates to the technical field of computer aided design, which comprises the following steps: collecting CAD drawing data, sending an upload CAD drawing request to a server, uploading the CAD drawing to the server, and generating CAD drawing version data; according to the CAD drawing version data, initiating a download CAD drawing request to the server, verifying according to identity information and authority, and generating verified download drawings when the verification is passed; according to the merged CAD drawing, recording the incremental change part of the CAD drawing, intelligently compressing and storing the drawing version, and generating an incremental version file; and analyzing the differences between each version based on the incremental version file, and generating a version change report. The application improves the design efficiency and drawing consistency, ensures the compatibility and accuracy between versions, and further improves the design quality and team cooperation efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer-aided design technology, and in particular to a method for collaborative design and version control of CAD drawings. Background Technology

[0002] With the rapid development of computer-aided design (CAD) technology, CAD drawings are widely used in various industries, especially in engineering design, building construction and machinery manufacturing. Computer-aided design not only improves design accuracy, but also greatly enhances design efficiency and productivity. Through CAD systems, designers can draw, modify and optimize drawings more accurately and quickly, reduce human error, and accelerate the entire design cycle of a product from concept to completion.

[0003] While existing CAD drawing version control systems have solved the problem of file storage and management to some extent, they mainly rely on manual uploading, downloading, and manual version comparison, and cannot achieve automated and intelligent version management and difference merging. Summary of the Invention

[0004] In view of the aforementioned existing problems, the present invention is proposed.

[0005] Therefore, this invention provides a collaborative design and version control method for CAD drawings, which solves the problems of automated version management and intelligent difference merging.

[0006] To solve the above-mentioned technical problems, the present invention provides the following technical solution: This invention provides a collaborative design and version control method for CAD drawings, which includes: collecting CAD drawing data, sending a request to upload CAD drawings to a server, uploading the CAD drawings to the server, and generating CAD drawing version data; Based on the CAD drawing version data, a request to download the CAD drawing is sent to the server. The system verifies the user's identity and permissions. Once the verification is successful, the verification is generated and the drawing is downloaded. After verification, the downloaded drawings are geometrically modified to obtain the modified CAD drawings. Based on the differences between the modified CAD drawings and the current version of the drawings, the modified parts are automatically merged to generate a merged CAD drawing. Based on the merged CAD drawings, record the incremental changes in the CAD drawings, and intelligently compress and store the drawing versions to generate incremental version files; Based on the incremental version file analysis, the differences between each version are analyzed to generate a version change report.

[0007] As a preferred embodiment of the CAD drawing collaborative design and version control method of the present invention, the specific steps of collecting CAD drawing data, sending an upload request to the server, uploading the CAD drawings to the server, and generating CAD drawing version data are as follows. Collect CAD drawing data, check the integrity of CAD drawings, extract geometric information, and generate a valid drawing dataset; Perform hash verification on the valid drawing dataset to obtain the file hash value; The CAD drawing file is compressed based on the file hash value, and the compressed drawing file is then uploaded to the server in chunks. On the server, the file hash value and upload time are combined to generate a version number, and the version number is associated with the compressed drawing file for storage, thus generating CAD drawing version data.

[0008] As a preferred embodiment of the CAD drawing collaborative design and version control method of the present invention, the specific steps for performing hash verification on the valid drawing dataset to obtain the file hash value are as follows: The integrity of the valid drawing dataset is checked using an integrity verification method to obtain the verification drawing dataset; A hash algorithm is used to calculate the file hash value by analyzing the complete drawing byte stream in the verification drawing dataset.

[0009] As a preferred embodiment of the CAD drawing collaborative design and version control method of the present invention, the following steps are taken: Based on the CAD drawing version data, a request to download the CAD drawing is initiated to the server; verification is performed based on identity information and permissions; and upon successful verification, the drawing is downloaded after verification. Based on the CAD drawing version data, the client sends a download request to the server and compares the provided username, password, and token with the authentication information stored in the database. A hash comparison algorithm is used for security verification, and a verification success flag is generated. According to the successful verification flag, if the hash values ​​of the username, password, and token match and are valid with the values ​​stored in the database, the verification is successful, and the drawing is downloaded after verification.

[0010] As a preferred embodiment of the CAD drawing collaborative design and version control method of the present invention, the following steps are taken: Based on the CAD drawing version data, the client initiates a download request to the server, compares the provided username, password, and token with the authentication information stored in the database, performs security verification using a hash comparison algorithm, and generates a verification success flag. The client sends a download request to the server based on the required CAD drawing version data, and extracts the username, password and token provided by the client from the download request for authentication to obtain the download request information; After receiving the download request, the server uses a hash comparison algorithm to verify whether the username, password, and token provided by the client match the authentication information in the database. If the verification is successful, a verification success flag is generated.

[0011] As a preferred embodiment of the CAD drawing collaborative design and version control method of the present invention, the following steps are taken: The geometric shape of the downloaded, verified drawing is modified to obtain the modified CAD drawing; and the modified parts are automatically merged to generate a merged CAD drawing based on the differences between the modified CAD drawing and the current version drawing. The geometry of the downloaded, verified drawings is modified using CAD drawing editing tools to generate the modified CAD drawings. The modified CAD drawing is compared with the CAD drawing version data one by one to extract the differences in geometry, layers and dimensions, and a merged CAD drawing is generated.

[0012] As a preferred embodiment of the collaborative design and version control method for CAD drawings described in this invention, the steps of comparing the modified CAD drawings with the CAD drawing version data one by one, extracting the differences in geometry, layers, and dimensions of the modified CAD drawings, and generating a merged version of the CAD drawings are as follows. By using CAD analysis tools, the geometric data of the modified CAD drawings are compared one by one with the current version of the drawings to generate a dataset of geometric shape differences. Extract CAD drawing version data and layer information of the modified CAD drawing from the geometric shape difference dataset, and compare the differences in the addition, reduction, modification and content of the layers one by one to output the layer difference dataset; By comparing the dimensional differences between the CAD drawing version data and the modified CAD drawing, and combining the geometric difference dataset and the layer difference dataset, a merged version of the CAD drawing is generated.

[0013] As a preferred embodiment of the CAD drawing collaborative design and version control method of the present invention, the step of recording the incremental changes of the CAD drawings based on the merged CAD drawings, and intelligently compressing and storing the drawing versions to generate incremental version files, includes the following specific steps. The merged CAD drawings are compared with the previous version of the drawing file stored on the server. The incremental changes between the merged CAD drawings and the previous version of the drawing file are extracted and an incremental change file is generated. The LZ77 algorithm is used to replace repeated character sequences in the incremental change file with pointers, reducing data storage space and generating incremental version files.

[0014] As a preferred embodiment of the CAD drawing collaborative design and version control method of the present invention, the specific steps for analyzing the differences between versions based on incremental version files and generating a version change report are as follows. Extract version information from the incremental version file, mark the differences with the merged CAD drawing file, and generate version difference data; Compare the version difference data with the merged CAD drawing file to identify changes in geometry, layers, and dimensions, and generate a version change report.

[0015] As a preferred embodiment of the CAD drawing collaborative design and version control method of the present invention, the steps for comparing version difference data with the geometric shape, layer, and dimension modifications between the merged CAD drawing files and generating a version change report are as follows. The geometric changes extracted from the version difference data are compared one by one with the geometric elements in the merged CAD drawing file, and the newly added and modified geometric elements are detected to generate geometric difference data. Compare the version difference data with the layer information in the merged CAD drawing file, analyze the added and deleted layers, record the changes in objects within the layers, and generate a layer difference analysis report. The system compares the version difference data with the dimension annotations and scale information in the merged CAD drawing file, identifies the changed dimensions, and generates dimension difference data. Combine geometric difference data, layer difference analysis report, and size difference data to generate a version change report.

[0016] The beneficial effects of this invention are as follows: By using hash verification and compressed uploading in the computer-aided design system, the integrity of drawing data and the generation of a unique version number are ensured, thereby improving the reliability of data transmission and storage; by automatically comparing and merging the differences between the modified CAD drawings and the current version of the drawings, the new version is accurately merged and generated, reducing manual operations, improving design efficiency and drawing consistency, ensuring compatibility and accuracy between versions, and thus improving design quality and team collaboration efficiency. Attached Figure Description

[0017] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the following description of the embodiments will be briefly introduced. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0018] Figure 1 A flowchart for collaborative design and version control methods for CAD drawings.

[0019] Figure 2 A flowchart for uploading CAD drawings.

[0020] Figure 3 A flowchart for verifying CAD drawing downloads.

[0021] Figure 4 This is a flowchart for modifying and merging drawings. Detailed Implementation

[0022] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

[0023] Many specific details are set forth in the following description in order to provide a full understanding of the invention. However, the invention may also be practiced in other ways different from those described herein, and those skilled in the art can make similar extensions without departing from the spirit of the invention. Therefore, the invention is not limited to the specific embodiments disclosed below.

[0024] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The phrase "in one embodiment" appearing in different places in this specification does not necessarily refer to the same embodiment, nor is it a single or selective embodiment that is mutually exclusive with other embodiments.

[0025] Reference Figures 1-4 This is one embodiment of the present invention, which provides a collaborative design and version control method for CAD drawings, including the following steps: S1. Collect CAD drawing data and send an upload request to the server to upload the CAD drawing to the server and generate CAD drawing version data.

[0026] S1.1 Collect CAD drawing data, check the integrity of the CAD drawings, extract geometric information, and generate a valid drawing dataset.

[0027] It should be noted that the header identifier and version mark fields of the CAD drawing file are parsed to verify whether the file format signature is consistent with the expected CAD format. The segment offset and segment length recorded in the directory index area are read, and the drawing byte stream is traversed segment by segment to verify the consistency of "segment length - actual number of bytes read - segment check code". During the traversal, the check value of each segment is calculated and compared with the check record in the directory index area. If there is an offset out of bounds, a segment length mismatch, or an inconsistent check value, the CAD drawing is determined to be damaged and the damaged location and segment number are recorded. After all segments pass the consistency check, the geometric entity records are parsed one by one according to the entity area pointed to by the directory index area. The start and end boundaries, type codes, and parameter numbers of the entity records are checked to see if they meet the syntax constraints. The entity records that pass the check are collected into a list of parsable geometric elements. Based on the list of geometric elements, the parameter sets corresponding to lines, paths, and arcs are extracted, and finally a valid drawing dataset is generated.

[0028] S1.2. Perform integrity checks on the valid drawing dataset using integrity verification methods to obtain the verification drawing dataset.

[0029] It should be noted that when performing integrity verification on a valid drawing dataset, a block verification list is first established for each file in the valid drawing dataset. The file byte stream is then divided according to a fixed block size order, and each data block is sequentially numbered. The start offset, end offset, and block length of each data block are recorded. The content of each data block is read block by block, and a hash calculation is performed on each data block to obtain a block hash value. The block number, block length, and block hash value are written into the block verification record. A set of reference hash values ​​bound to the file version number is read from the storage medium. Then, the block hash values ​​in the block verification record are compared with the set of reference hash values ​​one by one according to the block number. When a discrepancy in block hash values ​​is found... When a data block is corrupted, the corresponding data block number and offset range are recorded. When the reference hash value set exists but the corresponding block number is missing from the block verification record, the corresponding data block is missing, and the missing block number and offset range are recorded. When the block length is inconsistent with the reference record, a truncation or splicing error is detected, and the abnormal block length is recorded. The data blocks that have passed the integrity verification are reassembled into a complete file in the original block number order, and the "file identifier, version number, list of passed blocks, list of corrupted blocks, list of missing blocks, and verification timestamp" are written into the verification result record. Finally, the files that have passed the integrity verification and the corresponding verification result records are combined into a verification drawing dataset.

[0030] S1.3. Use a hash algorithm to calculate the complete drawing byte stream in the verification drawing dataset and generate a file hash value.

[0031] It should be noted that the byte stream of each complete drawing in the verification drawing dataset is extracted. Each complete drawing byte stream is processed step-by-step using a hash algorithm to calculate a fixed-length file hash value. The file hash value is obtained by encrypting each byte of the drawing byte stream, ensuring that the generated file hash value for each complete drawing is unique and irreversible.

[0032] S1.4. Compress the CAD drawing file according to the file hash value, obtain the compressed drawing file, and upload it to the server in chunks.

[0033] It should be noted that the file hash value is used as the unique identifier for the CAD drawing file, and compression is performed to reduce the file's storage space. The compressed CAD drawing file retains the complete drawing content and structure while reducing the file size for more efficient storage and transmission. The compressed drawing file will be divided into multiple small blocks, each of suitable size for transmission, ensuring the data integrity of each block. Each block will be uploaded to the server sequentially using a block-by-block upload method.

[0034] S1.5. On the server, combine the file hash value and upload time to generate a version number, and associate the version number with the compressed drawing file to generate CAD drawing version data.

[0035] It should be noted that the file hash value and upload timestamp of the uploaded compressed drawing file are extracted from the file hash value. Using the file hash value and upload time as input, a unique version number is generated. This unique version number uniquely identifies each uploaded CAD drawing file and is stored on the server in association with the associated compressed drawing file, ensuring that the version information of each CAD drawing file is accurately recorded and managed, thus generating CAD drawing version data.

[0036] S2. Based on the CAD drawing version data, initiate a request to download the CAD drawing from the server. Verify the identity information and permissions. Once the verification is successful, generate the verification and download the drawing.

[0037] S2.1 The client sends a download request to the server based on the required CAD drawing version data, and extracts the username, password and token provided by the client from the download request for authentication to obtain the download request information.

[0038] It should be noted that the process involves retrieving version index information from stored CAD drawing version data, sorting and filtering version records based on version number, file hash value, and update time, selecting the target version according to the current collaborative task or modification requirements, and verifying that the file status corresponding to the target version is downloadable. After determining the version, the download request content is assembled according to a predefined download request structure. The version number, file hash value, and file storage identifier of the target version are written into the request body as version location parameters. Simultaneously, the client identifier, request timestamp, and access credential fields are filled into the request header, and the entire request is encapsulated to form a download request that can be sent to the server. The download request includes the username, password, and token provided by the client, which are crucial for verifying the client's legitimacy. After the request is sent to the server, the server extracts the username, password, and token provided by the client from the download request for authentication. During the authentication process, the server compares the identity information provided by the client with the identity information stored in the database to ensure the correctness and validity of the identity information. Upon successful authentication, the server finally generates the download request information.

[0039] It should be noted that the above content has been agreed to by the user and is for legitimate purposes.

[0040] S2.2 After receiving the download request information, the server uses a hash comparison algorithm to verify whether the username, password and token provided by the client match the authentication information in the database. When the verification is successful, a verification success flag is generated.

[0041] It should be noted that the username, password, and token provided by the client are verified using a hash comparison algorithm based on the authentication information stored in the database. During the verification process, the server calculates a hash value for the password and token provided by the client and compares it with the encrypted value stored in the database to ensure the consistency of the username, password, and token. If all information matches, the verification is successful, and the server generates a verification success flag.

[0042] It should also be noted that a hash comparison algorithm is a method used to verify data integrity and consistency. Specifically, data (such as usernames, passwords, and tokens) is input into a hash algorithm to generate a fixed-length hash value, which is then compared with a stored hash value. If the two hash values ​​match, it means that the data has not been altered during transmission or storage, and the verification is successful.

[0043] S2.3. Based on the successful verification flag, if the hash values ​​of the username, password, and token match and are valid with the values ​​stored in the database, the verification is successful, and the drawing is downloaded after verification.

[0044] It should be noted that, according to the successful verification flag, the server confirms successful authentication when the hash values ​​of the username, password, and token match and are valid as stored in the database. The server will ensure that the hash values ​​of the username, password, and token provided by the client completely match the encrypted values ​​stored in the database and that there are no invalid entries. After successful verification, the server generates a verification-downloadable drawing.

[0045] S3. Modify the geometry of the downloaded drawings after verification, obtain the modified CAD drawings, and automatically merge the modified parts to generate a merged CAD drawing based on the differences between the modified CAD drawings and the current version of the drawings.

[0046] It should be noted that in existing methods, CAD drawings with modified geometry typically require manual comparison with the current version of the drawing, identifying and merging the modified parts. This process relies on the designer's experience and manual operation, is prone to omissions, and is inefficient, especially when there are frequent modifications between multiple versions, making management difficult.

[0047] This invention employs an automated difference comparison method to identify geometric differences between the modified drawing and the current version of the drawing. It uses geometric shape difference datasets, layer difference datasets, and dimensional difference data as merging criteria to intelligently merge the modified parts. This method can accurately and efficiently merge modifications, reduce manual intervention, improve the work efficiency of designers, and ensure the consistency and accuracy of drawing versions.

[0048] S3.1 Use CAD drawing editing tools to modify the geometry of the downloaded drawings after verification, and generate modified CAD drawings.

[0049] It should be noted that after opening and verifying the downloaded drawing in the CAD drawing editing tool, the geometric elements in the drawing are modified according to the design requirements, such as adjusting lines, curves, angles, and dimensions. Modifications include adding new geometric shapes and deleting the position and size of unnecessary elements. After modification, the modified CAD drawing is generated.

[0050] S3.2 Using CAD analysis tools, compare the geometric data of the modified CAD drawings with the current version of the drawings one by one to generate a geometric shape difference dataset.

[0051] It should be noted that the CAD analysis tool loads the modified CAD drawing and the current version of the drawing, and compares the geometric data of the two drawings one by one, including the position, size, shape, and other geometric features of each graphic element. The CAD analysis tool will examine the geometric differences between the two drawings one by one, record the specific location and nature of each difference, and generate a geometric difference dataset.

[0052] S3.3 Extract the CAD drawing version data and the layer information of the modified CAD drawing from the geometric shape difference dataset, and compare the differences in the addition, subtraction, modification and content of the layers one by one, and output the layer difference dataset.

[0053] It should be noted that layer-related difference data is identified and extracted from the geometric difference dataset. Layer information of the CAD drawing version data and the modified CAD drawing is compared one by one, analyzing the differences in the addition, deletion, modification, and content of elements in each layer. The comparison process includes examining newly added, deleted, and modified parts of the layers, recording each difference, and outputting a layer difference dataset.

[0054] S3.4 Compare the dimensional differences between the CAD drawing version data and the modified CAD drawing, and combine the geometric difference dataset and the layer difference dataset to generate a merged CAD drawing.

[0055] It should be noted that all dimension information, including length, width, and angle dimensions, is extracted from both the CAD drawing version data and the revised CAD drawing. Dimensions at the same location and for the same elements are compared one by one to check if each dimension value in the revised CAD drawing matches the dimension value in the CAD drawing version data. If a dimension value changes, the details of the change are recorded, including the modified dimension value and the location of the change. By accurately measuring and comparing the values ​​of each dimension, the addition, reduction, and modification of dimensions are recorded. The geometric difference dataset and the layer difference dataset are combined, integrating the extracted difference information to ensure that differences in the geometry and layer content of the drawings are comprehensively addressed. Based on this difference data, a merged CAD drawing is generated.

[0056] S4. Based on the merged CAD drawings, record the incremental changes in the CAD drawings, and intelligently compress and store the drawing versions to generate incremental version files.

[0057] It should be noted that existing methods typically manage drawing versions by storing the entire file as a new version. This not only consumes a large amount of storage space, but also makes it difficult to manage the differences between versions when dealing with multiple versions, resulting in inefficient version control.

[0058] This invention records incremental changes and employs intelligent compression storage technology to store only the modified portions of the drawing, rather than the entire drawing. This saves storage space and allows for efficient tracking of differences between each version. The generation of incremental version files makes version management more streamlined and efficient, improving the storage and management capabilities of drawings.

[0059] S4.1 Compare the merged CAD drawings with the previous version of the drawing file stored on the server, extract the incremental changes between the merged CAD drawings and the previous version of the drawing file, and generate an incremental change file.

[0060] It should be noted that the process involves loading the merged CAD drawing and the previous version of the drawing file, and comparing the geometric data, dimensions, and layer content of the two sets of drawings one by one. During the comparison, the unique identifiers of the geometric elements extracted from the merged CAD drawing and the previous version of the drawing file are used as the comparison benchmark. Each geometric element in the two drawings is matched one by one, comparing its type code, geometric parameters, spatial location, and layer information. When a geometric element with the same unique identifier exists in the merged CAD drawing but not in the previous version of the drawing file, it is determined to be a new element. When the two drawings have the same unique identifier but the geometric parameters, dimensions, or spatial location have changed, it is determined to be a modified part. When a geometric element with the same unique identifier exists in the previous version of the drawing file but not found in the merged CAD drawing, it is determined to be a deleted part. The identifier information, difference type, and change range of the corresponding element are recorded for use in generating an incremental change file.

[0061] S4.2. The LZ77 algorithm is used to replace the repeated character sequences in the incremental change file with pointers, reducing the data storage space and generating the incremental version file.

[0062] It should be noted that in the incremental change file compression step of the LZ77 algorithm (lossless data compression algorithm), the incremental change file is scanned and the recurring character sequences are identified. The LZ77 algorithm uses a sliding window mechanism to search for character sequences. It uses the processed data area as the search buffer and the currently unprocessed data area as the lookahead buffer. The character sequence at the beginning of the lookahead buffer is compared byte-by-byte within the search buffer. A valid match is considered when a character sequence exists in the search buffer that is consecutively identical to the beginning character of the lookahead buffer and has a matching length not less than the minimum matching length threshold. The matching result is calculated as "match distance and match length," where the matching distance represents the offset between the current lookahead buffer's starting position and the starting position of the matching sequence in the search buffer, and the matching length represents the length of consecutive identical characters. Only character sequences that simultaneously meet the conditions of consecutive consistency and minimum matching length are replaced with pointers. The pointer contains two pieces of information: position (the starting position of the character sequence in the dictionary) and length (the length of the matching sequence). For non-matching character sequences, the LZ77 algorithm directly stores these characters. In this way, the LZ77 algorithm only saves reference information pointing to duplicate data, avoiding the storage of redundant data and thus reducing file storage space. The compressed and replaced incrementally changed file will contain only references and actual non-duplicate data, generating an incremental version file.

[0063] It should also be noted that the LZ77 algorithm is a data compression algorithm that achieves compression by replacing repeated portions of the data with pointers to previously encountered identical data. In the LZ77 algorithm, the input data is divided into sliding windows. The LZ77 algorithm checks whether there is duplicate data between the unprocessed portion of the current window and the previously processed portion. If a duplicate is found, it is replaced with a pointer pointing to the start position and length of the duplicate data. The duplicate portion is no longer stored but is represented by a shorter pointer, thus reducing storage space.

[0064] S5. Analyze the differences between versions based on incremental version files and generate a version change report.

[0065] S5.1 Extract version information from the incremental version file, mark the differences with the merged CAD drawing file, and generate version difference data.

[0066] It should be noted that the version identification data in the incremental version file is read, including the version number, file hash value, and update time information. Differences between the incremental version file and the merged CAD drawing file are marked, and the differences in geometry, dimensions, layers, etc., between the two files are compared point-by-point. Through this comparison process, newly added and modified parts are identified, and these changes are recorded, generating version difference data.

[0067] S5.2. Compare the geometric changes extracted from the version difference data with the geometric elements in the merged CAD drawing file one by one, detect the newly added and modified geometric elements, and generate geometric difference data.

[0068] It should be noted that all geometric changes, including newly added and modified geometric elements, should be extracted from the version difference data. These geometric changes should be compared one by one with the geometric elements in the merged CAD drawing file to ensure a detailed comparison of each geometric element, identifying which geometric elements are newly added and which are modified. Every newly added and modified geometric element will be recorded, generating geometric difference data.

[0069] S5.3 Compare the version difference data with the layer information in the merged CAD drawing file, analyze the added and deleted layers, record the changes in objects within the layers, and generate a layer difference analysis report.

[0070] It should be noted that the difference records are filtered based on the layer identifier field recorded in the version difference data to locate the difference items corresponding to layer changes, and the corresponding layer number or layer name is read as the matching basis. The layer definition area in the merged CAD drawing file is parsed, and the corresponding layers are located one by one according to the layer identifier. The layer attribute information is extracted, including layer name, display status, color, line type, and line width style parameters. The entity indexes attached to the layer are traversed, and the geometric type, geometric parameters, and object identifier of each entity are read. By matching the layer identifiers in the version difference data with the layer definitions and entity indexes in the merged CAD drawing file, the attribute information and contained object content of each changed layer are completely extracted, providing structured data for subsequent layer difference analysis. By comparing the layers in the merged CAD drawing file with the layers in the version difference data, it is analyzed whether layers have been added or deleted, identifying which layers were added in the merged version and which were deleted in the version difference. During the comparison process, changes in objects within the layers are recorded, including newly added objects, deleted objects, and modified objects. Every change is recorded in detail, and a layer difference analysis report is generated.

[0071] S5.4 Compare the version difference data and the dimension annotations and scale information in the merged CAD drawing file, identify the changed dimensions, and generate dimension difference data.

[0072] It should be noted that the dimensioning and scale information in the version difference data and the merged CAD drawing file are extracted and compared one by one with the dimensioning and scale information in the merged CAD drawing file. During the comparison, the values ​​of each dimension and scale information are examined to identify any changes, including added, reduced, or modified dimensions and scales. Every change is recorded in detail, and dimension difference data is generated.

[0073] S5.5 Combine geometric difference data, layer difference analysis report and dimensional difference data to generate a version change report.

[0074] It should be noted that this includes collecting all geometric shape changes recorded in the geometric difference data, all layer additions, deletions, and modifications in the layer difference analysis report, and all dimensional changes recorded in the dimensional difference data. The difference data should be integrated into a unified document according to the change type (geometric, layer, and dimension), ensuring that each difference section is clearly marked and categorized, and a version change report should be generated.

[0075] In summary, this invention ensures the integrity of drawing data and the generation of unique version numbers through hash verification and compressed uploading in a computer-aided design system, thereby improving the reliability of data transmission and storage; by automatically comparing and merging the differences between the modified CAD drawings and the current version of the drawings, a new version is accurately generated, reducing manual operations, improving design efficiency and drawing consistency, ensuring compatibility and accuracy between versions, and thus improving design quality and team collaboration efficiency.

[0076] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention, and all such modifications or substitutions should be covered within the scope of the claims of the present invention.

Claims

1. A method for collaborative design and version control of CAD drawings, characterized in that: include, Collect CAD drawing data and send an upload request to the server to upload the CAD drawing to the server, generating CAD drawing version data; Based on the CAD drawing version data, a request to download the CAD drawing is sent to the server. The system verifies the user's identity and permissions. Once the verification is successful, the verification is generated and the drawing is downloaded. After verification, the downloaded drawings are geometrically modified to obtain the modified CAD drawings. Based on the differences between the modified CAD drawings and the current version of the drawings, the modified parts are automatically merged to generate a merged CAD drawing. Based on the merged CAD drawings, record the incremental changes in the CAD drawings, and intelligently compress and store the drawing versions to generate incremental version files; Based on the incremental version file analysis, the differences between each version are analyzed to generate a version change report.

2. The CAD drawing collaborative design and version control method as described in claim 1, characterized in that: The process of collecting CAD drawing data, sending an upload request to the server, uploading the CAD drawings to the server, and generating CAD drawing version data is as follows. Collect CAD drawing data, check the integrity of CAD drawings, extract geometric information, and generate a valid drawing dataset; Perform hash verification on the valid drawing dataset to obtain the file hash value; The CAD drawing file is compressed based on the file hash value, and the compressed drawing file is then uploaded to the server in chunks. On the server, the file hash value and upload time are combined to generate a version number, and the version number is associated with the compressed drawing file for storage, thus generating CAD drawing version data.

3. The CAD drawing collaborative design and version control method as described in claim 2, characterized in that: The specific steps for performing hash verification on the valid drawing dataset to obtain the file hash value are as follows. The integrity of the valid drawing dataset is checked using an integrity verification method to obtain the verification drawing dataset. A hash algorithm is used to calculate the file hash value by analyzing the complete drawing byte stream in the verification drawing dataset.

4. The CAD drawing collaborative design and version control method as described in claim 2, characterized in that: The process involves sending a CAD drawing download request to the server based on the CAD drawing version data, verifying identity information and permissions, and then downloading the drawing after successful verification. The specific steps are as follows. Based on the CAD drawing version data, the client sends a download request to the server and compares the provided username, password, and token with the authentication information stored in the database. A hash comparison algorithm is used for security verification, and a verification success flag is generated. According to the successful verification flag, if the hash values ​​of the username, password, and token match and are valid with the values ​​stored in the database, the verification is successful, and the drawing is downloaded after verification.

5. The CAD drawing collaborative design and version control method as described in claim 4, characterized in that: Based on the CAD drawing version data, the client initiates a download request to the server, compares the provided username, password, and token with the authentication information stored in the database, performs a security verification using a hash comparison algorithm, and generates a successful verification flag. The specific steps are as follows. The client sends a download request to the server based on the required CAD drawing version data, and extracts the username, password and token provided by the client from the download request for authentication to obtain the download request information; After receiving the download request, the server uses a hash comparison algorithm to verify whether the username, password, and token provided by the client match the authentication information in the database. If the verification is successful, a verification success flag is generated.

6. The CAD drawing collaborative design and version control method as described in claim 4, characterized in that: The process involves modifying the geometry of the downloaded, verified drawings to obtain the modified CAD drawings. Then, based on the differences between the modified CAD drawings and the current version of the drawings, the modified portions are automatically merged to generate a merged CAD drawing. The specific steps are as follows: The geometry of the downloaded, verified drawings is modified using CAD drawing editing tools to generate the modified CAD drawings. The modified CAD drawing is compared with the CAD drawing version data one by one to extract the differences in geometry, layers and dimensions, and a merged CAD drawing is generated.

7. The CAD drawing collaborative design and version control method as described in claim 6, characterized in that: The process involves comparing the modified CAD drawing with its version data one by one, extracting differences in geometry, layers, and dimensions, and generating a merged CAD drawing. The specific steps are as follows: By using CAD analysis tools, the geometric data of the modified CAD drawings are compared one by one with the current version of the drawings to generate a dataset of geometric shape differences. Extract CAD drawing version data and layer information of the modified CAD drawing from the geometric shape difference dataset, and compare the differences in the addition, reduction, modification and content of the layers one by one to output the layer difference dataset; By comparing the dimensional differences between the CAD drawing version data and the modified CAD drawing, and combining the geometric difference dataset and the layer difference dataset, a merged version of the CAD drawing is generated.

8. The CAD drawing collaborative design and version control method as described in claim 7, characterized in that: The process involves recording the incremental changes in the merged CAD drawings, intelligently compressing and storing the drawing versions, and generating incremental version files. The specific steps are as follows: The merged CAD drawings are compared with the previous version of the drawing file stored on the server. The incremental changes between the merged CAD drawings and the previous version of the drawing file are extracted and an incremental change file is generated. The LZ77 algorithm is used to replace repeated character sequences in the incremental change file with pointers, reducing data storage space and generating incremental version files.

9. The CAD drawing collaborative design and version control method as described in claim 8, characterized in that: The specific steps for analyzing the differences between versions based on incremental version files and generating a version change report are as follows. Extract version information from the incremental version file, mark the differences with the merged CAD drawing file, and generate version difference data; Compare the version difference data with the merged CAD drawing file to identify changes in geometry, layers, and dimensions, and generate a version change report.

10. The CAD drawing collaborative design and version control method as described in claim 9, characterized in that: The comparison of version difference data with the merged CAD drawing file reveals changes to geometry, layers, and dimensions. A version change report is generated, and the specific steps are as follows: The geometric changes extracted from the version difference data are compared one by one with the geometric elements in the merged CAD drawing file, and the newly added and modified geometric elements are detected to generate geometric difference data. Compare the version difference data with the layer information in the merged CAD drawing file, analyze the added and deleted layers, record the changes in objects within the layers, and generate a layer difference analysis report. The system compares the version difference data with the dimension annotations and scale information in the merged CAD drawing file, identifies the changed dimensions, and generates dimension difference data. Combine geometric difference data, layer difference analysis report, and size difference data to generate a version change report.