Model generation method, apparatus, device, storage medium, and program product

By generating and merging target component identifiers in the BIM model, the problem of limited component display information in the power grid BIM model is solved, achieving richer display effects and material inventory extraction.

CN116150840BActive Publication Date: 2025-11-18SHENZHEN POWER SUPPLY BUREAU
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211694531.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-28
Publication Date
2025-11-18
Estimated Expiration
2042-12-28

AI Technical Summary

Technical Problem

Existing BIM models in power grid applications present limited component information and have poor display effects.

Method used

By traversing the initial BIM model file of the power grid equipment, the attribute information of the target component is obtained, the target component identifier is generated, and it is added to the target component file to form the target BIM model file, so that the target component and the identifier can be displayed together when displaying the BIM model of the power grid equipment.

Benefits of technology

It enriches the component display information, improves the display effect, and enables the target component identifier to contain the target component's attribute information, thus realizing the extraction of the material list from the BIM model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116150840B_ABST
    Figure CN116150840B_ABST
Patent Text Reader

Abstract

The application relates to a model generation method, device, equipment, storage medium and program product. The method comprises the following steps: traversing an initial BIM model file corresponding to a power grid device to obtain a target component file of at least one target component in the power grid device; generating a target component identifier corresponding to the target component according to attribute information of the target component; adding the target component identifier into the target component file to obtain a target BIM model file, and the target BIM model file is used for merging and displaying the target component and the target component identifier in the case of displaying a BIM model corresponding to the power grid device. The application can enrich component display information and improve display effect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of smart grid technology, and in particular to a model generation method, apparatus, device, storage medium, and program product. Background Technology

[0002] BIM (Building Information Modeling) is a multi-dimensional building model information integration and management technology developed on the basis of computer-aided design and other technologies. It is mostly used in traditional building construction fields such as architecture and engineering. However, with the continuous expansion of the scale of power grid construction in China, BIM technology has also made good progress in power grid applications.

[0003] Taking substations as an example, BIM technology is used to simulate and model the civil engineering and electrical equipment of substations to obtain BIM models, which can be displayed in the form of three-dimensional graphics, making the spatial information clearer and more fully reflecting its true appearance.

[0004] However, the aforementioned BIM models often suffer from problems such as limited component display information and poor display effects. Summary of the Invention

[0005] Therefore, it is necessary to provide a model generation method, apparatus, equipment, storage medium, and program product that can enrich the information displayed by components and improve the display effect in response to the above-mentioned technical problems.

[0006] Firstly, this application provides a model generation method. The method includes: traversing the initial BIM model file corresponding to the power grid equipment to obtain a target component file for at least one target component in the power grid equipment; generating a target component identifier corresponding to the target component based on the attribute information of the target component; adding the target component identifier to the target component file to obtain a target BIM model file, wherein the target BIM model file is used to merge and display the target component and the target component identifier when displaying the BIM model corresponding to the power grid equipment.

[0007] In one embodiment, generating a target component identifier corresponding to the target component based on the attribute information of the target component includes: obtaining the target component name of the target component and generating a component code for the target component; and concatenating the component code, the target component name, and the attribute information to obtain the target component identifier.

[0008] In one embodiment, obtaining the target component name of the target component includes: if a candidate component name for the target component is detected based on the component naming interface, then the candidate component name is compared with the historical component names in the naming database for consistency; if the naming database does not contain candidate component names, then the candidate component name is used as the target component name of the target component.

[0009] In one embodiment, the method further includes: obtaining a file identifier corresponding to the initial BIM model file and searching in the model file database for a historical BIM model file containing the file identifier; generating a target component identifier corresponding to the target component based on the attribute information of the target component, including: if no historical BIM model file exists in the model file database, generating a target component identifier based on the attribute information of the target component.

[0010] In one embodiment, the method further includes: if historical BIM model files exist in the model file database, then based on the historical BIM model files and the initial BIM model files, detecting whether the historical BIM model files include historical component files for the target component; if the historical BIM model files include historical component files, then obtaining the historical component identifier of the target component from the historical component files, and using the historical component identifier as the target component identifier.

