BIM model version comparison method and system based on Grasshopper and Revit
Through the BIM model version comparison method based on Grasshopper and Revit, the component changes in the BIM model version are automatically compared and filtered, and the problem of low manual review efficiency in BIM model version review is solved, and fast and accurate audit is achieved, reducing costs and time.
Patent Information
- Application Number
- CN202311297135.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-09
- Publication Date
- 2025-03-11
- Estimated Expiration
- 2043-10-09
AI Technical Summary
During the BIM model version review process, manual review leads to high workload, high cost, accuracy and low efficiency, especially in the review of different versions of BIM models, which increases the difficulty and time of review.
Using the BIM model version comparison method based on Grasshopper and Revit, we use automatic comparison and filtering of ID, geometry and attribute changes of new and old version components to generate a model comparison review report to reduce manual intervention.
It significantly reduces the time and cost of auditing designers, improves audit speed and accuracy, reduces audit cycle, improves design quality, and reduces the repetitive workload of BIM model review.
Smart Images

Figure CN118332633B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of BIM model design, and more specifically, relates to a comparison method and system used in a BIM model version review process. Background Art
[0002] BIM synchronous forward design is a mainstream project-level BIM technology application process, in which reviewing the quality of BIM models is of great significance.
[0003] At present, the review of BIM models is mainly done manually. With the large-scale, integrated and complex characteristics of the project, the number of BIM model components has increased rapidly, the space is complex, and there are many component information standards. The workload of a single information review is extremely large. At the same time, with the increase in the number of model reviews and modifications, the workload increases proportionally, and the amount of repeated reviews is extremely high, which greatly increases the labor cost and review cycle, and reduces the accuracy and efficiency of the review.
[0004] Especially when faced with the review of different versions of the same BIM model, the amount of modification after the model review is not much different from before the modification. Sometimes there is even a large amount of repetitive work, which increases the difficulty of the review and seriously reduces the speed and accuracy of the review. Summary of the invention
[0005] In order to solve the above technical problems, the present invention provides a BIM model version comparison method and system based on Grasshopper and Revit, which can greatly improve the speed and accuracy of reviewing different versions of BIM models of the same item and improve design efficiency.
[0006] The technical solution adopted by the present invention to solve the above-mentioned technical problems is:
[0007] A method for comparing BIM model versions based on Grasshopper and Revit, characterized by comprising the following steps:
[0008] S1: Use Revit to create a Revit comparison assembly file;
[0009] S2: According to the chronological order of the versions, the Revit comparison assembly files are linked to the old version BIM model and the new version BIM model respectively;
[0010] S3: read all components in the new and old BIM models respectively to form a component data set;
[0011] S4: extracting ID data from the component data set to form a component ID data set;
[0012] S5: Compare the component ID data sets, group them according to old version and new version, and form an old version component ID data set and a new version component ID data set;
[0013] Compare the grouped old version component ID data set with the new version component ID data set, and filter out the deleted component ID data set, the newly added component ID data set, and the unchanged component ID data set respectively;
[0014] S6: using the unchanged component ID data set to respectively select an old version unchanged component data set and a new version unchanged component data set from the component data set;
[0015] S7: geometrically transform the old version unchanged component dataset and the new version unchanged component dataset respectively to form corresponding mesh model datasets, namely, the old version unchanged component mesh dataset and the new version unchanged component mesh dataset;
[0016] S8: extracting attribute information from the mesh data set of the unchanged components of the old version and the mesh data set of the unchanged components of the new version to form corresponding attribute information data sets, namely, the attribute information data set of the unchanged components of the old version and the attribute information data set of the unchanged components of the new version;
[0017] S9: parsing mesh-related data in the mesh data set of the unchanged component of the old version and the mesh data set of the unchanged component of the new version in S7, and if there is a difference, the corresponding component ID is used to form a component ID geometry change data set;
[0018] S10: parsing the attribute-related data in the unchanged component attribute information data set of the old version and the unchanged component attribute information data set of the new version in S8, if there is a difference, the corresponding component ID is used to form a component ID attribute change data set;
[0019] S11: A total of four data sets, namely, a deleted component ID data set, a newly added component ID data set, a component ID geometry change data set, and a component ID attribute change data set, are respectively integrated into component ID formats to form a model comparison review report and output it.
[0020] In the above technical solution, step S2: according to the chronological order of the versions, in the created Revit comparison assembly file, the old version BIM model is first linked through the management command, and then the new version BIM model is linked.
[0021] In the above technical solution, the steps of step S3 to read all components in the new and old BIM models are as follows:
[0022] Step S31: Open Rhino and Grasshopper through the Revit plug-in RhinoInside in the created Revit comparison assembly file;
[0023] Step S32: Using Grasshopper to read the link file DOC information in step S2;
[0024] Step S33: According to the link file DOC information, all components in the two linked BIM models are read respectively to form a component data set.
[0025] In the above technical solution, the regional division principle for S5 to compare and filter the grouped old version component ID data set and the new version component ID data set is as follows:
[0026] Compare the grouped old version component ID data set with the new version component ID data set, filter out component IDs that exist in the old version component ID data set but do not exist in the new version component ID data set, and form a deleted component ID data set;
[0027] Compare the grouped old version component ID data set with the new version component ID data set, filter out component IDs that do not exist in the old version component ID data set but exist in the new version component ID data set, and form a newly added component ID data set;
[0028] The grouped old version component ID data set is compared with the new version component ID data set, and the component IDs existing in the old version component ID data set and in the new version component ID data set are screened out to form an unchanged component ID data set.
[0029] In the above technical solution, the screening of the deleted component ID data set, the newly added component ID data set, and the unchanged component ID data set in S5 is performed simultaneously or sequentially.
[0030] In the above technical solution, the mesh-related data in S9 includes at least one of the number, position and volume size data of mesh vertices.
[0031] In the above technical solution, the attribute-related data in S10 includes at least one of the component name, construction number and component coding data.
[0032] In the above technical solution, in S11, the single component ID in each of the four data sets is organized into a single data connected by ";" using Python, so that the reviewers can quickly query similar components, form a model comparison review report, and output an Excel file.
[0033] According to another aspect of the present invention, a computer-readable storage medium or system may be provided, on which a computer program is stored, and when the computer program is executed by a processor, the steps of any of the above methods are implemented.
[0034] Compared with the prior art, the present invention has the following beneficial effects:
[0035] The present invention uses the old and new versions of BIM models of the same item as input parameters, automatically compares the modified amount of the model after review and the corresponding modified components, and through automated comparison and screening of a large amount of repetitive workload, and using visual output as the ultimate carrier for problem solving, it can greatly reduce the time and work cost of the review designer, greatly improve the review speed and accuracy, shorten the review cycle, improve the design quality, reduce the repetitive workload of BIM model review, and improve the work efficiency of BIM model drawing review, providing a new set of ideas for projects to achieve cost reduction and efficiency improvement.
[0036] Since the present invention adopts Rhino, the most common design software in the construction engineering industry, and Revit, the most commonly used full-professional BIM modeling software in the construction engineering industry, the adaptability of digital design and digital drawing review is very wide and easy to popularize.
[0037] Grasshopper is a visual programming platform based on the Rhino platform and Revit's RhinoInside, which greatly reduces the difficulty for designers to use the program and has stronger customization. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] The present invention will be further described below with reference to the accompanying drawings and embodiments, in which:
[0039] Figure 1 The present invention is a flowchart of a method for comparing BIM model versions based on Grasshopper and Revit, provided by an embodiment of the present invention.
[0040] Figure 2 This is a schematic diagram of an old version of a BIM model of the same item provided by an embodiment of the present invention.
[0041] Figure 3 is a schematic diagram of a new version of a BIM model provided by an embodiment of the present invention, relative to Figure 2 Remove redundant model elements, simplify elements of the same type and attributes, and add new models that were missed.
[0042] Figure 4 It is a schematic diagram of a deleted component provided by an embodiment of the present invention.
[0043] Figure 5 It is a schematic diagram of a newly added component provided by an embodiment of the present invention.
[0044] Figure 6 It is a schematic diagram of a component in which a geometric model is changed according to an embodiment of the present invention;
[0045] Figure 7is a schematic diagram of a component with changed properties provided by an embodiment of the present invention;
[0046] Figure 8 It is a schematic diagram of a model comparison review report provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0047] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0048] In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0049] like Figure 1 As shown, the present invention is based on the BIM model version comparison method of Grasshopper and Revit. The implementation process is to use Grasshopper and Revit to compare and review the BIM model versions of the structural foundation.
[0050] In the BIM model version comparison method based on Grasshopper and Revit in the embodiment of the present invention, the Rhino platform is the most common design software in the construction engineering industry and is suitable for use in all professions. Revit is the most commonly used full-professional BIM modeling software in the construction engineering industry. Grasshopper is a visual programming platform based on the Rhino platform and Revit's RhinoInside, which greatly reduces the difficulty of using the program for designers and has stronger customization.
[0051] The structural foundation BIM model consistency review method based on Rhino and Revit in this embodiment is based on the model version comparison method of Grasshopper and Revit, and the detailed steps are as follows:
[0052] (1) Use Revit to create a comparison assembly file;
[0053] (2) According to the chronological order of versions, in the comparison assembly file created in (1), the old version of the BIM model is linked first through the management command, which is version A. Figure 2 , then link the new version of the BIM model to version B. Figure 3 ;
[0054] (3) In the Revit comparison assembly file created in (1), open Rhino and Grasshopper using the Revit plug-in RhinoInside;
[0055] (4) Use Grasshopper to read the DOC information of the link file in (2);
[0056] (5) According to the link file DOC information in (3), all components in the two linked BIM models are read respectively to form a component data set;
[0057] (6) Extracting ID data from the component data set in (5) to form a component ID data set;
[0058] (7) The component ID data set in (6) is grouped according to version A and version B to form component ID data set A and component ID data set B;
[0059] (8) Compare the component ID data set A and the component ID data set B after grouping in (7), and filter out the component IDs that exist in the component ID data set A but not in the component ID data set B to form a deleted component ID data set. The components are displayed as follows: Figure 4 ;
[0060] (9) Compare the component ID dataset A and the component ID dataset B after grouping in (7), and filter out the component IDs that do not exist in the component ID dataset A but exist in the component ID dataset B to form a new component ID dataset. The components are displayed as follows: Figure 5 ;
[0061] (10) Compare the component ID data set A and the component ID data set B after grouping in (7), and select the component IDs that exist in the component ID data set A and the component ID data set B to form an unchanged component ID data set;
[0062] (11) Using the unchanged component ID dataset in (10), filter out unchanged component dataset A and unchanged component dataset B from the component dataset in (5);
[0063] (12) geometrically transform the unchanged component data sets A and B in (11) to form corresponding mesh model data sets, namely, the unchanged component mesh data set A and the unchanged component mesh data set B;
[0064] (13) extracting attribute information from the unchanged component data sets A and B in (11) to form corresponding attribute information data sets, namely, the unchanged component attribute information data set A and the unchanged component attribute information data set B;
[0065] (14) Analyze the mesh-related data in the unchanged component mesh data sets of A and B in (12), such as the number of mesh vertices, positions, and volume sizes. If there are differences, the corresponding component IDs are used to form a component ID geometry change data set. The components are displayed as follows: Figure 6;
[0066] (15) Analyze the attribute-related data in the unchanged component attribute information data set of A and B in (13), such as component name, construction number and component code. If there is a difference, the corresponding component ID will be used to form a component ID attribute change data set. The component display is as follows: Figure 7 ;
[0067] (16) The four data sets in (8), (9), (14), and (15) are integrated into component ID format respectively. The single component ID in each data set is organized into a single data connected by “;” using Python, so that the reviewers can quickly query similar components, form a model comparison review report, and output an Excel file, such as Figure 8 .
[0068] In other embodiments not specifically shown, other visual languages may also be used to integrate and connect the individual component IDs in each data set for the purpose of facilitating output and facilitating quick query.
[0069] According to another aspect of the present invention, a computer-readable storage medium or system may be provided, on which a computer program is stored, and when the computer program is executed by a processor, the steps of any of the above methods are implemented.
[0070] This invention breaks through the traditional BIM model review technology and applies the writing of visual compilation programs to BIM model comparison and review, which greatly improves the review efficiency and accuracy, shortens the review cycle, improves the design quality, reduces the repeated workload of the review, greatly reduces the work cost of the review designer, and greatly improves the work efficiency of the BIM model drawing consistency review, providing significant benefits for the project to achieve cost reduction and efficiency improvement.
[0071] It should be understood that those skilled in the art can make improvements or changes based on the above description, and all these improvements and changes should fall within the scope of protection of the appended claims of the present invention.
Claims
1. A BIM model version comparison method based on Grasshopper and Revit, characterized in that The steps include: S1: Use Revit to create a Revit comparison assembly file; S2: According to the chronological order of the versions, the Revit comparison assembly files are linked to the old version BIM model and the new version BIM model respectively; S3: read all components in the new and old BIM models respectively to form a component data set; S4: extracting ID data from the component data set to form a component ID data set; S5: Compare the component ID data sets, group them according to old version and new version, and form an old version component ID data set and a new version component ID data set; Compare the grouped old version component ID data set with the new version component ID data set, and filter out the deleted component ID data set, the newly added component ID data set, and the unchanged component ID data set respectively; S6: using the unchanged component ID data set to respectively select an old version unchanged component data set and a new version unchanged component data set from the component data set; S7: geometrically transform the old version unchanged component dataset and the new version unchanged component dataset respectively to form corresponding mesh model datasets, namely, the old version unchanged component mesh dataset and the new version unchanged component mesh dataset; S8: extracting attribute information from the mesh data set of the unchanged components of the old version and the mesh data set of the unchanged components of the new version to form corresponding attribute information data sets, namely, the attribute information data set of the unchanged components of the old version and the attribute information data set of the unchanged components of the new version; S9: parsing mesh-related data in the mesh data set of the unchanged component of the old version and the mesh data set of the unchanged component of the new version in S7, and if there is a difference, the corresponding component ID is used to form a component ID geometry change data set; S10: parsing the attribute-related data in the unchanged component attribute information data set of the old version and the unchanged component attribute information data set of the new version in S8, if there is a difference, the corresponding component ID is used to form a component ID attribute change data set; S11: A total of four data sets, namely, a deleted component ID data set, a newly added component ID data set, a component ID geometry change data set, and a component ID attribute change data set, are respectively integrated in component ID format to form a model comparison review report and output it.
2. The method for comparing BIM model versions based on Grasshopper and Revit according to claim 1, characterized in that Step S2: According to the chronological order of the versions, in the created Revit comparison assembly file, the old version BIM model is first linked through the management command, and then the new version BIM model is linked.
3. The method for comparing BIM model versions based on Grasshopper and Revit according to claim 1, characterized in that Step S3: Read all components in the new and old BIM models as follows: Step S31: Open Rhino and Grasshopper through the Revit plug-in RhinoInside in the created Revit comparison assembly file; Step S32: Using Grasshopper to read the link file DOC information in step S2; Step S33: According to the link file DOC information, all components in the two linked BIM models are read respectively to form a component data set.
4. The method for comparing BIM model versions based on Grasshopper and Revit according to claim 1, characterized in that S5 compares and screens the grouped old version component ID dataset with the new version component ID dataset based on the following regional division principles: Compare the grouped old version component ID data set with the new version component ID data set, filter out component IDs that exist in the old version component ID data set but do not exist in the new version component ID data set, and form a deleted component ID data set; Compare the grouped old version component ID data set with the new version component ID data set, filter out component IDs that do not exist in the old version component ID data set but exist in the new version component ID data set, and form a newly added component ID data set; The grouped old version component ID data set is compared with the new version component ID data set, and the component IDs existing in the old version component ID data set and in the new version component ID data set are screened out to form an unchanged component ID data set.
5. The method for comparing BIM model versions based on Grasshopper and Revit according to claim 1, characterized in that In S5, the screening of the deleted component ID data set, the newly added component ID data set, and the unchanged component ID data set is performed simultaneously or sequentially.
6. The method for comparing BIM model versions based on Grasshopper and Revit according to claim 1, characterized in that The mesh related data in S9 includes at least one of the number, position and volume size data of mesh vertices.
7. The method for comparing BIM model versions based on Grasshopper and Revit according to claim 1, characterized in that The attribute-related data in S10 includes at least one of a component name, a construction number, and a component coding data.
8. The method for comparing BIM model versions based on Grasshopper and Revit according to claim 1, characterized in that In S11, the single component ID in each of the four data sets is organized into a single data connected by ";" using Python, which makes it convenient for reviewers to quickly query similar components, form a model comparison review report, and output an Excel file.
9. A computer-readable storage medium or system having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Municipal administration road BIM design model and GIS data integration method
CN106844977A
Method for checking whether BIM (Building Information Modeling) file is changed or not
CN108694158A