Drawing management method, platform, device and storage medium
By receiving and calculating the drawing hash value, the updated content of the drawing is determined. The drawing frame is used as the management unit, and the cloud service platform is used to realize the unified management of drawings, which solves the problem of inconvenient drawing management and improves the efficiency of viewing and managing engineering drawings.
Patent Information
- Application Number
- CN202211192285.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-28
- Publication Date
- 2026-02-06
- Estimated Expiration
- 2042-09-28
AI Technical Summary
Existing technologies cannot provide a method for unified management of all drawings involved in a project from the perspective of the entire project, resulting in inconvenience in viewing and managing the drawings.
By receiving the first version of the drawing file, calculating the hash value and determining the drawing to be updated, and using the drawing frame in the drawing as the smallest data management unit, the updated content and status of the drawing are obtained, and unified management is carried out using a centralized cloud service drawing management platform.
It enables a comprehensive understanding of drawing modifications from the perspective of the entire project, facilitating viewing and management, reducing the need to open each drawing file individually, and improving the efficiency of drawing management.
Smart Images

Figure CN115543916B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of design, and in particular to a drawing management method, platform, device and storage medium. BACKGROUND
[0002] The existing engineering design work is still in the stage of transition from paper to paperless. When using a paperless method to manage drawing files, the designer needs to open and check the drawing files one by one when checking the drawing data. The storage location and storage method of the drawing files all depend on the designer's own habits. Therefore, drawings from different designers and different types of drawings often exist separately in the personal folders of each designer, or are randomly stored by the designer in various locations of the engineering folder. The above situation causes great inconvenience to the viewing and management of drawings. On the other hand, during the drawing viewing process, the current software does not display the information of the number of drawings in the drawing file clearly, and cannot intuitively understand the situation of the drawings in the drawing file.
[0003] Therefore, the prior art cannot provide a method for uniformly managing all drawings related to an entire project from the perspective of the entire project. SUMMARY
[0004] The present application provides a drawing management method, platform, device and storage medium to solve the technical problem that the prior art cannot provide a method for uniformly managing all drawings related to an entire project from the perspective of the entire project.
[0005] In a first aspect, the embodiments of the present application provide a drawing management method applied to a cloud service centralized drawing management platform, comprising:
[0006] receiving a first version drawing file and determining a drawing to be updated, the drawing to be updated being a set of drawings different from a second version drawing file in the first version drawing file, the second version drawing file being stored in the drawing management platform;
[0007] determining drawing update content based on the drawing to be updated, the drawing update content taking a frame in a drawing as the smallest data management unit;
[0008] obtaining a drawing update situation based on the drawing update content, uploading the drawing update content and the drawing update situation.
[0009] Optionally, the first version drawing file includes M drawings, and the second version drawing file includes N drawings.
[0010] The receiving a first version drawing file and determining a drawing to be updated comprises:
[0011] performing the following processing on each of the M drawings:
[0012] calculating hash values of the drawings and hash values of N drawings in the second version drawing file and comparing the hash values to obtain a first comparison result;
[0013] when the first comparison result is that the hash value of the drawing is not the same as the hash value of each drawing in the second version drawing file, adding the drawing to the to-be-updated drawings.
[0014] Optionally, after obtaining the first comparison result, the method further includes:
[0015] when the first comparison result is that the hash value of the drawing is the same as the hash value of the first drawing in the second version drawing file, establishing an index relationship between the drawing and the first drawing, and the index relationship indicates that the data of the drawing is derived from the first drawing.
[0016] Optionally, the determining the drawing update content based on the to-be-updated drawings includes:
[0017] extracting all frame data in the to-be-updated drawings as the drawing update content, each drawing in the to-be-updated drawings includes at least one frame, and each piece of frame data in the frame data has an identifier for identifying the piece of frame data and attributes of the piece of frame data.
[0018] Optionally, the drawing update content includes frame data of P frames.
[0019] The method further includes:
[0020] performing the following processing on frame data of each frame in the P frames:
[0021] extracting graphic element data in the frame data;
[0022] comparing the graphic element data with graphic element data of N drawings in the second version drawing file to obtain a second comparison result;
[0023] when the second comparison result is that the graphic element data is the same as first graphic element data in the graphic element data of N drawings in the second version drawing file, setting a drawing update situation of frame data corresponding to the second comparison result as no change, or when the second comparison result is that the graphic element data is not the same as the graphic element data of N drawings in the second version drawing file, setting the drawing update situation as modification or addition.
[0024] Optionally, after uploading the drawing update content and the drawing update situation, the method further comprises:
[0025] obtaining a historical version drawing viewing instruction, the historical version drawing viewing instruction indicating to display a historical version of a second drawing in a drawing file stored by the drawing management platform;
[0026] generating and displaying a second drawing historical version list based on the historical version drawing viewing instruction and a drawing update situation corresponding to the second drawing.
[0027] In a second aspect, a cloud service centralized drawing management platform is provided, comprising:
[0028] a first determination module configured to receive a first version drawing file and determine a drawing to be updated, the drawing to be updated being a set of drawings in the first version drawing file that are different from a second version drawing file stored in the drawing management platform;
[0029] a second determination module configured to determine drawing update content based on the drawing to be updated, the drawing update content taking a frame in a drawing as a minimum data management unit;
[0030] an uploading module configured to obtain a drawing update situation based on the drawing update content, and upload the drawing update content and the drawing update situation.
[0031] Optionally, the first version drawing file includes M drawings, and the second version drawing file includes N drawings.
[0032] The first determination module is configured to:
[0033] perform the following processing on each of the M drawings:
[0034] calculate a hash value of the drawing and hash values of the N drawings in the second version drawing file and compare the hash values to obtain a first comparison result;
[0035] when the first comparison result is that the hash value of the drawing is different from hash values of each of the N drawings in the second version drawing file, add the drawing to the drawing to be updated.
[0036] In a third aspect, an electronic device is provided, comprising a processor, a memory and a communication bus, wherein the processor and the memory complete communication with each other through the communication bus;
[0037] The memory is configured to store a computer program.
[0038] The processor is configured to execute the program stored in the memory to implement the drawing management method of the first aspect.
[0039] In a fourth aspect, a computer readable storage medium is provided, which stores a computer program. The computer program, when executed by a processor, implements the drawing management method of the first aspect.
[0040] The above technical solution provided by the embodiments of the present application has the following advantages compared with the prior art: the method provided by the embodiments of the present application uses a cloud service centralized drawing management platform, receives a first version drawing file, and determines a to-be-updated drawing, which is a set of drawings different from a second version drawing file in the first version drawing file, the second version drawing file being stored in the drawing management platform; based on the to-be-updated drawing, drawing update content is determined, the drawing update content taking a frame in the drawing as the smallest data management unit; based on the drawing update content, drawing update information is obtained, and the drawing update content and the drawing update information are uploaded. The present application can know which part of the drawing in the drawing file received and uploaded each time is different from the existing drawing in the platform, and upload and record the different part as the update content. For a designer, the drawing update information can be obtained to understand the modification of the drawing in the design process from the perspective of the entire project, and it is no longer necessary to open the drawing file one by one and repeatedly compare, thereby facilitating viewing and further management. BRIEF DESCRIPTION OF DRAWINGS
[0041] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and serve to explain the principles of the present application together with the specification.
[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the accompanying drawings needed to be used in the embodiments or prior art description will be briefly introduced here. Obviously, for those skilled in the art, other drawings can also be obtained based on these drawings without creative labor.
[0043] Figure 1 A flowchart of a drawing management method in the embodiments of the present application.
[0044] Figure 2 A flowchart of the specific implementation of the drawing management method shown in the embodiments of the present application.
[0045] Figure 3 A file structure diagram in the implementation process of the drawing management method shown in the embodiments of the present application.
[0046] Figure 4A structural schematic diagram of a cloud service centralized drawing management platform according to an embodiment of the present application.
[0047] Figure 5 A structural schematic diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0048] To make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the following will be combined with the accompanying drawings for the embodiments of the present application to make a clear and complete description of the technical solutions in the embodiments of the present application. Obviously, the described embodiments are a part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative work belong to the scope of protection of the present application.
[0049] It should be noted that the terms "first", "second" and the like in the specification and claims of the present application and the above-described accompanying drawings are used to distinguish similar objects, and do not have to be used to describe a specific order or sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device including a series of steps or units does not have to be limited to those steps or units clearly listed, but can include other steps or units not clearly listed or inherent to the process, method, product or device.
[0050] The embodiments of the present application provide a drawing management method applied to a cloud service centralized drawing management platform, as shown in the drawing management platform 1000, the method can include the following steps: Figure 1
[0051] Step 101, receiving a first version drawing file and determining a drawing to be updated, the drawing to be updated is a set of drawings in the first version drawing file different from a second version drawing file, and the second version drawing file is stored in the drawing management platform.
[0052] In an exemplary embodiment, the first version drawing file includes M drawings, and the second version drawing file includes N drawings; receiving the first version drawing file and determining the drawing to be updated includes: performing the following processing on each drawing in the M drawings: calculating the hash value of the drawing and the hash value of the N drawings in the second version drawing file and comparing them to obtain a first comparison result; when the first comparison result is that the hash value of the drawing is different from the hash value of each drawing in the second version drawing file, the drawing is added to the drawing to be updated.
[0053] It should be understood that multiple version drawing files can be included in the drawing management platform, and when a first version drawing file is uploaded, these version drawing files can be sequentially executed as second version drawing files to implement comparison of the first version drawing file with all version drawing files in the platform.
[0054] In actual application, a common case of receiving a drawing file is that a drawing designer submits a new version drawing file after modification as a first version drawing file, and at this time, the second version drawing file is a current version drawing file already stored in the drawing management platform. For the purpose of facilitating understanding (repeated use of the description of “first version” and “second version” will bring difficulty to the understanding of readers), “new version drawing file” and “current version drawing file” will be used instead of “first version drawing file” and “second version drawing file” in the following description of step 101. Of course, uploading a new version drawing file is only one use of the method, and in other cases, such as supplementally uploading an old version drawing file that has been forgotten to be uploaded, the method can still be used to complete uploading of the drawing based on the original description.
[0055] Generally, the new version drawing file includes M drawings, and the old version drawing file includes N drawings, M and N are natural numbers and greater than 0. The drawing management platform will sequentially calculate the hash value of each drawing in the new version drawing file and compare it with the hash value of each drawing in the old version drawing file (the hash value of the old version drawing file is generally calculated when it is uploaded, and if it is not calculated, it can be calculated in this step). For example, when drawing A is judged, if the same hash value as that of drawing A cannot be detected in the old version drawing file, it is considered that drawing A is a new drawing, and drawing A needs to be added to the drawing to be updated and updated to the drawing management platform.
[0056] If the comparison result shows that the hash values of the two drawings are the same, it is considered that drawing A is a repeated upload of the designer, and at this time, the drawing management platform will not consume bandwidth and storage resources to perform subsequent analysis and upload of drawing A, but in the subsequent update step, the data of drawing B will be directly linked to drawing A, that is, incremental update. The drawing management platform will not perform subsequent processing on the hash value consistent drawing file, and only the changed part of the new version drawing file will be updated, thereby realizing incremental update of the drawing.
[0057] In an exemplary embodiment, after obtaining the first comparison result, it further includes: when the first comparison result is that the hash value of the drawing is the same as the hash value of the first drawing in the second version drawing file, an index relationship is established between the drawing and the first drawing, and the index relationship indicates that the data of the drawing is derived from the first drawing.
[0058] In the above, the concept of "incremental update" has been proposed, that is, the drawing management platform will not waste resources to save and parse the same drawing repeatedly. Specifically, in order to no longer upload the repeated drawing A, an index relationship can be established to associate the files of drawing A and drawing B. In actual application, all drawing files with the same content are saved only once, but the drawing can appear in different locations of the entire project through the index relationship. For example, there are two drawings of "bedroom" in the drawing files of "building 1" and "building 2", respectively, but these two drawings are actually stored only once, and they are displayed by introducing the content of a drawing named "bedroom" into "building 1" and "building 2" through the index relationship.
[0059] Step 102, based on the drawing to be updated, determine the drawing update content, and the drawing update content takes the frame in the drawing as the smallest data management unit.
[0060] In an exemplary embodiment, based on the drawing to be updated, determining the drawing update content comprises: extracting all frame data in the drawing to be updated and taking it as the drawing update content, each drawing in the drawing to be updated comprises at least one frame, and each piece of frame data in the frame data has an identification for identifying the piece of frame data and an attribute of the piece of frame data.
[0061] In drawing design, electronic drawings can be stored in the form of.dwg suffix. According to the habit of designers, a single drawing can include multiple frames, that is, a single.dwg file can include multiple frames. For example, some designers will pack the bedroom drawings of three house types in building 1 in one.dwg, so "bedroom.dwg" will include at least three frames (at least one corresponding frame for each house type). But some designers will choose to upload "bedroom A.dwg", "bedroom B.dwg" and "bedroom C.dwg" three files respectively. When the drawings of multiple designers are uploaded together, these different design habits may cause problems. Therefore, the above scheme is designed. The drawing management platform will use the drawing parsing engine to parse and extract all frame data in each.dwg. After extraction, all uploaded drawing data can uniformly take the frame as the management unit, which facilitates the management of drawings.
[0062] Since the drawing to be updated has been determined in step 101, only the above frame extraction step needs to be performed on the drawing to be updated, and after extraction, all frames are displayed on the drawing management platform. In order to identify the ownership of each frame, an identification such as "professional + sub-item + drawing number + drawing name" can be added to each frame. Each frame also has its own drawing attributes, for example: professional, stage, sub-item. The signing column of the drawing will include these drawing attributes.
[0063] In step 103, the drawing update content is obtained based on the drawing update content, and the drawing update content and the drawing update situation are uploaded.
[0064] In an example embodiment, the drawing update content includes P drawing frame data of P drawing frames; and the drawing update situation is obtained based on the drawing update content, including: performing the following processing on the drawing frame data of each of the P drawing frames: extracting the graphic element data in the drawing frame data; comparing the graphic element data with the graphic element data of N drawings in the second version of the drawing file to obtain a second comparison result; when the second comparison result is that the graphic element data is the same as the first graphic element data in the graphic element data of N drawings in the second version of the drawing file, setting the drawing update situation of the drawing frame data corresponding to the second comparison result as no change, or when the second comparison result is that the graphic element data is different from the graphic element data of N drawings in the second version of the drawing file, setting the drawing update situation as modification or addition.
[0065] The drawing update situation is used to indicate which contents in the uploaded drawing are updated. In order to compare in detail and accurately, the graphic elements in the drawing frame need to be extracted. The present application provides four update situations, respectively "add" - the drawing management platform does not have the drawing frame; "modify" - the drawing management platform already has the drawing and the drawing frame, but the graphic element data has changed; "no change" - the drawing management platform already has the drawing and the drawing frame and the graphic element data is completely the same; "delete" - after the comparison of the drawing frame data in the drawing update content is completed, the remaining drawing frame in the second version of the drawing file is not compared and is deleted.
[0066] It should be understood that "add" and "modify" are both found by comparing different graphic element data in the drawing frame. The difference between the two is that in the "modified" drawing frame, a large number of graphic element data is the same as the drawing frame data before modification. Therefore, the proportion of the same graphic element data in all graphic element data in the drawing frame can be used to determine whether the update situation of the drawing frame is "add" or "modify".
[0067] It should be understood that the identification and attributes of each piece of drawing frame data can also be used for comparison to obtain the drawing update situation.
[0068] In an example embodiment, after uploading the drawing update content and the drawing update situation, the method further includes: obtaining a historical version drawing viewing instruction, the historical version drawing viewing instruction indicating to display a historical version of a second drawing in the drawing file stored in the drawing management platform; and based on the historical version drawing viewing instruction and the drawing update situation corresponding to the second drawing, generating and displaying a second drawing historical version list.
[0069] It should be understood that after the uploading of the drawing is completed, the drawing management platform displays the uploaded drawing, and the designer generally uses the latest version of the drawing for work. However, the previously uploaded drawing file is not directly deleted, but is saved as a historical version. When the designer wants to view the drawing uploaded at a previous time for comparison or reference, the drawing management platform can be instructed to view a certain historical version, and the drawing management platform displays the drawing file of the historical version for the designer to refer to.
[0070] When displayed, the historical version of the drawing can be additionally marked according to the drawing update. For example, the newly added drawing file in the historical version is highlighted.
[0071] The drawing management method described above is illustrated by a specific embodiment as shown in the following. Figure 2
[0072] Step 201, file name judgment
[0073] Each time the drawing is updated, the hash values of the drawing files are compared. If the hash values are consistent, it is considered that the drawing file is a repeated upload of the old version of the drawing file. If the hash values are inconsistent, it is considered that the drawing file is a new file, and the block data is parsed and identified.
[0074] It should be noted that the hash value is calculated based on the content of the drawing file, not the hash value of the drawing file name. The MD5 method can be used to calculate the hash value.
[0075] If the hash value of the newly uploaded drawing file this time is consistent with the hash value of the drawing file already existing in the old version of the drawing file, only the index relationship is updated, and the block data in the newly uploaded drawing file this time is no longer parsed. If the hash values are inconsistent, the parsing and extraction of step 202 are performed.
[0076] Step 202, data extraction
[0077] The drawing block data is parsed and extracted from the drawing using a drawing parsing engine. The identification of each piece of drawing block data obtained is “major + sub-item + drawing number + drawing name”, and each piece of drawing block data further includes some drawing properties (for example, major, stage, sub-item, etc.). The signing column of the drawing includes these drawing properties.
[0078] Step 203, obtaining update information
[0079] Each piece of drawing block data can be associated with different versions of the drawing source file. Through the update time in the update information and the index relationship between the block and the drawing source file, the drawing of each local update can be accurately located.
[0080] The following illustrates an example of the updating process as shown in the following.Figure 3 As shown in the following table 1 and table 2
[0081] Suppose that the drawing file A contains four frames, namely frame 1, frame 2, frame 3 and frame 4. After modification, the drawing file A is saved as drawing file B, which contains drawings of frame 2, frame 3, frame 4' and frame 5. The drawing update is as follows: the first drawing file A is uploaded to update four frames; the second drawing file B is uploaded to delete frame 1, modify frame 4 and add frame 5.
[0082] Table 1
[0083]
[0084]
[0085] Table 2
[0086]
[0087] The drawing management platform compares the drawing frame identifier and the drawing data in the frame. If the comparison is consistent, the drawing is overwritten. If the comparison is inconsistent, it is further determined whether it is new or modified. In this way, the drawing update is orderly and the version coverage is controllable.
[0088] It should be particularly noted that the above example explains the case where a single drawing file includes multiple frames. For the case of multiple drawing files, the update of each drawing file can be obtained and summarized in sequence.
[0089] Step 204, historical version drawing display
[0090] The user can filter the drawings in different versions according to the "major + sub-item + drawing number + drawing name" to generate a list and display it. The user can load the drawing through the web-based drawing browser and quickly switch the frame data of "major + sub-item + drawing number + drawing name" in different historical versions to realize the switching and comparison display of the same drawing and the same frame in different stages such as preliminary design and construction drawing in engineering design.
[0091] Based on the same concept, the cloud service centralized drawing management platform provided in the embodiments of the present application is described in the method embodiment part. The repeated parts will not be repeated. As shown in the following table 3, the cloud service centralized drawing management platform mainly includes: Figure 4
[0092] The first determining module 401 is configured to receive a first version drawing file and determine to-be-updated drawings, the to-be-updated drawings being a set of drawings different from a second version drawing file in the first version drawing file, and the second version drawing file being stored in the drawing management platform;
[0093] The second determining module 402 is configured to determine drawing update content based on the to-be-updated drawings, the drawing update content taking a frame in a drawing as a minimum data management unit;
[0094] The uploading module 403 is configured to obtain a drawing update situation based on the drawing update content, and upload the drawing update content and the drawing update situation.
[0095] The first version drawing file includes M drawings, and the second version drawing file includes N drawings.
[0096] It should be noted that the cloud service centralized drawing management platform provided in the embodiment has the following features:
[0097] First, the drawing management platform provides cloud services for users, that is, the platform users can use the platform to realize cloud storage and viewing of drawing files and other cloud services.
[0098] Second, the drawing management platform has a centralized function, that is, it can receive drawings uploaded by multiple users and centralize them together to form a full-professional engineering drawing file designed by multiple users.
[0099] Third, the drawing management platform is at least a software running on a conventional electronic device, and the conventional electronic device can be a computer, a mobile phone, a smart device, or other general-purpose electronic devices. For example, by purchasing server resources provided by a network operator, the software is deployed on the purchased server resources, and the designer interacts with the drawing management platform through a personal computer. Alternatively, the cloud service centralized drawing management platform can also be a special server cluster designed based on the content in the implementation method embodiment and other hardware. At this time, the drawing management platform includes software and the above-mentioned special server cluster and other hardware.
[0100] Based on the same concept, the embodiment of the present application also provides an electronic device, such as Figure 5As shown, the electronic device mainly includes a processor 501, a memory 502 and a communication bus 503, wherein the processor 501 and the memory 502 complete mutual communication through the communication bus 503. The memory 502 stores a program executable by the processor 501, and the processor 501 executes the program stored in the memory 502 to implement the following steps:
[0101] receive the first version drawing file and determine the drawing to be updated, the drawing to be updated being a set of drawings different from the second version drawing file in the first version drawing file, the second version drawing file being stored in the drawing management platform;
[0102] determine the drawing update content based on the drawing to be updated, the drawing update content taking a frame in the drawing as a minimum data management unit;
[0103] obtain the drawing update situation based on the drawing update content, upload the drawing update content and the drawing update situation.
[0104] The communication bus 503 mentioned in the above electronic device can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The communication bus 503 can be divided into an address bus, a data bus, a control bus, etc. For the convenience of representation, Figure 5 only one thick line is used in the figure, but it does not mean that there is only one bus or only one type of bus.
[0105] The memory 502 can include a random access memory (RAM) and can also include a non-volatile memory, for example, at least one disk memory. Optionally, the memory can also be at least one storage device located away from the aforementioned processor 501.
[0106] The processor 501 described above can be a general processor, including a central processing unit (CPU), a network processor (NP), etc., and can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component.
[0107] In yet another embodiment of the present application, a computer readable storage medium is also provided, which stores a computer program. When the computer program is run on a computer, the computer is caused to perform the drawing management method described in the above embodiments.
[0108] In the above embodiments, the implementation can be achieved by software, hardware, firmware or any combination thereof, entirely or partially. When implemented by software, the implementation can be in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present application are entirely or partially generated. The computer can be a general purpose computer, a special purpose computer, a computer network or other programmable apparatus. The computer instructions can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions are transferred from one website, computer, server or data center to another website, computer, server or data center through wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, microwave, etc.) mode. The computer readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. integrated with one or more available media. The available medium can be a magnetic medium (such as floppy disk, hard disk, magnetic tape, etc.), an optical medium (such as DVD) or a semiconductor medium (such as solid state disk) etc.
[0109] It has to be noted that, in the present document, relational terms are intended only to convey a possible relationship between elements or
[0110] The foregoing is considered as illustrative only of the principles of the application. Numerous modifications and changes will readily occur to those skilled in the art, which modifications and changes are to be understood as intended to be encompassed by the general scope of the application. Accordingly, the application is not to be limited to the above described or illustrated embodiments, but is intended to encompass all embodiments consistent with the principles of the application.
Claims
1. A drawing management method applied to a cloud service centralized drawing management platform, characterized in that, The method comprises the following steps: receiving a first version drawing file and determining to-be-updated drawings, the to-be-updated drawings being a set of drawings different from a second version drawing file in the first version drawing file, the second version drawing file being stored in the drawing management platform; based on the to-be-updated drawings, determining drawing update content, the drawing update content taking a frame in a drawing as a minimum data management unit; based on the drawing update content, obtaining drawing update information, uploading the drawing update content and the drawing update information; wherein the first version drawing file comprises M drawings, and the second version drawing file comprises N drawings; the receiving a first version drawing file and determining to-be-updated drawings comprises: performing the following processing on each of the M drawings: calculating the hash value of the drawing and the hash value of the N drawings in the second version drawing file and comparing them to obtain a first comparison result; when the first comparison result is that the hash value of the drawing is different from the hash value of each of the N drawings in the second version drawing file, adding the drawing to the to-be-updated drawings; wherein after the first comparison result is obtained, the method further comprises: when the first comparison result is that the hash value of the drawing is the same as the hash value of a first drawing in the second version drawing file, establishing an index relationship between the drawing and the first drawing, the index relationship indicating that the data of the drawing is derived from the first drawing.
2. The method of claim 1, wherein, the based on the to-be-updated drawings, determining drawing update content comprises: extracting all frame data in the to-be-updated drawings as the drawing update content, each of the to-be-updated drawings comprising at least one frame, each of the frame data having an identifier for identifying the frame data and an attribute of the frame data.
3. The method of claim 2, wherein, the drawing update content comprises frame data of P frames; the based on the drawing update content, obtaining drawing update information comprises: performing the following processing on the frame data of each of the P frames: extracting graphic element data in the frame data; comparing the graphic element data with graphic element data of the N drawings in the second version drawing file to obtain a second comparison result; when the second comparison result is that the graphic element data is the same as first graphic element data in the graphic element data of the N drawings in the second version drawing file, setting the drawing update information of the frame data corresponding to the second comparison result as no change, or when the second comparison result is that the graphic element data is different from the graphic element data of the N drawings in the second version drawing file, setting the drawing update information as modification or addition.
4. The method of claim 1, wherein, after the uploading the drawing update content and the drawing update information, the method further comprises: obtaining a historical version drawing viewing instruction, the historical version drawing viewing instruction indicating to display a historical version of a second drawing in a drawing file stored in the drawing management platform; based on the historical version drawing viewing instruction and the drawing update information corresponding to the second drawing, generating and displaying a second drawing historical version list.
5. A cloud service centralized drawing management platform, characterized in that, The method comprises the following steps: The first determining module is configured to receive a first version drawing file and determine to-be-updated drawings, the to-be-updated drawings being a set of drawings different from a second version drawing file in the first version drawing file, the second version drawing file being stored in the drawing management platform; The second determining module is configured to determine drawing update content based on the to-be-updated drawings, the drawing update content taking a frame in a drawing as a minimum data management unit; The uploading module is configured to obtain a drawing update situation based on the drawing update content, and upload the drawing update content and the drawing update situation. The first version drawing file includes M drawings, and the second version drawing file includes N drawings. The first determining module is configured to: perform the following processing on each of the M drawings: calculate hash values of the drawings and hash values of the N drawings in the second version drawing file, and compare the hash values to obtain a first comparison result; when the first comparison result is that the hash value of the drawing is different from hash values of each of the N drawings in the second version drawing file, add the drawing to the to-be-updated drawings. The first determining module, after obtaining the first comparison result, is further configured to: when the first comparison result is that the hash value of the drawing is the same as a hash value of a first drawing in the second version drawing file, establish an index relationship for the drawing and the first drawing, the index relationship indicating that data of the drawing is derived from the first drawing.
6. An electronic device, comprising: comprise: a processor, a memory, and a communication bus, wherein the processor and the memory complete communication with each other through the communication bus; The memory is configured to store a computer program. The processor is configured to execute the program stored in the memory to implement the drawing management method of any one of claims 1-4.
7. A computer readable storage medium storing a computer program, characterized in that, The computer program, when executed by the processor, implements the drawing management method of any one of claims 1-4.
Citation Information
Patent Citations
Drawing segmentation method and electronic equipment used in architectural design
CN112581476A
Legender identification method and device, equipment and storage medium
CN114283437A