Intelligent drawing version management method and management platform
Patent Information
- Application Number
- CN202611010858.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-08
- Publication Date
- 2026-10-16
AI Technical Summary
[0002]项目建设过程中,施工单位会频繁接收图纸,图纸版本更新后很少有设计院会把修改的地方圈注出来,需要去手动对比图纸的变动位置,工作量大、效率低,另外图纸版本更新次数多,图纸使用时容易混乱,难以区分最新版图纸
1、通过本发明的智能图纸版本管理,平台可自动发起图纸对比及版本更新,最终可在图纸列表中始终展示全部最新版的图纸,可以直接查看图纸版本更新、图纸变化情况,并支持查看历史版本图纸及切换图纸默认展示版本,减少图纸对比及版本管理错误,提高图纸对比及版本管理效率。
Smart Images

Figure CN122926548A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the fields of computer vision technology, image processing technology, and architectural engineering technology, and in particular to an intelligent drawing version management method and management platform. Background Technology
[0002] During project construction, construction units frequently receive drawings. After the drawings are updated, design institutes rarely mark the changes, requiring manual comparison of the changes on the drawings. This is labor-intensive and inefficient. In addition, the frequent updates to the drawings can easily lead to confusion and make it difficult to distinguish the latest version.
[0003] Therefore, it is necessary to propose an intelligent drawing version management method and management platform to address the aforementioned technical issues. Summary of the Invention
[0004] The purpose of this invention is to address the shortcomings of existing technologies by proposing an intelligent drawing version management method and management platform.
[0005] To achieve the above objectives, the present invention adopts the following technical solution: A method for intelligent drawing version management, comprising the following steps: S1. After obtaining the drawings, the user uploads the first version of the drawing file through the platform; S2. The platform automatically stores the basic attribute information of the drawing file, generates the first version number of the drawing and a unique file data identifier, and associates the first version number and the file data identifier. S3. The platform automatically splits the drawing file into multiple individual sub-drawing frames, stores the sub-drawing frame data, updates the file status, generates the first version number and sub-drawing frame data identifier for each sub-drawing, and associates the version number and data identifier. The platform automatically publishes the current version directory and generates the first version directory version number. S4. After obtaining the second version of the drawings, the user uploads the second version of the drawing file through the platform; S5. The platform automatically stores the basic attribute information of the second version drawing file, generates a file data identifier, generates a second version drawing version number, and associates the version number with the file data identifier. The platform automatically compares the new and old versions of the drawing, and the changes can be viewed by opening the drawing. S6. The platform automatically splits the second version of the drawing file into multiple separate sub-drawing frames, stores the sub-drawing frame data, inherits and updates the sub-drawing data, generates the sub-drawing frame version number and the sub-drawing frame data identifier, and associates the version number and the sub-drawing frame data identifier. S7. The platform automatically compares the first and second version drawing catalog data and updates the catalog changes, automatically publishes the current version catalog, and generates the second version catalog version number. S8. The platform automatically compares the new and old versions of the sub-drawings, marks the specific changes in the sub-drawings based on the comparison results, updates the status information of the sub-drawings, and ultimately displays all the latest versions of the drawing ledger in the drawing catalog list.
[0006] In steps S1 and S4, the drawing file is a dwg format file, which usually contains multiple sub-drawing frames; In steps S1, S2, S3, S4, S5, S6, and S7, the first version refers to the previous version that is earlier and older than the second version, and is not necessarily the initial version. Similarly, the second version refers to the next version that is later and newer than the first version, and is not necessarily the final version. In steps S2 and S5, the basic attribute information of the drawing file includes file name, uploader, file size, and upload time; In steps S2, S3, S5, and S7, the version number format is "V + sequence number", where the sequence number is a natural number starting from 1. That is, the initial version number is V1, and the updated version numbers are V2 and V3 respectively. In steps S2, S3, S5, and S7, the data identifier uses a universally unique identifier, namely a globally unique identifier (UUID), which is defined as a string primary key. It is usually composed of 128 bits, represented by 32 hexadecimal characters, and divided into 5 parts in the format of 8-4-4-4-12. For example, the data identifier of a certain drawing file is: b46a00ad-d65f-8a02-2e2d-31f968a5be65. The UUID used by this platform is generated entirely based on random numbers and does not depend on time or hardware information.
[0007] In steps S3 and S6, the drawing file is automatically split into multiple individual sub-drawing frames. This is mainly because the platform automatically splits the drawing into multiple independent sub-drawings based on the frames of each sub-drawing in the drawing. Then, it extracts the sub-drawing frames containing the directory from the split sub-drawing frames, generates a directory list based on its drawing name, drawing number, sub-drawing, and professional label information, and associates the sub-drawing frames of the current version with the directory list data. The storage of sub-drawing data in steps S3 and S6 mainly involves storing each drawing frame in the drawing as an independent data storage, while extracting and saving the sub-item, discipline, drawing name, and drawing number attribute information of each drawing frame. In steps S3 and S6, the file status is updated, which mainly involves automatically updating the processing status of the drawing file. The process status includes lightweighting in progress, lightweighting failure, lightweighting complete, splitting into drawings, splitting into drawings failure, splitting into drawings complete, content recognition and organization complete, and "organization complete" is displayed after the file processing is completed. In steps S3 and S7, the platform automatically publishes the current version directory. This is the platform's confirmation of the current version directory after completing the sub-graph splitting, directory extraction, and sub-graph association with the directory as described in claim 7. After publication, the data is finally visualized in a list format, making it easy for users to clearly view the sub-graph frame corresponding to a certain sub-item and profession.
[0008] In step S4, the user uploads the second version of the drawing through the platform, which includes the following two situations: S41. If the current new version of the drawing has not been uploaded, click "Upload File" to upload the current new version of the drawing; S42. If the current version of the drawing has been uploaded before, find the drawing in the list, select "Operation - Update" to upload the current new version of the drawing. If you select "Update" to upload the drawing, the platform will automatically overwrite the previous drawing file data.
[0009] The generation of file data identifier and version number in step S5 mainly includes two cases: If the user selects "Update" to upload the drawing in step S4, the file data identifier of the newly uploaded drawing file will use the previous file data identifier. The platform will automatically generate the next version number for the newly uploaded drawing file and display the new version drawing to the user in the drawing list. The old version drawing can be viewed by "View Historical Versions". If the user directly selects "Upload File" in step S4, the platform will generate a new file data identifier and initial version number for the newly uploaded file, and display the drawing to the user in the drawing list at the same time; In step S5, the new and old versions of the drawings are automatically compared, mainly by comparing the content of the drawings, including the elements and blocks in the sub-drawings. The specific steps are as follows: S51, Element Analysis: Analyze all elements in the drawing to obtain the geometric information, color, line width, line type, and transparency of all elements, and calculate the bounding rectangle of elements and blocks; S52. Element Comparison: For a single element, the element information and the position, length, and width of its enclosing rectangle are directly compared. For a block, a comparison algorithm based on element vertices is used. First, the number of vertices of the elements contained in the block is compared. If the number is the same, the position, length, and width of the enclosing rectangle of each block are compared. If the element information, number of vertices, and enclosing rectangle information of the two versions of the drawing are the same, it means that the element or block has not been modified. If there are changes or the corresponding element or block cannot be found, it means that the element or block has been modified. The comparison results are marked and the modification information is stored for easy display of comparison results later.
[0010] In step S6, inheriting and updating sub-drawing data and generating sub-drawing frame version numbers mainly involves the platform automatically splitting the new version of the drawing into multiple sub-drawing frames, obtaining the sub-drawing results of the updated file, and checking whether the sub-drawing results contain sub-drawing data from the previous version. This mainly includes two cases: S61. If there is sub-drawing data from a previous version, the platform will automatically inherit the sub-drawing data from the previous version, use the drawing frame data identifier of the previous version of the sub-drawing, associate the new version of the sub-drawing with the directory list of this sub-drawing, increment the version number by one digit, generate the second version number, and at the same time display the new version of the sub-drawing to the user in the drawing list. The old version of the sub-drawing can be viewed through "Manage Versions". S62. If the sub-drawing data of the previous version does not exist, the platform will regenerate new sub-drawing data, generate a new sub-drawing frame data identifier, establish a new drawing catalog list record, associate the current sub-drawing with the catalog list, increment the version number by one bit, generate a second version number, retain the first version but without associated drawings, ensuring that users clearly understand that the first version does not have a corresponding sub-drawing frame, and at the same time display the new sub-drawing to the user in the drawing list; the platform will associate the updated sub-drawing data with the new version of the sub-drawing file to ensure that the drawing update is consistent with the sub-drawing information.
[0011] In step S7, the first and second versions of the drawing catalog data are automatically compared and the catalog changes are updated. This mainly involves comparing the catalog data of the published and unpublished versions, marking differences, and performing operations to ensure the correctness of the catalog to be published. The publishing process is mainly divided into two steps: first, the comparison of sub-items and professions, and second, the comparison of catalog information. S71. Comparison of Sub-items and Specialties: This involves comparing the combinations of sub-items and specialties in the published and unpublished versions of the directory and marking the differences. It includes three operations: "Consistent," "Retained," and "Added." If the differences between the sub-items and professional combinations in the two versions are marked as completely identical, then the updated catalog should be selected as "consistent" and kept the same. If the combination of sub-items and majors in the published directory is compared with the directory to be published and the difference is marked as the directory to be published does not exist, then the updated directory will be "retained" and the published directory will be used. If the combination of sub-items and majors in the directory to be published is compared with the published directory and the difference is marked as the published directory does not exist, then the updated directory should be selected as "Add" and the directory to be published should be used. S72. Compare catalog information: Compare the figure numbers and names in the published and unpublished versions of the catalog. The corresponding operations for the comparison results include four types: "Consistent", "Change", "Delete", and "Add". Consistent operation: The figure number and figure name of the new and old sub-figure frames are completely identical; Deletion operation: The old sub-plot frame contains the plot number and name, but the new sub-plot frame does not exist; the user chooses whether to delete it. New operation: For figure numbers and names that do not exist in the old subplot frame, the new subplot frame will exist; Change operation: The drawing number and drawing name of the new and old sub-drawing frames are not completely consistent. According to the order in which the drawings of each version were uploaded, the directory will default to taking the drawing number, drawing name and sub-drawing frame information of the newest version.
[0012] In step S8, the platform automatically compares the new and old versions of the sub-drawings, mainly comparing the drawing content, including the elements and blocks in the sub-drawings. The specific steps are as follows: S81, Frame Matrix Migration: Obtain the lower left corner of the frame of the two sub-drawings, calculate the moving distance, and then move the frame; Frame matrix migration is because the frame position of the sub-drawings obtained from different drawings may change. For example, some sub-drawings may be obtained from drawings with only a single frame. Therefore, it is necessary to move the frame and its elements of the two sub-drawings to the same position through matrix migration before comparing the sub-drawings. S82, Primitive Analysis: Analyze all primitives to obtain their geometric information, color, line width, line type, and transparency, and calculate the bounding rectangle of primitives and blocks; S83. Element Comparison: If it is a single element, the element information and the position, length, and width of its enclosing rectangle are directly compared. If it is a block, a comparison algorithm based on element vertices is used. That is, first compare the number of vertices of the elements contained in the block. If the number is the same, then compare the position, length, and width of the enclosing rectangle of each block. If the element information, number of vertices, and enclosing rectangle information of the two versions of the drawing are the same, it means that the element or block has not been modified. If it has changed or the corresponding element or block cannot be found, it means that the element or block has been modified. Mark the comparison results and store the modification information for easy display of comparison results later. In step S8, the subgraph update status includes four states: "added, modified, not modified, and no frame". Add: When the directory information comparison changes to an add operation, it means that the subgraph results of the updated file do not contain the subgraph data of the previous version. The version number of the newly uploaded and split subgraph frame is "V1", and the update status is "Add". Modified: When the directory information comparison changes to a change operation, the platform further compares the drawing content. At this time, the sub-drawing frame status is in automatic comparison. Further judgment is made based on the marked comparison results: If marked as "modified", it means that the drawing content contains sub-drawing data from the previous version. The sub-drawing comparison result is changed, and the version number of the newly uploaded and split sub-drawing is incremented by one, for example, from the initial version number "V1" to "V2", and the update status is "modified". No modification: When the directory information comparison changes to a consistent operation, the platform further compares the drawing content. At this time, the sub-drawing frame status is in automatic comparison. Further judgment is made based on the marked comparison results: If marked as "no modification", then if there is sub-drawing data from the previous version and the sub-drawing comparison result is unchanged, the version number of the newly uploaded and split sub-drawing will be incremented by one, for example, from the initial version number "V1" to "V2", and the update status will be "no modification". No frame: When the sub-figure frame is associated with the directory list data, the association fails, indicating that there is no matching sub-figure frame in the directory, the current "no version" status is "no frame".
[0013] In step S8, all the latest version of the drawing ledger is always displayed. This mainly involves setting the sub-drawing frames contained in the latest version directory as the default version and always displaying them in the data list. Users can view the sub-drawing frame data of historical versions through version management, or set a historical version as the current version. The drawing comparison results are displayed using visualization technology, which shows the comparison differences in a graphical way, making the comparison results more intuitive and easier to understand.
[0014] A management platform for intelligent drawing version management includes a file module, a directory module, and a directory verification module. The file module primarily displays all the latest version drawing files through a drawing list, including "file name, file status, uploader, file size, and upload time." It supports uploading, updating, downloading, renaming, sharing, moving, and viewing historical versions. Clicking "Upload" allows uploading drawing files or folders; clicking "File Name" displays detailed information about the current drawing and its version comparison results; clicking "Operation" allows updating drawings, viewing historical drawing versions, and switching the default drawing display version. The directory module primarily displays all the latest version sub-drawing frames through a directory list, including "drawing number, drawing name, update status, current version, and update time." It supports sharing, downloading, and deleting. Clicking "Drawing Name" displays detailed information about the current sub-drawing and its version comparison results; clicking "Current Version" allows viewing historical versions of the sub-drawing and switching between them. The sub-figures are displayed in default versions. The "Update Status" option allows viewing an overview of the drawing version comparison results and supports filtering the displayed sub-figures by update status. The catalog verification module primarily displays catalog data automatically identified and associated by the platform in a list format. It verifies and publishes versions of the catalog data, displaying the drawing number, name, sub-item, and specialty of the catalog and associated sub-figure frames, as well as the source drawing path and time of the sub-figure frames. The module's main functions include sub-item and specialty settings, adding a catalog, editing a catalog, deleting a catalog, importing a catalog, exporting a catalog, adding associations, association matching, association confirmation, and publishing. "Association Matching" allows manual supplementation of catalog data and sub-figure frame data to initiate algorithmic matching. For catalog data not automatically matched by the platform, manual supplementation matching can be performed using "Add Association." "Association Confirmation" marks and confirms the correctness of the matching results. "Publish" publishes the catalog version, which can then be viewed in the catalog module.
[0015] The beneficial effects of this invention are as follows: 1. Through the intelligent drawing version management of this invention, the platform can automatically initiate drawing comparison and version update, and ultimately display all the latest versions of drawings in the drawing list. Users can directly view drawing version updates and changes, and support viewing historical versions of drawings and switching the default display version of drawings, thereby reducing errors in drawing comparison and version management and improving the efficiency of drawing comparison and version management.
[0016] 2. Drawing file version control and management: After each drawing file is uploaded, the platform will automatically generate a unique version number and associate it with the relevant attributes of that version (such as file name, file size, upload time, uploader, etc.). Through precise version control, the platform can ensure that each drawing version has a clear record and avoid version conflicts or loss.
[0017] 3. Intelligent drawing file comparison: This solution adopts intelligent drawing file comparison technology, which can automatically initiate drawing comparison in the platform background after the drawing file is updated, identify the differences between the current version and the previous version, and generate a clear display of the differences to help users quickly understand the changes in the drawings. The comparison process is fully automated, and users do not need to operate manually, saving the waiting time for comparison results when users manually select drawings for comparison, and reducing errors caused by manual verification.
[0018] 4. Automated drawing splitting and data inheritance: When updating drawing files are split, they will automatically inherit the splitting data of the previous version, especially information such as project name, discipline, drawing name, and drawing number. Through the data inheritance mechanism, the platform ensures the consistency and integrity of the splitting data and avoids data loss or disorder that may be caused by manual operation.
[0019] 5. Version Switching and Recovery: When a user switches to a historical version, the platform not only restores the file's version attributes, but also ensures that the file's content, layer settings, annotation styles, etc. are consistent with the current version through an automatic recovery mechanism. Through the platform's file recovery technology, the platform ensures that the file's working state can be completely restored to the original version after each version switch, avoiding the oversight of manual operation. Attached Figure Description
[0020] Figure 1 This is a schematic diagram of the drawing version management process of the present invention; Figure 2 This is a schematic diagram of the uploaded drawing file for the present invention; Figure 3 The drawing file of this invention contains multiple sub-drawings; Figure 4 This is a schematic diagram of the basic attribute information of the drawing file of the present invention; Figure 5 This is a schematic diagram of the first version drawing V1 of the present invention; Figure 6 This is a schematic diagram of the file data identifier UUID of the present invention; Figure 7 and Figure 8 The sub-figure frame of this invention includes a title block and a catalog diagram; Figures 9 to 10 This is a schematic diagram of the directory list, association, and sub-graph storage data of the present invention; Figures 11 to 12 This is a schematic diagram illustrating the status of the drawing file upload and processing process according to the present invention; Figures 13 to 14 A schematic diagram of the first version of the catalog release data of this invention; Figure 15 The second version of the drawing update diagram of the present invention; Figures 16 to 17This invention provides a diagram illustrating the viewing of historical versions; Figure 18 A schematic diagram illustrating the visual viewing of the drawing file comparison results of this invention; Figure 19 A schematic diagram showing the second version of the subgraph inheritance and update of this invention; Figure 20 A schematic diagram of the first step in the release of the second version of the sub-diagram directory of the present invention; Figure 21 A schematic diagram of the second step in the release of the second version of the sub-diagram catalog of the present invention; Figure 22 A schematic diagram illustrating the visual comparison results of the sub-figure frames of this invention; Figure 23 A schematic diagram of the sub-graph frame update state of the present invention; Figure 24 A schematic diagram of the file module of the drawing version management platform of the present invention; Figure 25 A schematic diagram of the directory module of the drawing version management platform of the present invention; Figure 26 A schematic diagram of the catalog proofreading module of the drawing version management platform of the present invention. Detailed Implementation
[0021] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments.
[0022] like Figure 1 As shown, an intelligent drawing version management method includes the following steps: S1. The user uploads the first version of the DWG format drawing file through the platform. The DWG format drawing file typically contains multiple sub-drawings, such as... Figure 2 A total of 5 files were uploaded, as shown. Figure 3 As shown, one of the DWG files contains multiple drawings in different layouts.
[0023] S2. The platform automatically stores the basic attribute information of the drawing file, generates the first version number of the drawing and a unique file data identifier, and associates the first version number and the file data identifier.
[0024] The basic attribute information of the drawing file includes file name, upload time, file size, etc. Figure 4 As shown; The version number format is "V + sequence number", where the sequence number is a natural number starting from 1. That is, the initial version number is V1, and the updated version numbers are V2, V3, etc. Figure 5 As shown; The file data identifier uses a universally unique identifier, namely a UUID (Universally Unique Identifier), defined as a string primary key, typically consisting of 128 characters, represented by 32 hexadecimal characters, and divided into 5 parts: 8-4-4-4-12 format. The UUID used in this platform is generated entirely based on random numbers and does not depend on time or hardware information. Figure 6 As shown. The UUIDs of the 5 uploaded files are as follows: dd93a92b-4ec5-4eff-96ea-b170d564eb46; b4ff2a7d-2528-43e3-b47b-24f263ebb9f0; 5e7c6f0e-a207-4d24-a315-5de72ab51b40; a77caeac-68d1-45ab-b674-e0361472e7ec; 834b6b32-d3aa-4767-9775-c2d68c48acfd; S3. The platform automatically splits the drawing file into multiple individual sub-drawing frames, stores the sub-drawing frame data, updates the file status, generates the first version number and sub-drawing frame data identifier for each sub-drawing, and associates the version number and data identifier. The platform automatically publishes the current version directory and generates the first version directory version number.
[0025] The automatic splitting of drawing files into multiple individual sub-drawing frames mainly involves the platform automatically splitting the drawing into multiple independent sub-drawings based on the drawing frames of each sub-drawing, and then extracting the sub-drawing frames containing the directory from the split sub-drawing frames, such as... Figure 7 and Figure 8 As shown; a catalog list is generated based on the title, number, sub-figure, and specialty information of the figure, and the current version's sub-figure frame is associated with the catalog list data, such as... Figure 9 As shown; The storage of sub-drawing data mainly involves storing each drawing frame in the drawing as an independent data store, while extracting and saving attribute information such as sub-items, disciplines, drawing names, and drawing numbers for each drawing frame. Figure 10 As shown.
[0026] The updated file status mainly refers to the automatic updating of the processing status of the drawing file. The process status includes: lightweighting in progress, lightweighting failed, lightweighting completed, splitting into drawings, splitting into drawings failed, splitting into drawings completed, and content recognition and organization completed. Once the file processing is complete, "Organization completed" will be displayed. Figure 11 As shown.
[0027] The platform automatically publishes the current version directory. This is a confirmation of the current version directory after the platform has completed the aforementioned sub-graph splitting, directory extraction, and association of sub-graphs with the directory. After publication, the data is finally visualized in a list format, making it easy for users to clearly view the sub-graph frames corresponding to a specific item and specialty, such as... Figure 13 As shown.
[0028] S4. After obtaining the second version of the drawings, the user uploads the second version of the drawing file through the platform. This includes the following two scenarios: (1) If the current new version of the drawing has not been uploaded, click "Upload File" to upload the current new version of the drawing, such as Figure 14 As shown; (2) If a version of the drawing has been uploaded previously, find the initial version of the drawing in the list, select "Operation - Update" to upload the current new version of the drawing, such as... Figure 15 As shown, the platform will only automatically initiate version update processing and drawing comparison when the "Update" option is selected to upload the drawings.
[0029] S5. The platform automatically stores the basic attribute information of the second version drawing file, generates a file data identifier, generates a second version drawing version number, and associates the version number with the file data identifier. The platform automatically compares the new and old versions of the drawing, and the changes can be viewed by opening the drawing.
[0030] The generation of file data identifier and version number in step S5 mainly includes two cases: (1) If the user selects "Update" to upload the drawing in step S4, the file data identifier of the newly uploaded drawing file will use the previous file data identifier. The platform will automatically generate the next version number for the newly uploaded drawing file and display the new version drawing to the user in the drawing list. The old version drawing can be viewed by "View Historical Versions". Figures 16 to 17 As shown, the version after the first update and upload was V2, and the version after the second upload after deleting V2 was V3; (2) If the user directly selects "upload file" in step S4, the platform will generate a new file data identifier and initial version number for the newly uploaded file, and display the drawing to the user in the drawing list.
[0031] The automatic comparison of new and old versions of drawings mainly involves comparing the content of the drawings, including the elements and blocks in the sub-drawings. The specific steps are as follows: (1) Element analysis: Analyze all elements in the drawing to obtain the geometric information, color, line width, line type, transparency and other element information of all elements, and calculate the bounding rectangle of elements and blocks; (2) Comparison of graphic elements: If it is a single graphic element, the graphic element information and the position, length, width and other information of its enclosing rectangle are directly compared. If it is a block, the comparison algorithm based on graphic element vertices is used. That is, first compare the number of vertices of the graphic elements contained in the block. If the number is the same, compare the position, length, width and other information of the enclosing rectangle of each block. If the graphic element information, number of vertices and enclosing rectangle information of the two versions of the drawing are the same, it means that the graphic element or block has not been modified. If it has changed or the corresponding graphic element or block cannot be found, it means that the graphic element or block has been modified. Mark the comparison results and store the modification information for easy display of comparison results later. The comparison results are presented using visualization technology, displaying the differences graphically to make the comparison results more intuitive and easier to understand. Figure 18 As shown; S6. The platform automatically splits the second version of the drawing file into multiple separate sub-drawing frames, stores the sub-drawing frame data, inherits and updates the sub-drawing data, generates the sub-drawing frame version number and the sub-drawing frame data identifier, and associates the version number and the sub-drawing frame data identifier. The inheritance, updating of sub-drawing data, and generation of sub-drawing frame version numbers mainly involve the platform automatically splitting the new drawing into multiple sub-drawing frames, obtaining the sub-drawing results of the updated file, and checking whether the sub-drawing results contain sub-drawing data from the previous version. This mainly includes two cases, such as... Figure 19 As shown: (1) If there is sub-diagram data of the previous version, the platform will automatically inherit the sub-diagram data of the previous version, use the drawing frame data identifier of the previous version sub-diagram, associate the new version sub-diagram on the directory list of this sub-diagram, increment the version number by one digit, generate the second version number, and at the same time display the new version sub-diagram to the user in the drawing list. The old version sub-diagram can be viewed through "Manage Version". (2) If the sub-drawing data of the previous version does not exist, the platform will regenerate new sub-drawing data, generate new sub-drawing frame data identifiers, establish a new drawing catalog list record, associate the current sub-drawing with the catalog list, increment the version number by one digit, generate a second version number, retain the first version but without associated drawings, ensure that users clearly understand that the first version has no corresponding sub-drawing frame, and at the same time display the new sub-drawing to the user in the drawing list; the platform will associate the updated sub-drawing data with the new version of the sub-drawing file to ensure that the drawing update is consistent with the sub-drawing information.
[0032] S7. The platform automatically compares the first and second version drawing catalog data and updates the catalog changes, automatically publishes the current version catalog, and generates the second version catalog version number.
[0033] The automatic comparison of the first and second version drawing catalog data and updating of catalog changes mainly involves comparing, marking differences, and processing the catalog data of published and unpublished versions to ensure the accuracy of the unpublished catalog. The publishing process is mainly implemented in two steps: (1) Comparison of sub-items and majors: This involves comparing the sub-item and major combinations in the published and unpublished versions of the directory and marking the differences. There are three options: "Consistent," "Retain," and "Add." If the sub-item and major combinations in both versions are marked as identical, the updated directory will be "Consistent" and kept the same. If the sub-item and major combinations in the published directory are compared with the unpublished directory and the difference is marked as not existing in the unpublished directory, the updated directory will be "Retain" and will use the published directory. If the sub-item and major combinations in the unpublished directory are compared with the published directory and the difference is marked as not existing in the published directory, the updated directory will be "Add" and will use the unpublished directory. Figure 20 As shown; (2) Second, compare the catalog information. Compare the drawing numbers and names of the published and unpublished versions of the catalog. The corresponding operations for the comparison results include four types: "consistent", "modified", "deleted", and "added". Consistent operation: The drawing numbers and names of the new and old sub-drawing frames are completely consistent. Delete operation: The drawing numbers and names of the old sub-drawing frames exist, but the new sub-drawing frames do not. The user can choose whether to delete. Add operation: The drawing numbers and names of the old sub-drawing frames do not exist, but the new sub-drawing frames do. Modify operation: The drawing numbers and names of the new and old sub-drawing frames are not completely consistent. According to the order in which the drawings of each version are uploaded, the catalog defaults to taking the drawing numbers, names, and other sub-drawing frame information of the newer version. Figure 21 As shown; S8. The platform automatically compares the new and old versions of the sub-drawings, marks the specific changes in the sub-drawings based on the comparison results, and updates the status information of the sub-drawings. Finally, the latest version of the drawing ledger is always displayed in the drawing catalog list.
[0034] The platform automatically compares the new and old versions of the sub-maps, mainly including the comparison of graphic elements and blocks in the sub-maps. The specific steps are as follows: (1) Frame matrix migration: Obtain the lower left corner points of the two sub-frames, calculate the moving distance, and then move the frame; The aforementioned frame matrix migration is necessary because the positions of the frame in sub-drawings obtained from different drawings may change. For example, some sub-drawings may be obtained from drawings with only a single frame. Therefore, it is necessary to move the frame and its elements of the two versions of sub-drawings to the same position through matrix migration before comparing the sub-drawings.
[0035] (2) Primitive analysis: Analyze all primitives to obtain their geometric information, color, line width, line type, transparency and other primitive information, and calculate the bounding rectangle of primitives and blocks; (3) Element Comparison: For a single element, the element information and the position, length, and width of its enclosing rectangle are directly compared. For a block, a comparison algorithm based on element vertices is used. First, the number of vertices of the elements contained in the block is compared. If the number is the same, the position, length, and width of the enclosing rectangle of each block are compared. If the element information, number of vertices, and enclosing rectangle information of the two versions of the drawing are consistent, it means that the element or block has not been modified. If changes have occurred or the corresponding element or block cannot be found, it means that the element or block has been modified. The modification information is marked and stored for later display. Figure 21 As shown.
[0036] The subgraph update status includes four states: "added, modified, not modified, and no frame"; the determination of marking specific changes in the subgraph and updating the subgraph's status information involves four cases, such as... Figure 23 As shown: (1) When the directory information comparison changes to an add operation, it indicates that the subgraph results of the updated file do not contain the subgraph data of the previous version. The version number of the newly uploaded and split subgraph frame is “V1”, and the update status is “add”. (2) When the directory information comparison changes to a change operation, the platform further compares the drawing content. At this time, the sub-drawing frame status is in automatic comparison. Further judgment is made based on the marked comparison results: if marked as "modified", it indicates that the drawing content has sub-drawing data from the previous version. If the sub-drawing comparison result is changed, the version number of the newly uploaded and split sub-drawing is incremented by one, for example, from the initial version number "V1" to "V2", and the update status is "modified". (3) When the catalog information comparison changes to a consistent operation, the platform further compares the drawing content. At this time, the sub-drawing frame status is in automatic comparison. Further judgment is made based on the marked comparison results: if marked as "no modification", then if there is sub-drawing data of the previous version, and the sub-drawing comparison result is no change, then the version number of the newly uploaded and split sub-drawing is incremented by one, for example, from the initial version number "V1" to "V2", and the update status is "no modification".
[0037] (4) When the sub-figure frame is associated with the directory list data, if the association fails, it means that there is no matching sub-figure frame in the directory, the current "no version" status is "no frame".
[0038] An intelligent drawing version management platform includes a file module, a directory module, and a directory verification module. The file module primarily displays all the latest version drawing files through a drawing list, including "file name, file status, uploader, file size, and upload time." It supports operations such as uploading, updating, downloading, renaming, sharing, moving, and viewing historical versions. Clicking "Upload" allows uploading drawing files or folders; clicking "File Name" displays detailed information about the current drawing and its version comparison results; and clicking "Operation" allows updating drawings, viewing historical versions of drawings, and switching the default drawing display version. Figure 24 As shown; the directory module mainly displays the "drawing number, drawing name, update status, current version, and update time" of all the latest version sub-drawing frames through a directory list, and supports operations such as sharing, downloading, and deleting. Clicking "drawing name" allows you to view the current sub-drawing and its version comparison results in detail. "Current version" allows you to view the historical versions of the sub-drawing and switch the default display version. "Update status" allows you to view an overview of the drawing version comparison results, and supports filtering the displayed sub-drawings by update status, such as... Figure 25 As shown.
[0039] The catalog verification module primarily displays catalog data automatically identified and associated by the platform through a list. It verifies and publishes versions of the catalog data, showcasing the drawing number, name, sub-item, and specialty of the catalog and its associated sub-figure frames, as well as the source drawing path and time of the sub-figure frames. The module's main functions include sub-item and specialty settings, adding a catalog, editing a catalog, deleting a catalog, importing a catalog, exporting a catalog, adding associations, association matching, association confirmation, and publishing. The "Association Matching" function allows manual supplementation and algorithmic matching of catalog data and sub-figure frame data. For catalog data not automatically matched by the platform, manual supplementation and matching can be performed using "Add Association." "Association Confirmation" marks and confirms the correctness of the matching results. "Publish" allows the catalog version to be published. The published catalog can be viewed in the catalog module. Figure 26 As shown.
[0040] The above description is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any equivalent substitutions or modifications made by those skilled in the art within the scope of the technology disclosed in the present invention, based on the technical solution and inventive concept of the present invention, should be covered within the scope of protection of the present invention.
Claims
1. A method for intelligent drawing version management, characterized in that: The method includes the following steps: S1. After obtaining the drawings, the user uploads the first version of the drawing file through the platform; S2. The platform automatically stores the basic attribute information of the drawing file, generates the first version number of the drawing and a unique file data identifier, and associates the first version number and the file data identifier. S3. The platform automatically splits the drawing file into multiple individual sub-drawing frames, stores the sub-drawing frame data, updates the file status, generates the first version number and sub-drawing frame data identifier for each sub-drawing, and associates the version number and data identifier. The platform automatically publishes the current version directory and generates the first version directory version number. S4. After obtaining the second version of the drawings, the user uploads the second version of the drawing file through the platform; S5. The platform automatically stores the basic attribute information of the second version drawing file, generates a file data identifier, generates a second version drawing version number, and associates the version number with the file data identifier. The platform automatically compares the new and old versions of the drawing, and the changes can be viewed by opening the drawing. S6. The platform automatically splits the second version of the drawing file into multiple separate sub-drawing frames, stores the sub-drawing frame data, inherits and updates the sub-drawing data, generates the sub-drawing frame version number and the sub-drawing frame data identifier, and associates the version number and the sub-drawing frame data identifier. S7. The platform automatically compares the first and second version drawing catalog data and updates the catalog changes, automatically publishes the current version catalog, and generates the second version catalog version number. S8. The platform automatically compares the new and old versions of the sub-drawings, marks the specific changes in the sub-drawings based on the comparison results, updates the status information of the sub-drawings, and ultimately displays all the latest versions of the drawing ledger in the drawing catalog list.
2. The intelligent drawing version management method according to claim 1, characterized in that: In steps S1 and S4, the drawing file is a dwg format file, which usually contains multiple sub-drawing frames; In steps S1, S2, S3, S4, S5, S6, and S7, the first version refers to the previous version that is earlier and older than the second version, and is not necessarily the initial version; the second version refers to the next version that is later and newer than the first version, and is not necessarily the final version. In steps S2 and S5, the basic attribute information of the drawing file includes the file name, the person who uploaded it, the file size, and the upload time; In steps S2, S3, S5, and S7, the version number format is "V + sequence number", where the sequence number is a natural number starting from 1, that is, the initial version number is V1, and the updated version numbers are V2 and V3 respectively. In steps S2, S3, S5, and S7, the data identifier uses a universally unique identifier, namely a globally unique identifier (UUID), defined as a string primary key, typically consisting of 128 bits, represented by 32 hexadecimal characters, and divided into 5 parts in the format of 8-4-4-4-12. For example, the data identifier of a certain drawing file is: b46a00ad-d65f-8a02-2e2d-31f968a5be65. The UUID used by this platform is generated entirely based on random numbers and does not depend on time or hardware information.
3. The intelligent drawing version management method according to claim 1, characterized in that: In steps S3 and S6, the drawing file is automatically split into multiple individual sub-drawing frames. This is mainly because the platform automatically splits the drawing into multiple independent sub-drawings based on the frames of each sub-drawing in the drawing. Then, it extracts the sub-drawing frames containing the directory from the split sub-drawing frames, generates a directory list based on its drawing name, drawing number, sub-drawing, and professional label information, and associates the sub-drawing frames of the current version with the directory list data. In steps S3 and S6, sub-drawing data is stored, and each drawing frame in the drawing is stored as an independent data storage. At the same time, the sub-item, discipline, drawing name, and drawing number attribute information of each drawing frame are extracted and saved. In steps S3 and S6, the file status is updated, and the processing status of the drawing file is automatically updated. The process status includes lightweighting in progress, lightweighting failure, lightweighting completed, splitting into drawings, splitting into drawings failure, splitting into drawings completed, content recognition and organization completed, and "organization completed" is displayed after the file processing is completed. In steps S3 and S7, the platform automatically publishes the current version directory. This is the platform's confirmation of the current version directory after completing the splitting of sub-graphs, extracting the directory, and associating sub-graphs with the directory. After publication, the data is finally visualized in a list format, making it easy for users to clearly view the sub-graph frames corresponding to a specific item and profession.
4. The intelligent drawing version management method according to claim 1, characterized in that: In step S4, the user uploads the second version of the drawing through the platform, which includes the following two situations: S41. If the current new version of the drawing has not been uploaded, click "Upload File" to upload the current new version of the drawing; S42. If the current version of the drawing has been uploaded before, find the drawing in the list, select "Operation - Update" to upload the current new version of the drawing. If you select "Update" to upload the drawing, the platform will automatically overwrite the previous drawing file data.
5. The intelligent drawing version management method and platform according to claim 1, characterized in that: In step S5, generating file data identifiers and version numbers mainly includes two cases: If the user selects "Update" to upload the drawing in step S4, the file data identifier of the newly uploaded drawing file will use the previous file data identifier. The platform will automatically generate the next version number for the newly uploaded drawing file and display the new version drawing to the user in the drawing list. The old version drawing can be viewed by "View Historical Versions". If the user directly selects "Upload File" in step S4, the platform will generate a new file data identifier and initial version number for the newly uploaded file, and display the drawing to the user in the drawing list at the same time; In step S5, the new and old versions of the drawings are automatically compared, mainly by comparing the content of the drawings, including the elements and blocks in the sub-drawings. The specific steps are as follows: S51, Element Analysis: Analyze all elements in the drawing to obtain the geometric information, color, line width, line type, and transparency of all elements, and calculate the bounding rectangle of elements and blocks; S52. Element Comparison: For a single element, the element information and the position, length, and width of its enclosing rectangle are directly compared. For a block, a comparison algorithm based on element vertices is used. First, the number of vertices of the elements contained in the block is compared. If the number is the same, the position, length, and width of the enclosing rectangle of each block are compared. If the element information, number of vertices, and enclosing rectangle information of the two versions of the drawing are the same, it means that the element or block has not been modified. If there are changes or the corresponding element or block cannot be found, it means that the element or block has been modified. The comparison results are marked and the modification information is stored for easy display of comparison results later.
6. The intelligent drawing version management method according to claim 1, characterized in that: In step S6, inheriting and updating sub-drawing data and generating sub-drawing frame version numbers mainly involves the platform automatically splitting the new version of the drawing into multiple sub-drawing frames, obtaining the sub-drawing results of the updated file, and checking whether the sub-drawing results contain sub-drawing data from the previous version. This mainly includes two cases: S61. If there is sub-drawing data from a previous version, the platform will automatically inherit the sub-drawing data from the previous version, use the drawing frame data identifier of the previous version of the sub-drawing, associate the new version of the sub-drawing with the directory list of this sub-drawing, increment the version number by one digit, generate the second version number, and at the same time display the new version of the sub-drawing to the user in the drawing list. The old version of the sub-drawing can be viewed through "Manage Versions". S62. If the sub-drawing data of the previous version does not exist, the platform will regenerate new sub-drawing data, generate a new sub-drawing frame data identifier, establish a new drawing catalog list record, associate the current sub-drawing with the catalog list, increment the version number by one bit, generate a second version number, retain the first version but without associated drawings, ensuring that users clearly understand that the first version does not have a corresponding sub-drawing frame, and at the same time display the new sub-drawing to the user in the drawing list; the platform will associate the updated sub-drawing data with the new version of the sub-drawing file to ensure that the drawing update is consistent with the sub-drawing information.
7. The intelligent drawing version management method according to claim 1, characterized in that: In step S7, the first and second versions of the drawing catalog data are automatically compared and the catalog changes are updated. This mainly involves comparing the catalog data of the published and unpublished versions, marking differences, and performing operations to ensure the correctness of the catalog to be published. The publishing process is mainly divided into two steps: first, the comparison of sub-items and professions, and second, the comparison of catalog information. S71. Comparison of Sub-items and Specialties: This involves comparing the combinations of sub-items and specialties in the published and unpublished versions of the directory and marking the differences. It includes three operations: "Consistent," "Retained," and "Added." If the differences between the sub-items and professional combinations in the two versions are marked as completely identical, then the updated catalog should be selected as "consistent" and kept the same. If the combination of sub-items and majors in the published directory is compared with the directory to be published and the difference is marked as the directory to be published does not exist, then the updated directory will be "retained" and the published directory will be used. If the combination of sub-items and majors in the directory to be published is compared with the published directory and the difference is marked as the published directory does not exist, then the updated directory should be selected as "Add" and the directory to be published should be used. S72. Compare catalog information: Compare the figure numbers and names in the published and unpublished versions of the catalog. The corresponding operations for the comparison results include four types: "consistent", "change", "delete", and "add". Consistent operation: The figure number and figure name of the new and old sub-figure frames are completely identical; Deletion operation: The old sub-plot frame contains the plot number and name, but the new sub-plot frame does not exist; the user chooses whether to delete it. New operation: For figure numbers and names that do not exist in the old subplot frame, the new subplot frame will exist; Change operation: The drawing number and drawing name of the new and old sub-drawing frames are not completely consistent. According to the order in which the drawings of each version were uploaded, the directory will default to taking the drawing number, drawing name and sub-drawing frame information of the newest version.
8. The intelligent drawing version management method according to claim 1, characterized in that: In step S8, the platform automatically compares the new and old versions of the sub-drawings, mainly comparing the drawing content, including the elements and blocks in the sub-drawings. The specific steps are as follows: S81, Frame Matrix Migration: Obtain the lower left corner of the frame of the two sub-drawings, calculate the moving distance, and then move the frame; Frame matrix migration is because the frame position of the sub-drawings obtained from different drawings may change. For example, some sub-drawings may be obtained from drawings with only a single frame. Therefore, it is necessary to move the frame and its elements of the two sub-drawings to the same position through matrix migration before comparing the sub-drawings. S82, Primitive Analysis: Analyze all primitives to obtain their geometric information, color, line width, line type, and transparency, and calculate the bounding rectangle of primitives and blocks; S83. Element Comparison: If it is a single element, the element information and the position, length, and width of its enclosing rectangle are directly compared. If it is a block, a comparison algorithm based on element vertices is used. That is, first compare the number of vertices of the elements contained in the block. If the number is the same, compare the position, length, and width of the enclosing rectangle of each block. If the element information, number of vertices, and enclosing rectangle information of the two versions of the drawing are the same, it means that the element or block has not been modified. If it has changed or the corresponding element or block cannot be found, it means that the element or block has been modified. Mark the comparison results and store the modification information for easy display of comparison results later. In step S8, the subgraph update status includes four states: "added, modified, not modified, and no frame". Add: When the directory information comparison changes to an add operation, it means that the subgraph results of the updated file do not contain the subgraph data of the previous version. The version number of the newly uploaded and split subgraph frame is "V1" and the update status is "Add". Modified: When the directory information comparison changes to a change operation, the platform further compares the drawing content. At this time, the sub-drawing frame status is in automatic comparison. Further judgment is made based on the marked comparison results: If marked as "modified", it means that the drawing content contains sub-drawing data from the previous version. The sub-drawing comparison result is changed, and the version number of the newly uploaded and split sub-drawing is incremented by one, for example, from the initial version number "V1" to "V2", and the update status is "modified". No modification: When the directory information comparison changes to a consistent operation, the platform further compares the drawing content. At this time, the sub-drawing frame status is in automatic comparison. Further judgment is made based on the marked comparison results: If marked as "No modification", then if there is sub-drawing data from the previous version and the sub-drawing comparison result is unchanged, the version number of the newly uploaded and split sub-drawing will be incremented by one, for example, from the initial version number "V1" to "V2", and the update status will be "No modification". No frame: When the sub-figure frame is associated with the directory list data, the association fails, indicating that there is no matching sub-figure frame in the directory, the current "no version" status is "no frame".
9. The intelligent drawing version management method according to claim 1, characterized in that: In step S8, all the latest version of the drawing ledger is always displayed. This mainly involves setting the sub-drawing frames contained in the latest version directory as the default version and always displaying them in the data list. Users can view the sub-drawing frame data of historical versions through version management, or set a historical version as the current version. The drawing comparison results are displayed using visualization technology, which shows the comparison differences in a graphical way, making the comparison results more intuitive and easier to understand.
10. The management platform of the intelligent drawing version management method according to any one of claims 1-9, characterized in that: The management platform includes a file module, a directory module, and a directory verification module. The file module primarily displays all the latest version drawing files through a drawing list, including "file name, file status, uploader, file size, and upload time." It supports uploading, updating, downloading, renaming, sharing, moving, and viewing historical versions. Clicking "Upload" allows uploading drawing files or folders; clicking "File Name" displays detailed information about the current drawing and its version comparison; clicking "Operation" allows updating drawings, viewing historical versions, and switching the default display version. The directory module primarily displays all the latest version sub-drawing frames through a directory list, including "drawing number, drawing name, update status, current version, and update time." It supports sharing, downloading, and deleting. Clicking "Drawing Name" displays detailed information about the current sub-drawing and its version comparison; clicking "Current Version" allows viewing historical versions of the sub-drawing and switching the default display version. The "Update Status" feature allows users to view an overview of drawing version comparison results and supports filtering the updated status to display sub-drawings. The catalog verification module primarily displays catalog data automatically identified and associated by the platform through a list, verifying and publishing the catalog data. The displayed information includes the drawing number, drawing name, sub-item, and specialty of the catalog and associated sub-drawing frames, as well as the source drawing path and time of the sub-drawing frames. The module's main functions include sub-item and specialty settings, adding a catalog, editing a catalog, deleting a catalog, importing a catalog, exporting a catalog, adding associations, association matching, association confirmation, and publishing. The "Association Matching" feature allows manual supplementation and algorithmic matching of catalog data and sub-drawing frame data. For catalog data not automatically matched by the platform, manual supplementation and matching can be performed using "Add Association." The "Association Confirmation" feature marks and confirms the correctness of the matching results, and the "Publish" feature publishes the catalog version. The published catalog can be viewed in the catalog module.