[0011] In one embodiment, the method further includes: obtaining the component key value of the target component from the historical component file, wherein the component key value is used to find the business association information corresponding to the target component; and adding the component key value to the target component file.

[0012] Secondly, this application also provides a model generation apparatus. The apparatus includes: a traversal module for traversing the initial BIM model file corresponding to the power grid equipment to obtain a target component file for at least one target component in the power grid equipment; a generation module for generating a target component identifier corresponding to the target component based on the attribute information of the target component; and a merging module for adding the target component identifier to the target component file to obtain a target BIM model file. The target BIM model file is used to merge and display the target component and the target component identifier when displaying the BIM model corresponding to the power grid equipment.

[0013] In one embodiment, the generation module is specifically used to obtain the target component name of the target component and generate a component code for the target component; the component code, the target component name and attribute information are concatenated to obtain the target component identifier.

[0014] In one embodiment, the generation module is further configured to, if a candidate component name for the target component is detected based on the component naming interface, compare the candidate component name with the historical component names in the naming database for consistency; if the naming database does not contain candidate component names, then use the candidate component name as the target component name of the target component.

[0015] In one embodiment, the device further includes: a search module, configured to obtain a file identifier corresponding to the initial BIM model file and search in the model file database for whether a historical BIM model file containing the file identifier exists; and a generation module, specifically configured to generate a target component identifier based on the attribute information of the target component if no historical BIM model file exists in the model file database.

[0016] In one embodiment, the device further includes: a detection module, configured to, if historical BIM model files exist in the model file database, detect whether the historical BIM model files include historical component files for the target component based on the historical BIM model files and the initial BIM model files; if the historical BIM model files include historical component files, obtain the historical component identifier of the target component from the historical component files and use the historical component identifier as the target component identifier.

[0017] In one embodiment, the device further includes: an adding module, which obtains the component key value of the target component from a historical component file, the component key value being used to find the business association information corresponding to the target component; and adds the component key value to the target component file.

[0018] Thirdly, this application also provides a computer device. The computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the steps of the method described in any of the first aspects above.

[0019] Fourthly, this application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, which, when executed by a processor, implements the steps of the method described in any of the first aspects above.

[0020] Fifthly, this application also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, implements the steps of the method described in any of the first aspects above.

[0021] The aforementioned model generation method, apparatus, equipment, storage medium, and program product obtain a target component file for at least one target component in the power grid equipment by traversing the initial BIM model file corresponding to the power grid equipment. Then, a target component identifier is generated based on the attribute information of the target component, and the target component identifier is added to the target component file to obtain the target BIM model file. This target BIM model file is used to merge and display the target component and its identifier when showcasing the BIM model corresponding to the power grid equipment. Thus, by generating the target component identifier based on the attribute information of the target component and adding it to the target component file to obtain the target BIM model file, this application ensures that when displaying the BIM model corresponding to the power grid equipment, not only the target component but also its identifier is displayed. Furthermore, since the target component identifier is generated based on the attribute information of the target component, the displayed target component identifier contains the attribute information of the target component, thereby enriching the component display information and improving the display effect. Attached Figure Description

[0022] Figure 1 This is a diagram illustrating the application environment of the model generation method in one embodiment;

[0023] Figure 2 This is a flowchart illustrating a model generation method in one embodiment;

[0024] Figure 3 This is a structural block diagram of a model generation device in one embodiment;

[0025] Figure 4 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation

[0026] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0027] The model generation method provided in this application embodiment can be applied to, for example, Figure 1In the application environment shown, terminal 102 communicates with server 104 via a network. A data storage system can store the data that server 104 needs to process. The data storage system can be integrated onto server 104 or placed on a cloud or other network server. The terminal receives the uploaded initial BIM model file corresponding to the power grid equipment, then traverses the initial BIM model file to obtain the target component file for at least one target component in the power grid equipment. Based on the attribute information of the target component, it generates a target component identifier corresponding to the target component and adds the target component identifier to the target component file to obtain the target BIM model file. Terminal 102 can be, but is not limited to, various personal computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices can be smart speakers, smart TVs, smart air conditioners, smart vehicle devices, etc. Portable wearable devices can be smartwatches, smart bracelets, head-mounted devices, etc. Server 104 can be implemented using a standalone server or a server cluster composed of multiple servers.

