A method, device, medium and equipment for encoding BIM model based on mapping rules
Through coding, the coding process of BIM models in existing technologies is solved, which is cumbersome, labor-intensive, and time-consuming. It adapts to the automated coding in the general coding process of engineering projects and is suitable for the creation of information-based, digital, and industrialized basic information in engineering fields such as civil engineering, municipal transportation, etc.
Patent Information
- Application Number
- CN202510716151.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-30
- Publication Date
- 2025-09-23
- Estimated Expiration
- 2045-05-30
AI Technical Summary
The existing technology for encoding BIM models in engineering construction is cumbersome and consumes manpower and material resources. When the model changes, the encoding needs to be re-produced, which is not applicable to the general encoding operation of multiple similar devices.
By establishing a coding directory tree, based on the color, material, line type, line weight, layer and attribute information of the BIM model, automatic coding is carried out and updated in time when the model changes.
It realizes the automatic coding of BIM models, reduces manual operations, improves the accuracy and efficiency of coding, is applicable to various engineering fields, reduces errors in the tedious process of manual intervention, adapts to the complicated and time-consuming manual intervention, and adapts to the general coding operations of engineering.
Smart Images

Figure CN120219519B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of engineering project three-dimensional model information processing technology, and in particular to a method, device, medium and equipment for encoding a BIM model based on mapping rules. Background Art
[0002] During the entire process of engineering design, construction, operation and maintenance, and demolition, a large number of models are involved in information identification, material procurement, measurement and pricing, equipment management, etc. Therefore, it is necessary to make specific codes for each type of component and equipment according to the rules as the basic information for subsequent work.
[0003] The current common practice involves extensive manual effort to familiarize oneself with coding rules. Then, using various BIM platform software (such as Revit and MicroStation), partial BIM model files are loaded. After manually identifying component and equipment information, code segments and serial numbers are determined according to the rules. These codes are then assembled and attached to the model. This method is cumbersome, time-consuming, and labor-intensive, and has a high error rate. Furthermore, if the model is modified or updated, the corresponding codes for the BIM file must be completely re-created.
[0004] The publication number CN117876594A, "Power System Three-Dimensional Model Coding Mapping Method, System and Storage Medium", discloses a coding technology, which is: generating model coding and three-dimensional model metadata for each device model, and using a database to store a simple one-to-one mapping relationship between the two, so as to quickly determine the corresponding device model based on the coding. Although the above method reduces the tedious process of human participation in coding to a certain extent, the coding is not mounted on the model and is separated from the model. If the model is subsequently added, deleted, or changed, the coding corresponding to the model file needs to be completely redone. In addition, this method does not take into account the differences in code segments and serial numbers of multiple devices of the same type when generating the model coding process, and cannot be used for general coding operations. Summary of the Invention
[0005] Based on the above background, the purpose of the present invention is to provide a method for automatically encoding the three-dimensional model of an engineering project based on mapping rules. This technical method is suitable for the creation of basic information such as informatization, digitization, and industrialization in engineering fields such as civil engineering, municipal transportation, etc.
[0006] To achieve the above object, the present invention adopts the following technical solutions:
[0007] In a first aspect, the present invention provides a method for encoding a BIM model based on mapping rules, comprising:
[0008] According to the actual needs of the project, determine the hierarchical division of the coding structure and pre-set fixed code segments to complete the formulation of standardized coding rules;
[0009] Collect and summarize code segment data for all systems and subsystems involved in the project, and build a coding directory tree based on coding rules. The tree branches and leaf nodes of the coding directory tree correspond to the systems or subsystems at all levels in the coding directory tree.
[0010] Establishing mapping rules between the tree branches and leaf nodes of the coding directory and the BIM model, and storing corresponding mapping rule data for each tree branch and leaf node in the coding directory tree; the mapping rules are selected individually or in combination based on the color, material, line type, line weight, layer, attribute class name and / or attribute field value of the BIM model;
[0011] Obtain the BIM file of the engineering project and the attribute information corresponding to all BIM models in the file based on the BIM platform software, and import them into the coding directory tree;
[0012] Acquire system-level and subsystem-level BIM models in the BIM file based on the mapping rules, and automatically encode all BIM models in the current BIM file according to the encoding directory tree data;
[0013] Obtain the change information, and use the node where the change information occurs as the starting process node to execute the subsequent process to perform the corresponding code update operation.
[0014] In a second aspect, the present invention provides a device for encoding a BIM model based on a mapping rule, the device comprising:
[0015] The coding rule formulation module is used to determine the hierarchical division of the coding structure and pre-set fixed code segments according to the actual needs of the project to complete the formulation of standardized coding rules;
[0016] The coding directory tree construction module is used to collect and summarize code segment data for all systems and subsystems involved in the project, and to construct a coding directory tree based on hierarchical affiliation. The tree branches and leaf nodes of the coding directory tree correspond to the systems or subsystems at all levels in the coding directory tree.
[0017] A mapping rule formulation module is used to establish mapping rules between the tree branches and leaf nodes of the coding directory and the BIM model, and each tree branch and leaf node in the coding directory tree stores corresponding mapping rule data; the mapping rules are based on the color, material, line type, line weight, layer, attribute class name and / or attribute field value of the BIM model, and are selected individually or set in combination;
[0018] A data import module is used to obtain the BIM file of the engineering project and the attribute information corresponding to all BIM models in the file based on the BIM platform software, and import it into the coding directory tree;
[0019] An automatic encoding module is used to obtain the system-level and subsystem-level BIM models in the BIM file based on the mapping rules, and automatically encode all BIM models in the current BIM file according to the encoding directory tree data;
[0020] The change processing module is used to obtain change information and use the node position where the change information occurs as the starting process node to execute subsequent processes and perform corresponding code update operations.
[0021] In a third aspect, the present invention provides a non-transitory computer-readable storage medium, in which a computer program is stored. The computer program is loaded and executed by a processor to implement the method for encoding a BIM model based on mapping rules as described above.
[0022] In a fourth aspect, the present invention provides an electronic device comprising: a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method for encoding a BIM model based on mapping rules as described above is implemented.
[0023] The beneficial effects of the present invention are as follows:
[0024] The embodiments of the present invention provide a method, apparatus, medium, and device for encoding BIM models based on mapping rules. The method prefabricates a coding directory tree and associates each node in the coding directory tree with information about a specific element in the BIM model, thereby enabling automatic encoding of all BIM models in the current BIM file. Specific beneficial effects are as follows:
[0025] (1) The present invention uses the coding directory tree as a unified data source for coding operations, thus avoiding the possibility of coding omissions and errors;
[0026] (2) The present invention uses a coding directory tree to establish a complex and accurate mapping relationship, automatically searching for corresponding components and equipment models, thus avoiding problems such as complicated, time-consuming, labor-intensive and error-prone manual operations;
[0027] (3) The present invention uses a coding directory tree to establish a complex and accurate mapping relationship. When the model is added, deleted, or modified, the coding can be automatically updated in a timely manner, thus avoiding the problems of complex, time-consuming, labor-intensive, and error-prone manual operations.
[0028] (4) The present invention can be applied to the encoding of various formats of three-dimensional models in engineering fields such as civil engineering, municipal transportation, etc. It is not limited by the format and production platform, has a high degree of automation, and reduces the manual workload. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] In order to more clearly illustrate the technical solutions in the present invention or the prior art, a brief introduction is given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0030] Figure 1 A flowchart of a method for intelligently encoding a BIM model based on mapping rules provided in an embodiment of the present invention;
[0031] Figure 2 The coding structure proposed for step S1 in the embodiment of the present invention;
[0032] Figure 3 Partial system description of the coding structure proposed for step S1 in the embodiment of the present invention;
[0033] Figure 4 A schematic diagram of a device for intelligently encoding a BIM model based on mapping rules provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0034] In order to further understand the present invention, preferred embodiments of the present invention are described below in conjunction with examples. However, it should be understood that these descriptions are only for further illustrating the features and advantages of the present invention, rather than limiting the claims of the present invention.
[0035] Example 1
[0036] See also Figure 1 , an embodiment of the present invention provides a method for encoding a BIM model based on mapping rules, comprising:
[0037] Step S1: Determine the coding structure and pre-set fixed code segments according to actual project needs to complete the coding rule formulation;
[0038] Step S2: Collect and aggregate code segment data of all systems and subsystems involved in the project, and construct a coding directory tree according to coding rules;
[0039] Step S3: Establishing mapping rules between the tree branches and leaves of the coding directory and the BIM model;
[0040] Step S4: obtaining the BIM file of the engineering project and the attribute information of all BIM models in the file based on the BIM platform, and importing them into the coding directory tree;
[0041] Step S5, automatically encoding all BIM models in the current BIM file according to the encoding directory tree data;
[0042] Step S6: Acquire the change information, and execute the subsequent process with the node position where the change information occurs as the starting node to perform the corresponding code update operation.
[0043] Specifically include:
[0044] In step S1, the hierarchical division of the coding structure is determined according to the actual needs of the project and fixed code segments are pre-set to complete the formulation of standardized coding rules, including:
[0045] Step S101, defining the coding structure includes designing a hierarchical coding structure to divide the code segments according to the hierarchical relationship between models. Specifically, the coding structure is determined according to the professional field, professional module, system, subsystem, etc. of the engineering project. In this embodiment, the coding of a pumped storage power station design stage is taken as an example. The coding structure is as follows: Figure 2 As shown, the code segment division includes project, stage, major specialty, minor specialty, system and final serial number, among which the system includes several subsystems.
[0046] Step S102 determines the fixed and dynamic code segments within the coding structure. Fixed code segments are predefined static values, while dynamic code segments are rule-generated variables. In the above code segment division, project, phase, major, and minor are fixed code segments, while the system is a combination of fixed and dynamic code segments, and the final serial number is a dynamic code segment.
[0047] Fixed code segments are generally determined by multiple parties including the builder, designer, and contractor. For example, the builder determines the project code to be ABC, as shown below. Table 1 shows the determined stage code segments, Table 2 shows the determined major and minor professional code segments, and Table 3 shows the determined system fixed code segments.
[0048] Table 1
[0049]
[0050] Table 2
[0051]
[0052] Table 3
[0053]
[0054] In this embodiment, taking the design phase coding as an example, the code segment comprises: project, phase, major discipline, minor discipline, system and final serial number. Specifically,
[0055] (1) The project is uniformly set with a fixed code;
[0056] (2) The stages include pre-feasibility, feasibility study, bidding design, construction detailed design, construction implementation and completion, etc. The actual code is the current stage;
[0057] (3) Major majors include hydraulic engineering, electromechanical engineering, and surveying;
[0058] (4) Sub-major refers to a sub-major under a major. The actual coding is to select the major and a sub-major under the current major. As shown in Table 2, the major of hydraulic engineering is divided into sub-majors such as construction, dam engineering, water diversion, plant, and construction; the major of electromechanical engineering is divided into sub-majors such as metal structure, hydraulic machinery, electrical engineering 1, electrical engineering 2, water supply and drainage, HVAC, and observation; the major of surveying is divided into sub-majors such as surveying and mapping, geology, etc.
[0059] (5) System disassembly reference Figure 3 A system generally refers to a collection of equipment or a set of functional models in a construction project. It is at the first level and contains several subsystems. A subsystem refers to a collection of sub-equipment or a set of sub-functional models within a system or a higher-level subsystem and can be nested.
[0060] The system has set fixed code segments, see Table 3. In actual construction projects, there are often multiple systems, which are distinguished by adding serial numbers to dynamic code segments. For example, the code segment of the turbine group is X, the code segment of turbine group No. 1 is X1, and the code segment of turbine group No. 2 is X2.
[0061] Subsystem code section reference Figure 3 The shown plan can be at the second, third, fourth, or fifth level. Subsystems at the same level automatically default to serial numbers 01, 02, etc. as fixed code segments. Fixed code segments of other formats can also be set.
[0062] (6) The last serial number indicates that there are one or more models under the final subsystem, which are distinguished by the serial number and are dynamic code segments.
[0063] In addition, a connection symbol needs to be specified between code segments, which can be empty, space, dot, minus sign, etc. In this embodiment, dot is selected.
[0064] Furthermore, the actual component equipment coding requires the assembly of various code segments, and the system to the final subsystem also needs to be assembled. For example, the current stage is the feasibility study stage, and the second roller of the guide device of the third hydro-generator of the electromechanical and water-powered specialty is coded. Figure 3 It can be seen that the decomposition and classification of the hydro-generator to the guide device roller is hydro-generator, tailwater gate system, emergency gate (plane gate), guide device and roller, and their code segments are X3, 01, 01, 05, 01 respectively, and their system code is X3.01.01.05.01. Figure 2 According to the coding structure and Table 1, Table 2, and Table 3, the complete coding is ABC.K.JD.JJ.X3.01.01.05.01.02.
[0065] The purpose of summarizing the coding directory tree in step S2 is to systematically organize and manage the coding information of all systems and subsystems involved in the project. Among them, step S1 is to determine the coding rules. This step is to fill in all the system and subsystem code segments in the project in a hierarchical manner according to the coding rules to construct the coding directory tree, which mainly includes:
[0066] S201: System classification, list all the systems and subsystems under it according to major and minor specialties to form a coding directory tree framework, such as Figure 3 In this embodiment, the system classification is determined to be 5 levels, which may be changed according to the requirements of the fineness of the division of the project.
[0067] S202: Automatically fill in the system fixed code segment: By reading the pre-configured system fixed code segment configuration file, which is Table 3 in this embodiment, the top-level system part in the encoding directory tree frame is automatically filled in with the corresponding code segment.
[0068] S203: Automatically generate subsystem code segments: Design a serial numbering rule for the subsystem code segments to ensure that each subsystem configuration has a unique identifier. For example, a numerical serial number such as "01" or "02" can be used to automatically generate subsystem code segments based on the serial numbering rule. It should be noted that other characters can also be used as unique identifiers based on project requirements.
[0069] S204: Fill in all major disciplines, minor disciplines, systems and subsystems within the project in a hierarchical manner.
[0070] S205: Store the coded directory tree data. The storage method can be local storage in Excel, WPS, ACCESS, SQLite and other formats, which is suitable for scenarios with high requirements for data security and offline access; it can also be stored in the cloud data mode to facilitate real-time access and collaborative work of team members, which is suitable for distributed teams and projects that require frequent updates.
[0071] S206: Verify the data of the coding directory tree: After constructing the coding directory tree data, all branches and leaves of the coding directory tree should have unique codes. Based on the preset uniqueness constraint criteria, check whether the codes of all branches and leaves in the coding directory tree meet the uniqueness. If not, an error message will be given to modify the coding directory tree data at the corresponding position until the coding data of all branches and leaves meet the uniqueness.
[0072] In step S3, the mapping rule between the branches and leaves of the coding directory and the BIM model is established by associating each branch and leaf node in the coding directory tree with the information of a specific element in the BIM model to ensure the accuracy and consistency of the coding.
[0073] The branches and leaves of the code directory tree represent the various levels of systems and subsystems in the code directory tree. Mapping rules are set for each level of system and subsystem to enable the corresponding system-level or subsystem-level component or equipment BIM model to be found. Mapping rules can be set by selecting or combining, including but not limited to, the BIM model's color, material, line type, line weight, layer, attribute class name, attribute field value, etc. The BIM model's attribute information is automatically obtained based on the BIM software platform.
[0074] For example, if you set "Attribute Class Name = Pipe; Material = Metal," all metal pipes matching this setting will be found; if you set "Attribute Class Name = Window; Material ≠ Metal," all non-metal windows matching this setting will be found; and if you set "Attribute Class Name = Door; Door Width ≥ 1200; Door Height < 2000," all doors matching this size will be found. Attribute Classes and Attribute Fields represent the model's own attribute information, including but not limited to Xdata, EC, DG, XA, and Tag attribute types.
[0075] Step S4: Use the file interface module of the OpenPlantModeler platform software to load the target BIM file to be processed in the engineering project. The target BIM file is an IFC format file that complies with the ISO 19650 standard, or a PDMS format file that is natively supported by the platform; and import the aforementioned coding directory tree. The data storage format of the coding directory tree includes but is not limited to: Excel, WPS, ACCESS, sqlite and other formats.
[0076] Before reading the coded directory tree data, you need to determine the number of system levels and identify the data header to match it with the BIM model to avoid reading errors. The read coded directory tree data is stored as a runtime cache in the current BIM file. Storage methods include but are not limited to Xdata, EC, DG, XA, Tags, etc.
[0077] The BIM model in the engineering project generally establishes multiple BIM files by discipline and location. This embodiment is set to the feasibility study stage, and the water conservancy specialty in the electromechanical specialty corresponding to the BIM file is selected. The coding directory tree only displays the directory corresponding to the water conservancy specialty.
[0078] In step S5, all BIM models in the current BIM file are automatically encoded according to the encoding directory tree data.
[0079] Obtain the attribute information of all BIM models in the current BIM file to form a set C. Each branch and leaf in the coding directory tree stores the corresponding mapping rule data, which can be matched with the set C to achieve mapping and obtain the corresponding system-level, subsystem-level component and equipment BIM models.
[0080] S501: When processing a system-level BIM model, the corresponding system is encoded or expanded according to the preset encoding rules. The assembled codes form a complete system-level code, which is then automatically mounted on the system-level BIM model. For example, when it is detected that the current system contains one or more hydro-generator BIM models, the system-level code segment prefix is extracted from the encoding directory tree cache, and the subsystem code segments are generated according to the preset code segment expansion rules; for example, the system is automatically expanded and modified in the encoding directory tree cache according to code segments X1, X2, ..., Xn. Through the above operations, an association relationship is established between the BIM model and the current system, that is, each system has a corresponding BIM model and associated code.
[0081] S502: Enumerate all subsystems in the current system and obtain the corresponding BIM model set C1 through preset mapping rules; perform spatial envelope retrieval on each BIM model in set C1, extract the three-dimensional geometric boundary coordinate set (xmin, ymin, zmin, xmax, ymax, zmax) of its spatial envelope, and configure the system-level BIM model with spatial envelope data to identify its physical space range. Specifically, the spatial envelope data identifies the physical space range of the current system through the three-dimensional geometric boundary coordinate set (Xmin, Ymin, Zmin, Xmax, Ymax, Zmax); if the spatial envelope coordinate set of any BIM model is completely contained within the spatial envelope coordinate set of the current system-level BIM model, then the BIM model is determined to belong to the current subsystem;
[0082] according to Figure 2 The coding rules are used to assemble a complete subsystem-level code, which is automatically mounted on the BIM model and establishes an association with the current subsystem.
[0083] At this point, the rapid and automated coding of a specific professional BIM file is completed. The coding rules within the same project are automatically inherited, and steps S1-S5 are continued for each BIM file of each profession, thereby quickly completing the model coding work of the entire engineering project.
[0084] Step S6: Based on the event monitoring mechanism of the BIM platform, the change information is captured in real time, and the update operation corresponding to the model code after the change occurs is processed. In this embodiment, the change processing has the following situations:
[0085] (1) If the BIM model is increased, decreased, or has property changes, a comparison is performed in step S4, and the corresponding execution system or subsystem is increased or decreased, and the model code is mounted or updated;
[0086] (2) If the coding rules change, including project coding changes and code segment planning changes, the change operation is performed sequentially through steps S1-S5;
[0087] (3) If the mapping rule changes, the change operation is performed sequentially through steps S3-S5.
[0088] Example 2
[0089] See also Figure 4 Embodiment 2 of the present invention provides a device for encoding a BIM model based on a mapping rule, the device comprising:
[0090] The coding rule formulation module is used to determine the hierarchical division of the coding structure and pre-set fixed code segments according to the actual needs of the engineering project to complete the formulation of standardized coding rules; it includes a code segment division unit and a code segment setting unit. The code segment division sub-unit is used to design a hierarchical coding structure according to the hierarchical relationship of the model to divide the code segments. The code segment division includes project, stage, major, detailed, system, and last serial number; the system contains several subsystems; the code segment setting unit is used to determine the fixed coding segments and dynamic coding segments in the coding structure; the fixed coding segments are predefined static values, and the dynamic coding segments are variable values generated according to pre-set rules. Correspondingly, the project, stage, major, and detailed are set as fixed coding segments, the system is a fixed coding segment + dynamic coding segment, and the last serial number is a dynamic coding segment.
[0091] The coding directory tree construction module is used to collect and summarize code segment data for all systems and subsystems involved in the engineering project, and construct a coding directory tree based on hierarchical affiliation. The tree branches and leaf nodes of the coding directory correspond to the systems or subsystems at all levels in the coding directory tree. The specific operations of constructing the coding directory tree are: list all the systems and subsystems under it according to major and minor majors and perform system classification to build a coding directory tree framework; fill in the corresponding code segment for the top-level system part in the coding directory tree framework by reading the preset system fixed code segment configuration file; configure the serial number rule for the subsystem code segment to generate the subsystem code segment, so that each subsystem is configured with a unique identifier; fill in all major majors, minor majors, systems, and subsystems in the engineering project in a hierarchical manner; store the coding directory tree data, and the storage methods include local storage and cloud data storage.
[0092] A mapping rule formulation module is used to establish mapping rules between the tree branches and leaf nodes of the coding directory and the BIM model, and each tree branch and leaf node in the coding directory tree stores corresponding mapping rule data; the mapping rules are based on the color, material, line type, line weight, layer, attribute class name and / or attribute field value of the BIM model, and are selected individually or set in combination;
[0093] A data import module is used to obtain the BIM file of the engineering project and the attribute information corresponding to all BIM models in the file based on the BIM platform software, and import it into the coding directory tree;
[0094] An automatic encoding module is used to obtain the system-level and subsystem-level BIM models in the BIM file based on the mapping rules, and automatically encode all BIM models in the current BIM file according to the encoding directory tree data; it includes a system encoding unit and a subsystem encoding unit; the system encoding unit is used to process the system-level BIM model, expand the corresponding system according to the encoding rules, assemble the code and automatically mount it on the BIM model, and establish an association relationship with the current system; and the system BIM model is configured with spatial envelope data to identify its system scope; the subsystem encoding unit is used to enumerate all subsystems under each system, obtain the BIM model through mapping rules to form a set C1, enumerate the spatial envelopes of the BIM models in the set C1, and if the spatial envelope coordinate set of any BIM model is completely contained in the spatial envelope coordinate set of the current system-level BIM model, then it is determined that the BIM model belongs to the current subsystem; and assemble a complete code according to the encoding rules, automatically mount it on the BIM model, and establish an association relationship with the current subsystem.
[0095] The change processing module is used to obtain change information and execute the subsequent process to perform the corresponding coding update operation based on the node location where the change information occurs. The obtained change information includes changes in coding rules, mapping rules, and additions, deletions, or attribute changes of the BIM model.
[0096] Example 3
[0097] An embodiment of the present invention also provides a non-transitory computer-readable storage medium, which can be set in an electronic device to store a computer program related to a method in the method embodiment. The computer program is loaded and executed by the processor to implement the method provided in the above embodiment 1.
[0098] Example 4
[0099] An embodiment of the present invention further provides an electronic device, comprising: a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method provided in the above-mentioned embodiment 1 when executing the computer program.
[0100] The above embodiments are only intended to help understand the method and core concept of the present invention. It should be noted that, without departing from the principles of the present invention, a number of improvements and modifications may be made to the present invention by those skilled in the art, and such improvements and modifications also fall within the scope of protection of the claims of the present invention.
[0101] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this invention pertains. The terms used herein in the specification of the present invention are for the purpose of describing specific embodiments only and are not intended to limit the present invention. The term "and / or" as used herein includes any and all combinations of one or more of the associated listed items.
[0102] It should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe the steps as sequential processes, many of the steps can be performed in parallel, concurrently, or simultaneously. In addition, the order of the steps can be rearranged. A process can be terminated when its operation is completed, but can also have additional steps not included in the accompanying drawings. A process can correspond to a method, function, procedure, subroutine, subprogram, etc.
Claims
1. A method for encoding a BIM model based on mapping rules, characterized in that: include, According to the actual needs of the project, determine the hierarchical division of the coding structure and pre-set fixed code segments to complete the formulation of standardized coding rules; Collect and summarize code segment data for all systems and subsystems involved in the project, and build a coding directory tree based on coding rules. The tree branches and leaf nodes of the coding directory tree correspond to the systems or subsystems at all levels in the coding directory tree. Establishing mapping rules between the tree branches and leaf nodes of the coding directory and the BIM model, and storing corresponding mapping rule data for each tree branch and leaf node in the coding directory tree; the mapping rules are selected individually or in combination based on the color, material, line type, line weight, layer, attribute class name and / or attribute field value of the BIM model; Obtain the BIM file of the engineering project and the attribute information corresponding to all BIM models in the file based on the BIM platform software, and import them into the coding directory tree; Acquire system-level and subsystem-level BIM models in the BIM file based on the mapping rules, and automatically encode all BIM models in the current BIM file according to the encoding directory tree data; Obtain the change information and use the node where the change information occurs as the starting process node to execute the subsequent process to perform the corresponding code update operation; The above mentioned steps include determining the hierarchical division of the coding structure and presetting fixed code segments according to the actual needs of the engineering project, and completing the formulation of standardized coding rules, According to the hierarchical relationship of the model, a hierarchical coding structure is designed to divide the code segments, including project, stage, major specialty, minor specialty, system, and final serial number; the system includes several subsystems; The code segment data of all systems and subsystems involved in the project are collected and summarized, and a coding directory tree is constructed according to the coding rules, including: List all systems and subsystems according to major and minor disciplines to carry out system classification and build a coding directory tree framework; By reading the preset system fixed code segment configuration file, the corresponding code segment is configured for the system part in the encoding directory tree framework; Design serial number rules for subsystem code segments to generate subsystem code segments so that each subsystem is configured with a unique identifier; Fill in all major disciplines, minor disciplines, systems, and subsystems within the project in a hierarchical manner; Storing the encoded directory tree data, the storage method includes local storage and cloud data storage; The acquiring of the system-level and subsystem-level BIM models in the BIM file based on the mapping rules and automatically encoding all BIM models in the current BIM file according to the encoding directory tree data includes: According to the inclusion relationship between the spatial envelope coordinate set ranges of the system level and the subsystem level, the subordinate relationship between the system level and the subsystem level is determined, and all BIM models in the current BIM file are automatically encoded according to the encoding directory tree data.
2. The method for encoding a BIM model based on mapping rules according to claim 1, characterized in that: The above mentioned steps include determining the hierarchical division of the coding structure and presetting fixed code segments according to the actual needs of the engineering project, and completing the formulation of standardized coding rules, Determine the fixed coding segments and dynamic coding segments in the coding structure; the fixed coding segments are predefined static values, and the dynamic coding segments are variable values generated according to preset rules. Correspondingly, the projects, stages, majors and minors are set as fixed coding segments, the system is a fixed coding segment + dynamic coding segment, and the last serial number is a dynamic coding segment.
3. The method for encoding a BIM model based on mapping rules according to claim 2, characterized in that: The coding rules also include assembling the various code segments to form the BIM model code, where the assembly is to place preset connection symbols between the code segments, and the connection symbols include space, space, dot and / or minus sign.
4. The method for encoding a BIM model based on mapping rules according to claim 3, characterized in that: It also includes a coding field for each node in the coding directory tree, and checks whether there are duplications in the coding values of all branch and leaf nodes based on a preset uniqueness constraint criterion; if there are duplications, an error message is given to modify the coding directory tree data at the corresponding position until the coding data of all branch and leaf nodes meets the uniqueness.
5. The method for encoding a BIM model based on mapping rules according to claim 1, wherein: The obtaining of the system-level and subsystem-level BIM models in the BIM file based on the mapping rules and automatically encoding all BIM models in the current BIM file according to the encoding directory tree data includes: When processing the system-level BIM model, the corresponding system is expanded according to the preset coding rules, and the assembled code forms a complete system-level code, which is then automatically mounted on the system-level BIM model to establish an association relationship between the BIM model code and the current system; All subsystems in the current system are enumerated, and the corresponding BIM model set C1 is obtained through preset mapping rules; a spatial envelope retrieval is performed on each BIM model in the set C1, and the three-dimensional geometric boundary coordinate set of its spatial envelope is extracted, and the system-level BIM model configures spatial envelope data to identify its physical space range; if the spatial envelope coordinate set of any BIM model is completely contained in the spatial envelope coordinate set range of the current system-level BIM model, then the BIM model is determined to belong to the current subsystem; according to the encoding rules, a complete subsystem-level code is generated based on the hierarchical code of the current subsystem, and the subsystem-level code is automatically mounted on the BIM model to establish an association relationship between the BIM model code and the current subsystem.
6. The method for encoding a BIM model based on mapping rules according to claim 1, characterized in that: The acquired change information includes changes in encoding rules, mapping rules, and additions, reductions, or attribute changes of BIM models.
7. A device for encoding a BIM model based on mapping rules, characterized in that: The device comprises, The coding rule formulation module is used to determine the hierarchical division of the coding structure and pre-set fixed code segments according to the actual needs of the project to complete the formulation of standardized coding rules; The coding directory tree construction module is used to collect and summarize code segment data for all systems and subsystems involved in the project, and to construct a coding directory tree based on hierarchical affiliation. The tree branches and leaf nodes of the coding directory tree correspond to the systems or subsystems at each level in the coding directory tree. A mapping rule formulation module is used to establish mapping rules between the tree branches and leaf nodes of the coding directory and the BIM model, and each tree branch and leaf node in the coding directory tree stores corresponding mapping rule data; the mapping rules are based on the color, material, line type, line weight, layer, attribute class name and / or attribute field value of the BIM model, and are selected individually or set in combination; A data import module is used to obtain the BIM file of the engineering project and the attribute information corresponding to all BIM models in the file based on the BIM platform software, and import it into the coding directory tree; An automatic encoding module is used to obtain the system-level and subsystem-level BIM models in the BIM file based on the mapping rules, and automatically encode all BIM models in the current BIM file according to the encoding directory tree data; The change processing module is used to obtain the change information and execute the subsequent process to perform the corresponding code update operation based on the node position where the change information occurs as the starting process node; The above mentioned steps include determining the hierarchical division of the coding structure and presetting fixed code segments according to the actual needs of the engineering project, and completing the formulation of standardized coding rules, According to the hierarchical relationship of the model, a hierarchical coding structure is designed to divide the code segments, including project, stage, major specialty, minor specialty, system, and final serial number; the system includes several subsystems; The code segment data of all systems and subsystems involved in the project are collected and summarized, and a coding directory tree is constructed according to the coding rules, including: List all systems and subsystems according to major and minor disciplines to carry out system classification and build a coding directory tree framework; By reading the preset system fixed code segment configuration file, the corresponding code segment is configured for the system part in the encoding directory tree framework; Design serial number rules for subsystem code segments to generate subsystem code segments so that each subsystem is configured with a unique identifier; Fill in all major disciplines, minor disciplines, systems, and subsystems within the project in a hierarchical manner; Storing the encoded directory tree data, the storage method includes local storage and cloud data storage; The acquiring of the system-level and subsystem-level BIM models in the BIM file based on the mapping rules and automatically encoding all BIM models in the current BIM file according to the encoding directory tree data includes: According to the inclusion relationship between the spatial envelope coordinate set ranges of the system level and the subsystem level, the subordinate relationship between the system level and the subsystem level is determined, and all BIM models in the current BIM file are automatically encoded according to the encoding directory tree data.
8. A non-transitory computer-readable storage medium, characterized in that The storage medium stores a computer program, which is loaded and executed by a processor to implement the method for encoding a BIM model based on mapping rules as described in any one of claims 1 to 6.
9. An electronic device comprising: A processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method for encoding a BIM model based on mapping rules as described in any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Electric power system three-dimensional model coding mapping method and system and storage medium
CN117876594A
BIM (Building Information Modeling) system-based full-automatic list mapping method and system and readable storage medium
CN115391446A
Structure tree reconstruction method of BIM model
CN115391610A