Dynamic BIM model tree generation and code configuration method, device and equipment
Through dynamic BIM model tree generation and coding configuration methods, the problem of independence of the tunnel model modeling process and the model structure tree is solved, and the correlation between the model tree and the engineering model is realized, ensuring the effective combination of the sub-items of the tunnel project and the construction process.
Patent Information
- Application Number
- CN202411262325.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-10
- Publication Date
- 2024-12-13
- Estimated Expiration
- 2044-09-10
AI Technical Summary
The tunnel model modeling process is independent of the model structure tree, resulting in the failure to effectively combine the model tree and the tunnel project sub-items, construction processes and construction methods.
Through dynamic BIM model tree generation and coding configuration methods, the initial model structure tree of the engineering model is obtained based on the pre-established model structure tree template, and the association relationship between the initial model structure tree and the engineering model modeling process is established, and the model structure tree is updated. , and configure to obtain coding configuration data to establish an association between the model structure tree and the coding configuration data.
The model structure tree of the engineering model is quickly established and the coding configuration data is coded, the correlation between the model tree and the engineering model is improved, and the effective combination of the model tree and the tunnel project is ensured.
Smart Images

Figure CN119129065A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of engineering model technology, and in particular to a method, device, equipment and storage medium for generating and encoding a dynamic BIM model tree. Background Art
[0002] In the related art, the process of building a tunnel model and the process of establishing a model structure tree are often independent of each other, resulting in the failure to effectively combine the model tree with the engineering sub-items, construction procedures, and construction methods of the tunnel. Summary of the invention
[0003] The present application aims to solve one of the technical problems in the related art at least to some extent.
[0004] In the first aspect, the present application proposes a method for generating and encoding a dynamic BIM model tree, the method comprising: obtaining an initial model structure tree corresponding to an engineering model based on a pre-established model structure tree template; establishing an association relationship between the initial model structure tree and a modeling process of the engineering model; based on the association relationship, updating the initial model structure tree during the modeling process of the engineering model to obtain a model structure tree corresponding to the engineering model; configuring and obtaining encoding configuration data corresponding to the engineering model; and establishing an association relationship between the model structure tree and the encoding configuration data.
[0005] In one implementation, based on the association relationship, the initial model structure tree is updated during the modeling process of the engineering model to obtain the model structure tree corresponding to the engineering model, including: obtaining component attribute information of the model component to be modeled in the engineering model; obtaining the initial model structure tree path and initial structure tree node corresponding to the model component in the initial model structure tree; configuring the initial model structure tree and the initial structure tree node based on the component attribute information to obtain the actual structure tree path and actual structure tree node corresponding to the model component; updating the initial model structure tree based on the actual structure tree path and the actual structure tree node to obtain the model structure tree.
[0006] In an optional implementation, the updating of the initial model structure tree based on the actual structure tree path and the actual structure tree node to obtain the model structure tree includes: determining that modeling is completed, obtaining attribute instance information of the attribute instance in the model file corresponding to the engineering model; obtaining the target actual structure tree path existing in the attribute instance information in the actual structure tree path; obtaining the target actual structure tree node corresponding to the target actual structure tree path in the actual structure tree node; and obtaining the model structure tree based on the target actual structure tree path and the target actual structure tree node.
[0007] In one implementation, the configuration obtains the coding configuration data corresponding to the engineering model, including: based on a preset coding configuration, configuring to obtain initial coding configuration information corresponding to each model component in the engineering model; determining a mapping relationship between a first coding rule corresponding to each model component in the engineering model and a second coding rule for the coding to be undertaken; based on the mapping relationship and the coding to be undertaken, the initial coding configuration information is updated to obtain the coding configuration data corresponding to each of the model components.
[0008] In one implementation, the method further includes: in response to updating the model of the engineering model, obtaining a first partial model and a second partial model based on a model update range; wherein the first partial model is a model within the model update range, and the second partial model is a model outside the model update range and adjacent to a boundary of the model update range; obtaining a target model structure tree node corresponding to the first partial model in the model structure tree; obtaining first partial model structure tree information corresponding to the model update range in the model structure tree; obtaining updated model information corresponding to the updated model within the model update range; and updating the first partial model structure tree information based on the updated model information.
[0009] In an optional implementation, the obtaining of updated model information corresponding to the updated model within the model update range includes: obtaining first structure tree configuration information corresponding to the first partial model based on the model structure tree; obtaining a first structure tree node in the first structure tree path; obtaining a node level of the first structure tree node based on the first structure tree configuration information; and updating the first structure tree node based on the updated model attribute information and the node level to update the first structure tree path.
[0010] In one implementation, the method further includes: in response to model splitting of the engineering model, obtaining a third part model and a fourth part model based on a model splitting range; wherein the third part model is a model within the model splitting range, and the fourth part model is a model outside the model splitting range and adjacent to a boundary of the model splitting range; obtaining a third structure tree path corresponding to the third part model and a fourth structure tree node corresponding to the fourth part model in the model structure tree; updating the fourth structure tree node based on the model splitting range; obtaining split model attribute information corresponding to the split model; generating a split model structure tree node based on the split model attribute information; adding the split model structure tree node to the third structure tree path to obtain a fourth structure tree path; and updating the model structure tree based on the fourth structure tree path.
[0011] In the second aspect, the present application proposes a dynamic BIM model tree generation and coding configuration device, which includes: a first processing module, used to obtain an initial model structure tree corresponding to the engineering model based on a pre-established model structure tree template; a second processing module, used to establish an association relationship between the initial model structure tree and the modeling process of the engineering model; a third processing module, used to update the initial model structure tree during the modeling process of the engineering model based on the association relationship, and obtain the model structure tree corresponding to the engineering model; a coding configuration module, used to configure and obtain the coding configuration data corresponding to the engineering model; a fourth processing module, used to establish an association relationship between the model structure tree and the coding configuration data.
[0012] In one implementation, the second processing module can be used to: obtain component attribute information of the model component to be modeled in the engineering model; obtain the initial model structure tree path and initial structure tree node corresponding to the model component in the initial model structure tree; configure the initial model structure tree and the initial structure tree node based on the component attribute information to obtain the actual structure tree path and actual structure tree node corresponding to the model component; update the initial model structure tree based on the actual structure tree path and the actual structure tree node to obtain the model structure tree.
[0013] In one implementation, the third processing module can be used to: determine that modeling is completed, obtain the attribute instance information of the attribute instance in the model file corresponding to the engineering model; obtain the target actual structure tree path existing in the attribute instance information in the actual structure tree path; obtain the target actual structure tree node corresponding to the target actual structure tree path in the actual structure tree node; obtain the model structure tree based on the target actual structure tree path and the target actual structure tree node.
[0014] In one implementation, the coding configuration module can be used to: configure and obtain initial coding configuration information corresponding to each model component in the engineering model based on a preset coding configuration; determine the mapping relationship between a first coding rule corresponding to each model component in the engineering model and a second coding rule for the coding to be undertaken; update the initial coding configuration information based on the mapping relationship and the coding to be undertaken, and obtain the coding configuration data corresponding to each of the model components.
[0015] In one implementation, the device also includes a fifth processing module, which is used to respond to a model update of the engineering model and obtain a first partial model and a second partial model based on a model update range; wherein the first partial model is a model within the model update range, and the second partial model is a model outside the model update range and adjacent to the boundary of the model update range; obtain a target model structure tree node corresponding to the first partial model in the model structure tree; obtain the first partial model structure tree information corresponding to the model update range in the model structure tree; obtain updated model information corresponding to the updated model within the model update range; and update the first partial model structure tree information based on the updated model information.
[0016] In an optional implementation, the fifth processing module can be used to: obtain the first structure tree configuration information corresponding to the first partial model based on the model structure tree; obtain the first structure tree node in the first structure tree path; obtain the node level of the first structure tree node based on the first structure tree configuration information; update the first structure tree node based on the updated model attribute information and the node level to update the first structure tree path.
[0017] In one implementation, the device also includes a sixth processing module, which is used to respond to model splitting of the engineering model and obtain a third part model and a fourth part model based on the model splitting range; wherein the third part model is a model within the model splitting range, and the fourth part model is a model outside the model splitting range and adjacent to the boundary of the model splitting range; obtain a third structure tree path corresponding to the third part model and a fourth structure tree node corresponding to the fourth part model in the model structure tree; update the fourth structure tree node based on the model splitting range; obtain split model attribute information corresponding to the split model; generate a split model structure tree node based on the split model attribute information; add the split model structure tree node to the third structure tree path to obtain a fourth structure tree path; and update the model structure tree based on the fourth structure tree path.
[0018] In a third aspect, the present application proposes an electronic device comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the dynamic BIM model tree generation and encoding configuration method as described in the first aspect.
[0019] In a fourth aspect, the present application proposes a computer-readable storage medium for storing instructions, which, when executed, enables the method described in the first aspect to be implemented.
[0020] In a fifth aspect, the present application proposes a computer program product, including a computer program, which, when executed by a processor, implements the steps of the dynamic BIM model tree generation and coding configuration method as described in the first aspect.
[0021] The dynamic BIM model tree generation and coding configuration method, device, equipment and storage medium provided by the present application can obtain the initial model structure tree corresponding to the engineering model based on the pre-established model structure tree template, and establish the association relationship between the initial model structure tree and the engineering model modeling process, so as to update the initial model structure tree in the modeling process of the engineering model based on the above association relationship, obtain the model structure tree corresponding to the engineering model, and obtain the coding configuration data corresponding to the engineering model, so as to establish the association relationship between the model structure tree and the coding configuration data. It is possible to quickly establish the model structure tree corresponding to the engineering model, and establish the association relationship between the model structure tree and the coding configuration data.
[0022] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0024] Figure 1 It is a flowchart of a method for generating and encoding a dynamic BIM model tree provided in an embodiment of the present application;
[0025] Figure 2 It is a flowchart of another method for generating and encoding a dynamic BIM model tree provided in an embodiment of the present application;
[0026] Figure 3 It is a flowchart of another method for generating and encoding a dynamic BIM model tree provided in an embodiment of the present application;
[0027] Figure 4 It is a structural schematic diagram of a dynamic BIM model tree generation and coding configuration device provided in an embodiment of the present application;
[0028] Figure 5 It is a structural schematic diagram of another dynamic BIM model tree generation and coding configuration device provided in an embodiment of the present application;
[0029] Figure 6 It is a structural schematic diagram of another dynamic BIM model tree generation and coding configuration device provided in an embodiment of the present application;
[0030] Figure 7 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0031] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.
[0032] The following describes a dynamic BIM (Building Information Modeling) model tree generation and encoding configuration method and device according to an embodiment of the present application with reference to the accompanying drawings.
[0033] Figure 1 Schematic diagram of a flow chart of a method for generating and encoding a dynamic BIM model tree provided in an embodiment of the present application. Figure 1 As shown, the method may include but is not limited to the following steps:
[0034] Step S101: Based on a pre-established model structure tree template, an initial model structure tree corresponding to the engineering model is obtained.
[0035] It should be noted that the above-mentioned model structure tree template includes model component structure tree templates corresponding to different types of model components.
[0036] Exemplarily, the model structure tree is filtered based on the model components included in the engineering model to obtain a target model component structure tree template corresponding to the model components included in the engineering model, thereby obtaining an initial model structure tree corresponding to the engineering model based on the target model structure tree template.
[0037] Step S102: establishing an association relationship between the initial model structure tree and the modeling process of the engineering model.
[0038] Exemplarily, the initial information (e.g., node major type, node minor type, node main name, corresponding modeling process) of the structure tree path and structure tree node corresponding to each model component in the initial model structure tree is configured to establish an association relationship between the model structure tree template and the modeling process of the engineering model. The target model component structure tree template includes a structure tree template path and a structure tree template node.
[0039] Step S103: Based on the association relationship, during the modeling process of the engineering model, the initial model structure tree is updated to obtain a model structure tree corresponding to the engineering model.
[0040] Exemplarily, during the modeling process of the engineering model, the relevant information in the initial model structure tree is updated based on the generated relevant information of the model components to obtain a model structure tree corresponding to the engineering model.
[0041] Step S104: configure and obtain the coding configuration data corresponding to the engineering model.
[0042] Exemplarily, the configuration obtains the corresponding model code and component attributes of each model component in the engineering model.
[0043] Step S105: Establishing an association relationship between the model structure tree and the coding configuration data.
[0044] By implementing the embodiment of the present application, the initial model structure tree corresponding to the engineering model can be obtained based on the pre-established model structure tree template, and the association relationship between the initial model structure tree and the engineering model modeling process can be established, so that the initial model structure tree is updated in the engineering modeling process based on the above association relationship, the model structure tree corresponding to the engineering model is obtained, and the coding configuration data corresponding to the engineering model is obtained, so as to establish the association relationship between the model structure tree and the coding configuration data. The model structure tree corresponding to the engineering model can be quickly established, and the association relationship between the model structure tree and the coding configuration data can be established.
[0045] In one implementation, a pre-established model structure tree template can be configured to obtain an initial model structure tree corresponding to the engineering model. Figure 2 , Figure 2 FIG. 1 is a flow chart of another method for generating and encoding a dynamic BIM model tree provided in an embodiment of the present application. Figure 2 As shown, the method may include but is not limited to the following steps:
[0046] Step S201: Based on a pre-established model structure tree template, an initial model structure tree corresponding to the engineering model is obtained.
[0047] In the embodiments of the present application, step S201 can be implemented by any of the methods in the embodiments of the present application, and the embodiments of the present application do not limit this and will not be described in detail.
[0048] Step S202: establishing an association relationship between the initial model structure tree and the modeling process of the engineering model.
[0049] In the embodiments of the present application, step S202 can be implemented by any of the methods in the embodiments of the present application, and the embodiments of the present application do not limit this and will not be described in detail.
[0050] Step S203: Obtain component attribute information of the model component to be modeled in the engineering model.
[0051] The component attribute information may include but is not limited to the route name and lining type corresponding to the model component.
[0052] Step S204: obtaining the initial model structure tree path and the initial structure tree node corresponding to the model component in the initial model structure tree.
[0053] Exemplarily, the initial model structure tree path and the initial structure tree node corresponding to the model component to be modeled are obtained by filtering from the model component structure tree configuration data.
[0054] It can be understood that the model structure tree path includes at least one structure tree node and the association relationship between the structure tree nodes.
[0055] Step S205: configuring the initial model structure tree path and initial structure tree nodes based on the component attribute information to obtain the actual structure tree path and actual structure tree nodes corresponding to the model component.
[0056] Exemplarily, based on the component attribute information, each initial structure tree node in the initial model structure tree path is configured in turn (eg, renamed or sub-nodes are added) to obtain the actual structure tree path and actual structure tree node corresponding to the model component.
[0057] As an example, when the node main body name of the initial structure tree node is "route", the node name is changed to the current route name.
[0058] As an example, when the node main body name of the initial structure tree node is four words "lining type", the sub-node main body name of the node is set to the current lining type name.
[0059] As an example, when the node type of the initial structure tree node is a sorting node, it is determined whether the node has a corresponding modeling process; if the modeling process exists, the node name is changed and a sub-node name is generated. For example, a corresponding suffix can be added to the node main name or the sub-node name as the changed node name.
[0060] As an example, when the node type of the initial structure tree node is a fixed node with the same name, the node name is not changed.
[0061] As an example, when the node type of the initial structure tree node is a fixed node, the node name is changed to the node body name.
[0062] In an optional implementation, the above-mentioned updating of the initial model structure tree based on the actual structure tree path and the actual structure tree node to obtain the model structure tree includes: determining that the modeling is completed, obtaining the attribute instance information of the attribute instance in the model file corresponding to the engineering model; obtaining the target actual structure tree path existing in the attribute instance information in the actual structure tree path; obtaining the target actual structure tree node corresponding to the target actual structure tree path in the actual structure tree node; and obtaining the model structure tree based on the target actual structure tree path and the target actual structure tree node.
[0063] Exemplarily, all attribute instances in the model file corresponding to the engineering model are obtained; the attribute instance information of all the obtained attribute instances is traversed, and corresponding processing is performed based on the information contained in the attribute instance information.
[0064] As an example, if the "actual path of the structure tree" attribute read from the attribute instance information is empty, the traversal continues to the next attribute instance.
[0065] As an example, the model element ID is read from the attribute instance information, and it is determined whether the model element exists. If the model element does not exist, the attribute instance is deleted, and the traversal continues to the next attribute instance.
[0066] As an example, the corresponding target actual model structure tree path is stored in the structure tree actual path data set according to the "structure tree actual path" attribute read from the attribute instance information, so as to generate a model structure tree based on the target actual model structure tree path and the corresponding target model structure tree node.
[0067] Step S206: Update the initial model structure tree based on the actual structure tree path and the actual structure tree nodes to obtain the model structure tree.
[0068] Exemplarily, the model tree is obtained by replacing the corresponding initial tree path and initial tree node in the initial model tree based on the actual tree path and the actual tree node.
[0069] Step S207: configure and obtain the coding configuration data corresponding to the engineering model.
[0070] In the embodiments of the present application, step S207 can be implemented by any of the methods in the embodiments of the present application, and the embodiments of the present application do not limit this and will not be described in detail.
[0071] Step S208: Establishing an association relationship between the model structure tree and the coding configuration data.
[0072] In the embodiments of the present application, step S208 can be implemented by any of the methods in the embodiments of the present application, and the embodiments of the present application do not limit this and will not be described in detail.
[0073] By implementing the embodiment of the present application, the initial structure tree path in the structure tree template corresponding to the model component can be updated based on the component attribute information of the model component in the engineering model, so as to quickly obtain the initial model structure tree matching the engineering model, so as to quickly establish the model structure tree corresponding to the engineering model.
[0074] In one implementation, the coded data to be received can be converted to obtain the coded data corresponding to the engineering model. Figure 3 , Figure 3 FIG. 1 is a flow chart of another method for generating and encoding a dynamic BIM model tree provided in an embodiment of the present application. Figure 3 As shown, the method may include but is not limited to the following steps:
[0075] Step S301: Based on a pre-established model structure tree template, an initial model structure tree corresponding to the engineering model is obtained.
[0076] In the embodiments of the present application, step S301 can be implemented in any of the embodiments of the present application, and the embodiments of the present application do not limit this and will not be described in detail.
[0077] Step S302: establishing an association relationship between the initial model structure tree and the modeling process of the engineering model.
[0078] In the embodiments of the present application, step S302 can be implemented by any of the methods in the embodiments of the present application, and the embodiments of the present application do not limit this and will not be described in detail.
[0079] Step S303: Based on the association relationship, the initial model structure tree is updated during the modeling process of the engineering model to obtain the model structure tree corresponding to the engineering model.
[0080] In the embodiments of the present application, step S303 can be implemented by any of the methods in the embodiments of the present application, and the embodiments of the present application do not limit this and will not be described in detail.
[0081] Step S304: Based on the preset coding configuration, the initial coding configuration information corresponding to each model component in the engineering model is obtained.
[0082] Exemplarily, corresponding information is read from a preset coding configuration file to obtain coding configuration information of the model component included in the engineering model, wherein the coding configuration information may include but is not limited to: model component name, EBS code, and IFD code.
[0083] Step S305: Determine a mapping relationship between a first coding rule corresponding to each model component in the engineering model and a second coding rule to be coded.
[0084] Exemplarily, the correspondence between the numeric part and the sorting part in the encoding string corresponding to the first encoding rule and the encoding string corresponding to the second encoding rule corresponding to each model component in the engineering model is obtained as the above mapping relationship.
[0085] In other embodiments of the present application, if the unmapped relationship cannot be determined, all sorted parts in the code to be taken over can be merged and appended to the end of the new code after conversion.
[0086] Step S306: Update the initial coding configuration information based on the mapping relationship and the code to be taken over, and obtain the coding configuration data corresponding to each model component.
[0087] As an example, according to the mapping relationship in the aforementioned steps, the digital part in the initial coding configuration information corresponding to each model component is replaced.
[0088] As an example, according to the mapping relationship in the aforementioned steps, the sorting part in the initial encoding configuration information corresponding to each model component is replaced.
[0089] Step S307: Establishing an association relationship between the model structure tree and the encoding configuration data.
[0090] In the embodiments of the present application, step S307 can be implemented by any of the methods in the embodiments of the present application, and the embodiments of the present application do not limit this and will not be described in detail.
[0091] By implementing the embodiments of the present application, the engineering code to be undertaken can be converted to obtain the coding configuration data corresponding to the engineering model, thereby maintaining the consistency of the coding formats of different models, which is convenient for the subsequent application of the engineering model.
[0092] In some embodiments, the above method may further include the following steps:
[0093] A1: In response to updating the engineering model, a first partial model and a second partial model are acquired based on a model update range.
[0094] The first part of the models are models within the model update range, and the second part of the models are models outside the model update range and adjacent to the boundary of the model update range.
[0095] Exemplarily, in response to updating the completed engineering model, a model update range of the model update is determined, a portion of the model in the engineering model that is within the model update range is used as the first partial model, and a portion of the model in the engineering model that is at the boundary of the model update range is used as the second partial model.
[0096] A2: Obtain a first structure tree path corresponding to the first part of the model and a second structure tree path corresponding to the second part of the model in the model structure tree.
[0097] A3: Get the updated model attribute information corresponding to the updated model within the model update range.
[0098] A4: Based on the updated model attribute information, the first structure tree path is updated.
[0099] Exemplarily, a new model structure tree path corresponding to the updated model is generated based on the updated model attribute information, and the first structure tree path in the model structure tree is replaced with the new model structure tree path.
[0100] In an optional implementation, based on updating the model attribute information, the first structure tree path is updated, including: based on the model structure tree, obtaining the first structure tree configuration information corresponding to the first part model; obtaining the first structure tree node in the first structure tree path; based on the first structure tree configuration information, obtaining the node level of the first structure tree node; based on the updated model attribute information and the node level, updating the first structure tree node to update the first structure tree path.
[0101] Exemplarily, the model structure tree configuration information and the first structure tree path corresponding to the first part model in the model structure tree are read; all the sorting nodes are searched from the model structure tree configuration information, and the corresponding node levels are obtained; according to the obtained node levels, the corresponding sorting nodes are obtained in the first structure tree path; for each sorting node obtained, the suffix information in the node text is read to determine whether it is the model range information (for example, mileage information); if it is the model range information, the corresponding information in the node text is updated according to the model range information of the updated model; after completing the update of all the sorting nodes, a new model structure tree path is formed.
[0102] In some embodiments, the above method may further include the following steps:
[0103] B1: In response to splitting the engineering model, a third partial model and a fourth partial model are acquired based on a model splitting range.
[0104] Among them, the third part of the models are models within the model splitting range, and the fourth part of the models are models outside the model splitting range and close to the boundary of the model splitting range.
[0105] Exemplarily, in response to splitting a partial model in the engineering model, a third partial model within the model splitting range and a fourth partial model outside the model splitting range and adjacent to a boundary of the model splitting range are obtained.
[0106] B2: Obtain the third structure tree path corresponding to the third part of the model and the fourth structure tree node corresponding to the fourth part of the model in the model structure tree.
[0107] Exemplarily, a third structure tree path corresponding to the third partial model and a fourth structure tree node corresponding to the fourth partial model are obtained from the model structure tree of the engineering model.
[0108] B3: Update the fourth structure tree node based on the model splitting range.
[0109] Exemplarily, the node information of the fourth structure tree node is updated according to the mileage information corresponding to the model splitting range.
[0110] B4: Obtain the split model attribute information corresponding to the split model.
[0111] Exemplarily, the split model attribute information corresponding to the split model obtained after splitting the third part model is obtained.
[0112] B5: Generate split model structure tree nodes based on split model attribute information.
[0113] Among them, in the embodiments of the present application, the specific implementation method of generating the split model structure tree nodes based on the split model attribute information can be implemented by any method in the various embodiments of the present application. The embodiments of the present application do not limit this and will not be repeated.
[0114] B6: Add the split model structure tree node to the third structure tree path to obtain the fourth structure tree path.
[0115] Exemplarily, the split model structure tree node is added under the leaf node in the third structure tree path to obtain a fourth structure tree path.
[0116] B7: Update the model structure tree based on the fourth structure tree path.
[0117] Exemplarily, the third structure tree path in the model structure tree is replaced with the fourth structure tree path.
[0118] See also Figure 4 , Figure 4 Schematic diagram of a dynamic BIM model tree generation and coding configuration device provided in an embodiment of the present application. Figure 4As shown, the device 400 includes: a first processing module 401, used to obtain an initial model structure tree corresponding to the engineering model based on a pre-established model structure tree template, a second processing module 402, used to establish an association relationship between the initial model structure tree and the modeling process of the engineering model; a third processing module 403, used to update the initial model structure tree during the modeling process of the engineering model based on the association relationship to obtain a model structure tree corresponding to the engineering model; a coding configuration module 404, used to configure and obtain coding configuration data corresponding to the engineering model; and a fourth processing module 405, used to establish an association relationship between the model structure tree and the coding configuration data.
[0119] In one implementation, the third processing module 403 can be used to: obtain component attribute information of the model component to be modeled in the engineering model; obtain the initial model structure tree path and initial structure tree node corresponding to the model component in the initial model structure tree; configure the initial model structure tree and the initial structure tree node based on the component attribute information to obtain the actual structure tree path and actual structure tree node corresponding to the model component; update the initial model structure tree based on the actual structure tree path and actual structure tree node to obtain the model structure tree.
[0120] In an optional implementation, the third processing module 403 can be used to: determine that modeling is completed, obtain the attribute instance information of the attribute instance in the model file corresponding to the engineering model; obtain the target actual structure tree path existing in the attribute instance information in the actual structure tree path; obtain the target actual structure tree node corresponding to the target actual structure tree path in the actual structure tree node; obtain the model structure tree based on the target actual structure tree path and the target actual structure tree node.
[0121] In one implementation, the coding configuration module 404 can be used to: configure and obtain initial coding configuration information corresponding to each model component in the engineering model based on a preset coding configuration; determine the mapping relationship between the first coding rule corresponding to each model component in the engineering model and the second coding rule for the coding to be taken over; update the initial coding configuration information based on the mapping relationship and the coding to be taken over, and obtain the coding configuration data corresponding to each model component.
[0122] In one implementation, the device further includes a fifth processing module. As an example, see Figure 5 , Figure 5 Schematic diagram of another structure of a dynamic BIM model tree generation and coding configuration device provided by an embodiment of the present application. Figure 5As shown, the device 500 also includes a fifth processing module 506, which is used to respond to the model update of the engineering model, obtain the first part of the model and the second part of the model based on the model update range; wherein the first part of the model is the model within the model update range, and the second part of the model is the model outside the model update range and adjacent to the model update range boundary; obtain the target model structure tree node corresponding to the first part of the model in the model structure tree; obtain the first part of the model structure tree information corresponding to the model update range in the model structure tree; obtain the updated model information corresponding to the updated model within the model update range; update the first part of the model structure tree information based on the updated model information. Wherein, Figure 5 Modules 501 to 505 in Figure 5 Modules 401 to 405 in the embodiment have the same structure or function.
[0123] In an optional implementation, the fifth processing module 506 can be used to: obtain the first structure tree configuration information corresponding to the first part model based on the model structure tree; obtain the first structure tree node in the first structure tree path; obtain the node level of the first structure tree node based on the first structure tree configuration information; update the first structure tree node based on the updated model attribute information and the node level to update the first structure tree path.
[0124] In one implementation, the apparatus further includes a sixth processing module. As an example, see Figure 6 , Figure 6 Schematic diagram of another structure of a dynamic BIM model tree generation and coding configuration device provided by an embodiment of the present application. Figure 6 As shown, the device 600 also includes a sixth processing module 606, which is used to respond to model splitting of the engineering model, and obtain a third part model and a fourth part model based on the model splitting range; wherein the third part model is a model within the model splitting range, and the fourth part model is a model outside the model splitting range and adjacent to the model splitting range boundary; obtain a third structure tree path corresponding to the third part model and a fourth structure tree node corresponding to the fourth part model in the model structure tree; update the fourth structure tree node based on the model splitting range; obtain split model attribute information corresponding to the split model; generate a split model structure tree node based on the split model attribute information; add the split model structure tree node to the third structure tree path to obtain the fourth structure tree path; and update the model structure tree based on the fourth structure tree path. Wherein, Figure 6 Modules 601 to 605 in Figure 4 Modules 401 to 405 in the embodiment have the same structure or function.
[0125] It should be noted that the aforementioned explanation of the embodiment of the dynamic BIM model tree generation and coding configuration method is also applicable to the dynamic BIM model tree generation and coding configuration device of this embodiment, and will not be repeated here.
[0126] In order to implement the above embodiment, the present application also proposes an electronic device. Figure 7 , Figure 7 Schematic diagram of the structure of the electronic device provided in the embodiment of the present application. Figure 7 As shown, the electronic device 700 includes: a processor 701, and a memory 702 communicatively connected to the processor 701; the memory 702 stores computer-executable instructions; the processor 701 executes the computer-executable instructions stored in the memory to implement the method provided in the aforementioned embodiment.
[0127] In order to implement the above embodiments, the present application also proposes a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the methods provided by the above embodiments.
[0128] In order to implement the above embodiments, the present application also proposes a computer program product, including a computer program, which implements the methods provided by the above embodiments when executed by a processor.
[0129] In the description of this application, unless otherwise specified, “ / ” means or, for example, A / B can mean A or B; “and / or” in this article is merely a way to describe the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0130] In the description of the aforementioned embodiments, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0131] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0132] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0133] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute the instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0134] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0135] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0136] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0137] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A method for generating and encoding a dynamic BIM model tree, characterized in that: include: Based on the pre-established model structure tree template, an initial model structure tree corresponding to the engineering model is obtained; Establishing an association relationship between the initial model structure tree and the modeling process of the engineering model; Based on the association relationship, in the process of modeling the engineering model, the initial model structure tree is updated to obtain a model structure tree corresponding to the engineering model; Configuring and obtaining coding configuration data corresponding to the engineering model; An association relationship between the model structure tree and the encoding configuration data is established.
2. The method according to claim 1, characterized in that The updating of the initial model structure tree during the modeling process of the engineering model based on the association relationship to obtain the model structure tree corresponding to the engineering model includes: Acquiring component attribute information of a model component to be modeled in the engineering model; Obtaining an initial model structure tree path and an initial structure tree node corresponding to the model component in the initial model structure tree; Based on the component attribute information, the initial model structure tree and the initial structure tree nodes are configured to obtain the actual structure tree path and the actual structure tree nodes corresponding to the model component; The initial model structure tree is updated based on the actual structure tree path and the actual structure tree nodes to obtain the model structure tree.
3. The method according to claim 2, characterized in that The updating of the initial model structure tree based on the actual structure tree path and the actual structure tree node to obtain the model structure tree comprises: Determine that modeling is complete, and obtain attribute instance information of the attribute instance in the model file corresponding to the engineering model; Acquire a target actual structure tree path in the actual structure tree path that exists in the attribute instance information; Obtain a target actual structure tree node corresponding to the target actual structure tree path in the actual structure tree node; The model structure tree is acquired based on the target actual structure tree path and the target actual structure tree node.
4. The method according to claim 1, characterized in that The configuration obtains the coding configuration data corresponding to the engineering model, including: Based on a preset coding configuration, configure and obtain initial coding configuration information corresponding to each model component in the engineering model; Determine a mapping relationship between a first coding rule corresponding to each model component in the engineering model and a second coding rule to be coded; The initial coding configuration information is updated based on the mapping relationship and the code to be taken over, and the coding configuration data corresponding to each model component is obtained.
5. The method according to claim 1, characterized in that The method further comprises: In response to updating the engineering model, a first partial model and a second partial model are acquired based on a model update range; wherein the first partial model is a model within the model update range, and the second partial model is a model outside the model update range and adjacent to a boundary of the model update range; Obtaining a target model structure tree node corresponding to the first partial model in the model structure tree; Obtaining a first part of model structure tree information corresponding to the model update range in the model structure tree; Obtain updated model information corresponding to the updated model within the model update range; The first partial model structure tree information is updated based on the updated model information.
6. The method according to claim 5, characterized in that The obtaining of updated model information corresponding to the updated model within the model update range includes: Based on the model structure tree, obtaining first structure tree configuration information corresponding to the first partial model; Obtaining a first structure tree node in the first structure tree path; Acquire a node level of a node of the first structure tree based on the first structure tree configuration information; The first structure tree node is updated based on the updated model attribute information and the node level to update the first structure tree path.
7. The method according to claim 1, characterized in that The method further comprises: In response to model splitting the engineering model, a third partial model and a fourth partial model are acquired based on the model splitting range; wherein the third partial model is a model within the model splitting range, and the fourth partial model is a model outside the model splitting range and adjacent to a boundary of the model splitting range; Obtaining a third structure tree path corresponding to the third partial model and a fourth structure tree node corresponding to the fourth partial model in the model structure tree; Updating the fourth structure tree node based on the model splitting range; Get the split model attribute information corresponding to the split model; Generate a split model structure tree node based on the split model attribute information; Adding the split model structure tree node to the third structure tree path to obtain a fourth structure tree path; The model structure tree is updated based on the fourth structure tree path.
8. A dynamic BIM model tree generation and coding configuration device, characterized in that: include: A first processing module is used to obtain an initial model structure tree corresponding to the engineering model based on a pre-established model structure tree template; A second processing module is used to establish an association relationship between the initial model structure tree and the modeling process of the engineering model; A third processing module is used to update the initial model structure tree based on the association relationship during the modeling process of the engineering model to obtain a model structure tree corresponding to the engineering model; A coding configuration module, used to configure and obtain coding configuration data corresponding to the engineering model; The fourth processing module is used to establish an association relationship between the model structure tree and the encoding configuration data.
9. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the method according to any one of claims 1 to 7.
11. A computer program product, characterized in that The invention comprises a computer program which, when executed by a processor, implements the steps of the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Informatization processing method and device of three-dimensional model based on railway track
CN112184882A
Data model construction method and device and storage medium
CN115186137A
Code generation method and device, electronic equipment and computer readable storage medium
CN117632132A
BIM model management method and device based on WBS, electronic equipment and storage medium
CN118152393A
Data storage method and apparatus, and storage medium and server
WO2022127114A1