[0028] In one embodiment, such as Figure 2 As shown, a model generation method is provided, which can be applied to... Figure 1 Taking the terminal in the example, the explanation includes the following steps:

[0029] Step 201: Traverse the initial BIM model files corresponding to the power grid equipment to obtain the target component file of at least one target component in the power grid equipment.

[0030] This includes power grid equipment such as transformers, high-voltage switchgear, and voltage transformers—equipment involved in the field of smart grid technology. The initial BIM model file refers to a file obtained by simulating and modeling power grid equipment using BIM technology and 3D modeling software, and then exporting the structured model. Target components refer to the parts that make up the power grid equipment. A power grid device includes at least one target component. Taking a transformer as an example, the target components of a transformer include the tank, oil conservator, breather, radiator, explosion-proof device, and insulating bushings. The target component file is the file corresponding to the target component in the initial BIM model file and is part of the initial BIM model file.

[0031] Optionally, after receiving the uploaded initial BIM model file, the terminal accesses all sub-files contained in the initial BIM model file along a pre-set search route. When a sub-file with a pre-set identifier is encountered, the sub-file is output, and the sub-file is the target component file of the target component.

[0032] By traversing the initial BIM model file, target component files for all target components in the power grid equipment can be obtained quickly, accurately, and completely. Furthermore, converting the initial BIM model file into target component files based on individual target components facilitates the combination and separation of these components. This allows for modifications to the corresponding BIM model of the power grid equipment without altering the entire BIM model; only the relevant target components need to be modified.

[0033] Step 202: Generate the target component identifier corresponding to the target component based on the attribute information of the target component.

[0034] The attribute information includes the target component's manufacturer, geometric dimensions, performance parameters, and production date. The target component identifier is a unique identifier used to identify the target component.

[0035] Optionally, the terminal obtains the target component name of each target component based on the manually input name. Then, based on the target component name, it matches the manufacturer, geometric dimensions, performance parameters, etc. of each target component from the attribute database. Then, based on the initial BIM model file uploaded to the terminal and the time when the terminal saves the initial BIM model file, it obtains the production date of each target component. Finally, the manufacturer, geometric dimensions, performance parameters, and production date are concatenated with the symbol "-" to obtain the target component identifier, i.e., "Manufacturer-Geometric Dimensions-Performance Parameters-Production Date-...".

[0036] By generating a target component identifier based on the target component's attribute information, the target component identifier can contain the target component's attribute information, making it easier to associate the target component with ledgers and material category databases.

[0037] Step 203: Add the target component identifier to the target component file to obtain the target BIM model file. The target BIM model file is used to merge the target component and the target component identifier when displaying the BIM model corresponding to the power grid equipment.

[0038] Optionally, for each target component file, the terminal automatically writes the target component identifier into a pre-defined location within the target component file. This pre-defined location can be at least one of the naming convention of the target component file or a specific character segment within the file. This ensures that when displaying the BIM model corresponding to the target component, the target component identifier can be displayed. Then, all target component files with the target component identifier written into them are merged to obtain the target BIM model file. This allows for the display of each target component and its corresponding identifier when displaying the BIM model corresponding to the power grid equipment. Furthermore, the display method for the target component identifier can be either showing the identifier of the target component where the cursor is clicked / hovered, or displaying all target component identifiers directly.

[0039] In traditional technologies, it's impossible to input the attribute information of target components into the BIM model during the design phase, making it impossible to extract attribute information from the BIM model to generate a material list. However, by generating a target component identifier based on the target component's attribute information and adding the identifier to the target component file in this embodiment, the resulting target BIM model file contains the attribute information of all target components. This allows the BIM model to contain the attribute information of all target components, thus enabling the extraction of attribute information from the BIM model to generate a material list.

[0040] In summary, by traversing the initial BIM model files corresponding to the power grid equipment, a target component file for at least one target component in the power grid equipment is obtained. Then, a target component identifier corresponding to the target component is generated based on the attribute information of the target component. The target component identifier is then added to the target component file to obtain the target BIM model file. The target BIM model file is used to merge and display the target component and the target component identifier when displaying the BIM model corresponding to the power grid equipment. In this way, by generating the target component identifier corresponding to the target component based on the attribute information of the target component and adding the target component identifier to the target component file to obtain the target BIM model file, this application ensures that when displaying the BIM model corresponding to the power grid equipment, not only the target component but also the target component identifier is displayed. Since the target component identifier is generated based on the attribute information of the target component, the displayed target component identifier contains the attribute information of the target component, thereby enriching the component display information and improving the display effect.

[0041] In one embodiment, generating a target component identifier corresponding to the target component based on the attribute information of the target component includes: obtaining the target component name of the target component and generating a component code for the target component; and concatenating the component code, the target component name, and the attribute information to obtain the target component identifier.

[0042] The names of target components, such as fuel tanks, fuel conservators, breather units, radiators, explosion-proof devices, and insulating sleeves, can also be "XXX Fuel Tank," where "XXX" can represent the manufacturer, specifically an abbreviation of the manufacturer's name. Component codes can be numbers or letters.

[0043] Optionally, after the terminal obtains at least one target component file in step 201, it generates a unique component code for each target component file and obtains the target component name for each target component based on manually entered names. Then, based on each target component name, it matches the manufacturer, geometric dimensions, performance parameters, etc., of each target component from the attribute database. Next, based on the time the initial BIM model file was uploaded to the terminal and the time the terminal saved the initial BIM model file, it obtains the production date of each target component. Here, the manufacturer, geometric dimensions, performance parameters, and production date are all attribute information. Finally, the component code, target component name, manufacturer, geometric dimensions, performance parameters, and production date are concatenated using the symbol "-" to obtain the target component identifier, i.e., "Component Code-Target Component Name-Manufacturer-Geometric Dimensions-Performance Parameters-Production Date-...".

[0044] The target component identifier obtained through the method in this embodiment includes the component code, target component name, and attribute information. This target component identifier is then added to the target component file to obtain the target BIM model file. This ensures that the BIM model corresponding to the power grid equipment contains the component codes, target component names, and attribute information of all target components, enabling the extraction of attribute information from the BIM model to generate a material list. Furthermore, when displaying the BIM model corresponding to the power grid equipment, not only are each target component displayed, but also their component codes, target component names, and attribute information, thus enriching the component display information and improving the display effect.

[0045] In one embodiment, obtaining the target component name of the target component includes: if a candidate component name for the target component is detected based on the component naming interface, then the candidate component name is compared with the historical component names in the naming database for consistency; if the naming database does not contain candidate component names, then the candidate component name is used as the target component name of the target component.

[0046] Candidate component names refer to names manually entered into the terminal, but before the terminal has determined whether the name is suitable as a target component name. Historical component names, on the other hand, are names that the terminal has determined are suitable as target component names and are stored in the naming database.

[0047] Optionally, for each target component, after detecting the candidate component name manually entered on the component naming interface, the terminal automatically searches the naming database for the existence of the candidate component name by performing a consistency comparison. If it does not exist, the candidate component name is used as the target component name of the target component and stored in the naming database. If it exists, a visual prompt is given. Specifically, the historical component name with the same candidate component name is displayed on the component naming interface, along with the BIM model of the target component corresponding to the historical component name, with a prompt reminding the user that "the same name exists". Then, the user can end the visual prompt by re-entering the candidate component name or changing the historical component name, and proceed to name the next target component.

[0048] Obtaining the target component name using the method described in this embodiment avoids situations where two target components have the same target component name, thus increasing the distinguishability between target components.

[0049] In one embodiment, the method further includes: obtaining a file identifier corresponding to the initial BIM model file and searching in the model file database for a historical BIM model file containing the file identifier; generating a target component identifier corresponding to the target component based on the attribute information of the target component, including: if no historical BIM model file exists in the model file database, generating a target component identifier based on the attribute information of the target component.

[0050] The file identifier is a unique identifier for the initial BIM model file. It consists of two parts: the name of the electrical equipment corresponding to that initial BIM model file and the version number. The names of the electrical equipment include, for example, transformers and voltage transformers. Historical BIM model files are target BIM model files stored in the model file database, each bearing a target component identifier.

[0051] Optionally, after receiving the uploaded initial BIM model file, the terminal obtains the name of the initial BIM model file and obtains a file identifier. This file identifier can be obtained manually or automatically based on a business domain, where the business domain refers to rules defined by the business side. Then, based on the name portion of the file identifier, the terminal searches the model file database for a historical BIM model file containing the file identifier. If it doesn't exist, it indicates that the initial BIM model file is a newly generated BIM model file, not a model version update. The terminal then iterates through the initial BIM model file to obtain at least one target component file, obtains the target component name, and generates a component code for the target component. The component code, target component name, and attribute information are then concatenated to obtain the target component identifier. A unique component key value is generated for each target component, where the component key value indicates whether there are changes in the target component between two different versions of the model.

[0052] The terminal searches the model file database for historical BIM model files containing file identifiers to determine whether a model version update is needed, and then performs different actions for the yes and no cases.

[0053] In one embodiment, the method further includes: if historical BIM model files exist in the model file database, then based on the historical BIM model files and the initial BIM model files, detecting whether the historical BIM model files include historical component files for the target component; if the historical BIM model files include historical component files, then obtaining the historical component identifier of the target component from the historical component files, and using the historical component identifier as the target component identifier.

[0054] In one embodiment, the method further includes: obtaining the component key value of the target component from the historical component file, wherein the component key value is used to find the business association information corresponding to the target component; and adding the component key value to the target component file.

[0055] The business-related information includes the attribute information of the target component.

[0056] Optionally, if historical BIM model files exist in the model file database, it indicates that the initial BIM model file is to be updated. For each target component, based on the target component file, the historical BIM model files are checked to see if they contain historical component files. If historical component files are included in the historical BIM model files, it means that the target component has not been changed. The historical component key value and historical component identifier of the target component are then obtained from the historical component files, and the historical component key value and historical component identifier are used as the component key value and target component identifier of the target component, respectively, to establish the association between the component key value and the historical component identifier.

[0057] Optionally, if the historical BIM model file does not include historical component files, it indicates that the target component has been modified. In this case, the component key values ​​are regenerated, and a matching process is performed based on the offsets of all vertices of the target component from the center point and the offsets of all vertices of each historical component in the corresponding historical BIM model file. If the offsets of all vertices of the target component from the center point are consistent with the offsets of all vertices of a certain historical component, it indicates that the target component and the historical component are the same component. In this case, the historical component identifier of the historical component is obtained from the historical component file and used as the target component identifier of the target component, thus establishing a new association between the component key values ​​and the historical component identifier. If the offsets of all vertices of the target component from the center point are inconsistent with the offsets of all vertices of all historical components, the target component name needs to be manually entered. The terminal obtains the target component name based on the component naming interface and generates a component code for the target component. The component code, the target component name, and the attribute information are concatenated to obtain the target component identifier, thereby establishing a new association between the component key values ​​and the target component identifier.

[0058] In traditional technologies, when a BIM model is updated, its model information changes, causing the associated business information to lose its connection, resulting in information loss and severely impacting usability. This necessitates re-establishing the association between the BIM model and business information, affecting work efficiency. However, the method in this embodiment, when the BIM model is updated, inherits the key values ​​of unchanged target components from their identifiers, and associates the new key values ​​with the new identifiers for modified target components. This avoids the loss of business information caused by model updates and requires minimal manual intervention, thus significantly improving work efficiency.

[0059] In summary, the most detailed embodiment of this application is as follows: First, obtain the file identifier corresponding to the initial BIM model file, and search the model file database for a historical BIM model file containing the file identifier. If it does not exist, traverse the initial BIM model files corresponding to the power grid equipment to obtain the target component file for at least one target component in the power grid equipment, and then generate a component code for the target component; and detect candidate component names for the target component based on the component naming interface. If a candidate component name for the target component is detected based on the component naming interface, compare the candidate component name with the historical component names in the naming database. If the naming database does not contain the candidate component name, use the candidate component name as the target component name of the target component; and obtain the attribute information of the target component based on the target component name and the storage time of the initial BIM model file. Concatenate the component code, target component name, and attribute information to obtain the target component identifier, and generate a unique component key value for each target component. Finally, add the target component identifier and component key value to the target component file to obtain the target BIM model file. If it exists, then based on the historical BIM model file and the initial BIM model file, check whether the historical BIM model file includes a historical component file for the target component. If the historical BIM model file includes a historical component file, then obtain the historical component identifier and historical component key value of the target component from the historical component file, and use the historical component identifier and historical component key value as the target component identifier and component key value respectively. Finally, add the target component identifier and component key value to the target component file to obtain the target BIM model file. If the historical BIM model file does not include a historical component file, then regenerate the component key value, and perform matching processing based on the offsets of all vertices of the target component from the center point and the offsets of all vertices of each historical component in the corresponding historical BIM model file from the center point. If the offsets of all vertices of the target component from the center point are consistent with the offsets of all vertices of a historical component from the center point, then the historical component identifier of the historical component is obtained from the historical component file and used as the target component identifier of the target component. Finally, the target component identifier and the regenerated component key values ​​are added to the target component file to obtain the target BIM model file. If the offsets of all vertices of the target component from the center point are inconsistent with the offsets of all vertices of all historical components from the center point, then the target component name needs to be manually entered. The terminal obtains the target component name of the target component based on the component naming interface and generates a component code for the target component. The component code, the target component name, and the attribute information are concatenated to obtain the target component identifier, thereby establishing the association between the new component key values ​​and the target component identifier.In this way, by generating a target component identifier corresponding to the target component based on the attribute information of the target component and adding the target component identifier to the target component file to obtain the target BIM model file, this application ensures that when displaying the BIM model corresponding to the power grid equipment, not only the target component but also the target component identifier is displayed. Since the target component identifier is generated based on the attribute information of the target component, the displayed target component identifier contains the attribute information of the target component, thereby enriching the component display information and improving the display effect.

[0060] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0061] Based on the same inventive concept, this application also provides a model forming apparatus for implementing the model forming method described above. The solution provided by this apparatus is similar to the solution described in the above method. Therefore, the specific limitations in one or more model forming apparatus embodiments provided below can be found in the limitations of the model forming method above, and will not be repeated here.

[0062] In one embodiment, such as Figure 3 As shown, a structural block diagram of a model-forming device 300 is provided. This device includes: a traversal module 301, a generation module 302, and a merging module 303, wherein:

[0063] Traversal module 301 is used to traverse the initial BIM model files corresponding to the power grid equipment to obtain the target component file of at least one target component in the power grid equipment.

[0064] The generation module 302 is used to generate a target component identifier corresponding to the target component based on the attribute information of the target component.

[0065] The merging module 303 is used to add the target component identifier to the target component file to obtain the target BIM model file. The target BIM model file is used to merge and display the target component and the target component identifier when displaying the BIM model corresponding to the power grid equipment.

[0066] In one embodiment, the generation module 302 is specifically used to obtain the target component name of the target component and generate a component code for the target component; the component code, the target component name and attribute information are concatenated to obtain the target component identifier.

[0067] In one embodiment, the generation module 302 is further configured to, if a candidate component name for the target component is detected based on the component naming interface, compare the candidate component name with the historical component names in the naming database; if the naming database does not contain candidate component names, use the candidate component name as the target component name of the target component.

[0068] In one embodiment, the device 300 further includes: a search module, used to obtain the file identifier corresponding to the initial BIM model file and search in the model file database for whether there is a historical BIM model file containing the file identifier; and a generation module 302, specifically used to generate a target component identifier based on the attribute information of the target component if there is no historical BIM model file in the model file database.

[0069] In one embodiment, the device 300 further includes: a detection module, configured to, if historical BIM model files exist in the model file database, detect whether the historical BIM model files include historical component files for the target component based on the historical BIM model files and the initial BIM model files; if the historical BIM model files include historical component files, obtain the historical component identifier of the target component from the historical component files and use the historical component identifier as the target component identifier.

[0070] In one embodiment, the device 300 further includes: an adding module, which obtains the component key value of the target component from the historical component file, the component key value being used to find the business association information corresponding to the target component; and adds the component key value to the target component file.

[0071] Each module in the aforementioned model assembly can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the operations corresponding to each module.

[0072] In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 4As shown, the computer device includes a processor, memory, input / output interface, communication interface, display unit, and input device. The processor, memory, and input / output interface are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interface. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The input / output interface is used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements a modeling method. The display unit is used to form a visually visible image and can be a display screen, projection device, or virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.

[0073] Those skilled in the art will understand that Figure 4 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0074] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above-described method embodiments.

[0075] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps in the above method embodiments.

[0076] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.

[0077] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data shall comply with the relevant laws, regulations and standards of the relevant countries and regions.

[0078] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0079] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0080] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A model generation method, characterized in that, The method includes: Traverse the initial BIM model files corresponding to the power grid equipment to obtain the target component file of at least one target component in the power grid equipment; Generate a target component identifier corresponding to the target component based on the attribute information of the target component; The target component identifier is added to the target component file to obtain the target BIM model file. The target BIM model file is used to merge and display the target component and the target component identifier when displaying the BIM model corresponding to the power grid equipment. The method further includes: obtaining the file identifier corresponding to the initial BIM model file, and searching in the model file database for whether there is a historical BIM model file containing the file identifier; The step of generating a target component identifier corresponding to the target component based on the attribute information of the target component includes: if the historical BIM model file does not exist in the model file database, then generating the target component identifier based on the attribute information of the target component.

2. The method according to claim 1, characterized in that, The step of generating a target component identifier corresponding to the target component based on the attribute information of the target component includes: Obtain the target component name of the target component and generate a component code for the target component; The component code, the target component name, and the attribute information are concatenated to obtain the target component identifier.

3. The method according to claim 2, characterized in that, The step of obtaining the target component name includes: If a candidate component name for the target component is detected based on the component naming interface, the candidate component name is compared with the historical component names in the naming database for consistency. If the candidate component name is not included in the naming database, then the candidate component name shall be used as the target component name of the target component.

4. The method according to claim 1, characterized in that, The method further includes: If the historical BIM model file exists in the model file database, then based on the historical BIM model file and the initial BIM model file, it is detected whether the historical BIM model file includes a historical component file for the target component; If the historical BIM model file includes the historical component file, then the historical component identifier of the target component is obtained from the historical component file, and the historical component identifier is used as the target component identifier.

5. The method according to claim 4, characterized in that, The method further includes: Obtain the component key value of the target component from the historical component file; the component key value is used to find the business association information corresponding to the target component. Add the key values ​​of the component to the target component file.

6. A model generation apparatus, characterized in that, The device includes: The traversal module is used to traverse the initial BIM model files corresponding to the power grid equipment to obtain the target component file of at least one target component in the power grid equipment. The generation module is used to generate a target component identifier corresponding to the target component based on the attribute information of the target component; The merging module is used to add the target component identifier to the target component file to obtain a target BIM model file. The target BIM model file is used to merge and display the target component and the target component identifier when displaying the BIM model corresponding to the power grid equipment. The device further includes a search module, used to obtain the file identifier corresponding to the initial BIM model file and search in the model file database for whether there is a historical BIM model file containing the file identifier; The generation module is specifically used to generate the target component identifier based on the attribute information of the target component if the historical BIM model file does not exist in the model file database.

7. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 5.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 5.

9. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Building model processing method and device, computer equipment and storage medium

    CN112347545A

  • Three-dimensional model updating method and device and electronic equipment

    CN112381901A