Model file processing method and apparatus, device, storage medium, and program product

By eliminating and compressing duplicate component files in the BIM model, the problem of excessive memory usage in the BIM model was solved, achieving more efficient model processing and display.

CN116029026BActive Publication Date: 2025-12-19SHENZHEN POWER SUPPLY BUREAU
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211726807.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-30
Publication Date
2025-12-19
Estimated Expiration
2042-12-30

AI Technical Summary

Technical Problem

The large size of BIM models leads to excessive memory consumption, which affects display efficiency.

Method used

By obtaining the initial BIM model file of the power grid equipment, identifying identical components based on the attribute description file, eliminating duplicate component files, and compressing the files, the target BIM model file is generated.

Benefits of technology

It reduces the memory footprint of BIM models and improves model processing efficiency and display speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116029026B_ABST
    Figure CN116029026B_ABST
Patent Text Reader

Abstract

The application relates to a model file processing method, device, equipment, storage medium and program product. The method comprises the following steps: firstly, an initial BIM model file corresponding to a power grid device is acquired, the initial BIM model file comprises component files of various components in the power grid device and attribute description files; secondly, target components with the same type as other components are determined according to the attribute description files; finally, target component files corresponding to the target components are removed from the component files to obtain removed component files; wherein the removed component files are used to form a target BIM model file together with the attribute description files, so that a target BIM model corresponding to the target BIM model file takes the component files of other components as the target component files in the display process. Through the method, the same and repeated components in the BIM model can be deleted, so that the purpose of reducing the memory occupation of the BIM model is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data processing technology, and in particular to a model file processing 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 based on computer-aided design and other technologies. It is widely used in traditional building construction fields such as architecture and engineering. 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] While the BIM model described above can fully display the original detailed information, its large size leads to excessive memory consumption. Summary of the Invention

[0005] Therefore, it is necessary to provide a model file processing method, apparatus, equipment, storage medium, and program product that can reduce the memory usage of BIM models in order to address the above-mentioned technical problems.

[0006] Firstly, this application provides a method for processing model files. The method includes:

[0007] Obtain the initial BIM model file corresponding to the power grid equipment. The initial BIM model file includes the component files and attribute description files of each component in the power grid equipment. Based on each attribute description file, identify the target component that is the same type as other components in each component. Remove the target component file corresponding to the target component from each component file to obtain the removed component file. The removed component file is used to form the target BIM model file with each attribute description file, so that the target BIM model corresponding to the target BIM model file can use the component files of other components as the target component file during the display process.

[0008] In one embodiment, the method further includes: performing file compression processing on the removed component files and each attribute description file according to a preset compression method to obtain compressed component files and compressed attribute description files; and storing the compressed component files and compressed attribute description files as target BIM model files.

[0009] In one of the embodiments, the target component which is of the same type as other components is determined according to the attribute description file of each component, including: obtaining spatial feature data of each component according to the attribute description file of the component; performing consistency comparison between the spatial feature data of the component and the spatial feature data of other components; and determining the component as the target component if the spatial feature data of the component is the same as the spatial feature data of other components.

[0010] In one of the embodiments, the method further includes: obtaining the component identifier corresponding to the target component; adding the component identifier into the target attribute file of the target component, and adding the component identifier into the component file of other components which are of the same type as the target component.

[0011] In one of the embodiments, the method further includes: if the display instruction for the target BIM model is received, displaying the target BIM model according to the target BIM model file; and in the display process of the target component, searching for the candidate component file including the component identifier, and rendering the display picture of the target component according to the candidate component file.

[0012] In one of the embodiments, the component identifier corresponding to the target component is obtained, including: obtaining the component code and the component name corresponding to the target component, the component code including the component ID and the component geometry information character group; and splicing the component code and the component name to obtain the component identifier.

[0013] In a second aspect, the application further provides a model file processing device. The device includes:

[0014] The obtaining module is configured to obtain an initial BIM model file corresponding to the power grid equipment, the initial BIM model file including component files of each component in the power grid equipment and attribute description files.

[0015] The determining module is configured to determine target components which are of the same type as other components in each component according to the attribute description files.

[0016] The removing module is configured to remove target component files corresponding to the target components from the component files to obtain removed component files.

[0017] The removed component files are used to form a target BIM model file together with the attribute description files, so that the target BIM model corresponding to the target BIM model file takes the component files of other components as the target component files in the display process.

[0018] In one of the embodiments, the device further includes:

[0019] The storage module is configured to compress the component file and the attribute description file according to a preset compression mode, to obtain a compressed component file and a compressed attribute description file, and to store the compressed component file and the compressed attribute description file as a target BIM model file.

[0020] In one of the embodiments, the determining module is specifically configured to: for each component, obtain spatial feature data of the component according to the attribute description file of the component; perform consistency comparison on the spatial feature data of the component and spatial feature data of other components; and if the spatial feature data of the component is the same as the spatial feature data of the other components, determine that the component is the target component.

[0021] In one of the embodiments, the apparatus further includes:

[0022] The adding module is configured to: obtain a component identifier corresponding to the target component; add the component identifier into the target attribute file of the target component, and add the component identifier into a component file of other components of the same type as the target component.

[0023] In one of the embodiments, the apparatus further includes:

[0024] The displaying module is configured to: if a display instruction for the target BIM model is received, display the target BIM model according to the target BIM model file; and in a display process of the target component, find a candidate component file including the component identifier, and render a display picture of the target component according to the candidate component file.

[0025] In one of the embodiments, the adding module is specifically configured to: obtain a component code and a component name corresponding to the target component, the component code including a component ID and a component geometry information character group; and splice the component code and the component name to obtain the component identifier.

[0026] In a third aspect, an embodiment of the present application provides a device having a computer program stored thereon, wherein the computer program is executed by a processor to implement the steps of any of the above-mentioned embodiments of the first aspect.

[0027] In a fourth aspect, an embodiment of the present application provides a storage medium having a computer program stored thereon, wherein the computer program is executed by a processor to implement the steps of any of the above-mentioned embodiments of the first aspect.

[0028] In a fifth aspect, an embodiment of the present application provides a program product having a computer program stored thereon, wherein the computer program is executed by a processor to implement the steps of any of the above-mentioned embodiments of the first aspect.

[0029] The model file processing method, device, equipment, storage medium and program product, first, an initial BIM model file corresponding to a power grid device is obtained, the initial BIM model file includes component files of each component in the power grid device and attribute description files; second, according to each attribute description file, a target component with the same type as other components in each component is determined; finally, a target component file corresponding to the target component is removed from each component file to obtain a removed component file; wherein the removed component file is used to form a target BIM model file with each attribute description file, so that the target BIM model corresponding to the target BIM model file will use the component file of other components as the target component file in the display process. Through the method, the same and repeated components in the BIM model can be deleted, so as to reduce the memory occupied by the BIM model. BRIEF DESCRIPTION OF DRAWINGS

[0030] Figure 1 A flowchart of a model file processing method in an embodiment;

[0031] Figure 2 A flowchart of a method for determining a target component in an embodiment;

[0032] Figure 3 A flowchart of a data storage method in an embodiment;

[0033] Figure 4 A flowchart of a method for adding a component identifier in an embodiment;

[0034] Figure 5 A flowchart of a method for obtaining a component identifier in an embodiment;

[0035] Figure 6 A flowchart of a model file processing method in another embodiment;

[0036] Figure 7 A flowchart of a model file processing method in another embodiment;

[0037] Figure 8 A comparison diagram of a BIM model before and after model file processing in an embodiment;

[0038] Figure 9 A flowchart of a file processing method in an embodiment;

[0039] Figure 10 A structural block diagram of a model file processing device in an embodiment;

[0040] Figure 11 A structural block diagram of a model file processing device in another embodiment;

[0041] Figure 12 Fig. 1 is a schematic diagram of an internal structure of a computer device as a server in an embodiment;

[0042] Figure 13 Fig. 2 is a schematic diagram of an internal structure of a computer device as a terminal in an embodiment. DETAILED DESCRIPTION

[0043] In order to make the purposes, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and should not be used to limit the present application.

[0044] The model file processing method provided by the embodiments of the present application can be applied to a computer device, which can be a terminal or a server. The terminal can be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, Internet of Things devices, etc., and the specific terminal is not specifically limited herein. The server can be implemented by an independent server or a server cluster composed of multiple servers.

[0045] In an embodiment of the present application, as shown in Figure 1 A model file processing method is provided. Taking the server as an example, the method comprises the following steps:

[0046] Step 101: An initial BIM model file corresponding to a power grid device is obtained.

[0047] The initial BIM model file includes component files and attribute description files of each component in the power grid device. The BIM model file can be an RVT format source file or a 3DMAX format source file, and the specific format is not specifically limited herein.

[0048] Optionally, the server obtains the initial BIM model file in the following manner: receiving a sending request of a terminal to obtain the initial BIM model file, or obtaining the initial BIM model file stored in the cloud through networking, and the specific obtaining manner is not limited herein.

[0049] Step 102: According to each attribute description file, a target component with the same type as other components is determined.

[0050] Each attribute description file includes attribute information data of each component, such as spatial feature data, volume feature data, color feature data, material attribute data, etc., and the corresponding component can be determined through the attribute description file.

[0051] Optionally, the target component with the same type as other components in each component can be determined according to the spatial feature data, volume feature data, color feature data, or material attribute data of each attribute description file. In the embodiment of the present application, the target component with the same type as other components in each component can be determined according to the spatial feature data.

[0052] In a possible implementation manner, the target component with the same type as other components in each component can be determined by one-to-one comparison of the spatial feature data of each attribute description file with all components.

[0053] In a possible implementation manner, the target component with the same type as other components in each component can be determined by one-to-one comparison of the spatial feature data of each attribute description file with all components.

[0054] The component file is used to display the BIM model of each component, and the attribute description file has a corresponding relationship with the component file.

[0055] The component file is used to display the BIM model of each component, and the attribute description file has a corresponding relationship with the component file.

[0056] Optionally, the removal manner includes marking the target component with the same identifier, and removing the target component file according to the identifier.

[0057] Optionally, the removal manner includes marking the target component with the same identifier, and removing the target component file according to the identifier.

[0058] Optionally, the removal manner includes marking the target component with the same identifier, and removing the target component file according to the identifier.

[0059] It can be understood that the target component file is removed in order to keep only one of the repeated same components in the BIM model file, and the component files of the remaining same components are deleted, thereby reducing the memory consumption and improving the BIM model processing efficiency.

[0060] The above model file processing method first acquires an initial BIM model file corresponding to a power grid device,

[0061] The initial BIM model file includes component files and attribute description files of each component in the power grid device; secondly, the target component with the same type as other components in each component is determined according to each attribute description file; and finally, the target component file corresponding to the target component is removed from each component file to obtain the component file after removal.

[0062] The component file after being removed is used to form a target BIM model file with each attribute description file, so that the target BIM model corresponding to the target BIM model file takes the component file of other components as the target component file in the display process. Through the method, the same and repeated components in the BIM model can be removed, so as to reduce the memory occupied by the BIM model.

[0063] As described above, after obtaining each attribute description file, the target component with the same type as other components in each component needs to be determined according to each attribute description file. In an embodiment of the present application, as shown in Figure 2 A method for determining a target component is provided, which includes the following steps:

[0064] Step 201: For each component, the spatial feature data of the component is obtained according to the attribute description file of the component.

[0065] The spatial feature data includes a pointer reference, spatial coordinates, an inclination angle, etc.

[0066] Step 202: The spatial feature data of the component is compared with the spatial feature data of other components in each component for consistency.

[0067] Optionally, the consistency comparison can be one-to-one comparison of the spatial feature data of the component with other components in each component, so as to improve the accuracy of comparison; or the other components can be grouped, and different spatial feature data of each group is compared synchronously, and then the comparison is exchanged continuously, so as to improve the comparison rate. The specific comparison mode is not limited here.

[0068] Step 203: If the spatial feature data of the component is the same as the spatial feature data of other components, the component is determined as the target component.

[0069] It can be understood that the spatial feature data can represent the basic information of the component, so as to determine the same component. If the spatial feature data of the component is the same as the spatial feature data of other components, all the same components can be determined and used as the target component.

[0070] In the embodiment, the consistency of all components is compared through the attribute description file of the component, so as to determine the same component, improve the processing efficiency of the model, and lay a foundation for light processing and reducing the memory occupied by the model.

[0071] Further, after obtaining the removed component file, each file can be stored. In an embodiment of the present application, as shown in Figure 3 A data storage method is provided, which includes the following steps:

[0072] Step 301, according to the preset compression mode, respectively compress the component file after the elimination and each attribute description file to obtain the compressed component file and the compressed attribute description file.

[0073] Wherein, the preset compression mode can compress the file to a preset compression size, for example, the file can be compressed to one tenth of the original file, so as to save space and facilitate transmission.

[0074] Optionally, the preset compression size can be defaulted by the system, set by the technician, or randomly selected, and the specific preset compression size is not limited herein.

[0075] Step 302, store the compressed component file and the compressed attribute description file as the target BIM model file.

[0076] Wherein, in the embodiment of the application, the component file can adopt GLB format file, and the attribute description file can adopt JSON format file. For the GLB format component file, binary storage storage mode can be adopted, which has the advantages of small volume and high loading efficiency.

[0077] In the embodiment, by compressing and storing the component file after elimination and each attribute description file, the purpose of reducing the occupied memory space and improving the file transmission efficiency can be further achieved.

[0078] In addition, in order to facilitate the identification and classification processing of the component, the component identifier can be added in the file to facilitate the identification of the corresponding component. In an embodiment of the application, as shown in Figure 4 A method for adding component identifier is provided, which comprises the following steps:

[0079] Step 401, obtaining the component identifier corresponding to the target component.

[0080] Wherein, the component identifier can be an identifier determined according to the information of the component, an identifier added by the technician, or an identifier automatically generated by the system. In the embodiment of the application, it can be an identifier determined according to the information of the component.

[0081] Step 402, adding the component identifier to the target attribute file of the target component, and adding the component identifier to the component file of other components of the same type as the target component.

[0082] The target attribute file includes an attribute description file, the component identifier is added to the target attribute file of the target component, that is, the component identifier is added to the attribute description file of the target component, and the component identifier is added to the component file of other components of the same type as the target component. In subsequent operations, due to the existence of the same component identifier, the corresponding component file can be found through the attribute description file, so as to facilitate the identification of the corresponding component.

[0083] As described above, in one embodiment of the present application, as shown in Figure 5 A method for obtaining a component identifier is provided, and the method comprises the following steps:

[0084] Step 501, obtaining the component code and the component name corresponding to the target component, the component code including a component ID and a component geometric information character group.

[0085] The component ID refers to a 16-bit random unique code corresponding to each component.

[0086] The component geometric information character group can be determined by the geometric information data of the component through the information parameters such as the component corresponding accessor, buffer view, buffer, etc., and then the geometric information data is converted into the component geometric information character group through a preset program.

[0087] The component name can be determined in the form of unicode encoding according to the index number of the component, and then the component name in the form of unicode encoding is converted into Chinese characters through a preset program, so as to facilitate the identification of subsequent users.

[0088] Step 502, splicing the component code and the component name to obtain the component identifier.

[0089] It can be understood that the component identifier includes the component code and the component name.

[0090] In one possible implementation manner, after the component code and the component name are spliced, the spliced component code and the component name can be converted in the form of character group through a preset program to obtain the component identifier in the form of character group, so as to further reduce the memory occupation and improve the processing efficiency of the model.

[0091] In addition, in one embodiment of the present application, a method for displaying a target BIM model is also provided, and the method comprises: if a display instruction for the target BIM model is received, displaying the target BIM model according to the target BIM model file.

[0092] In the display process of the target component, a candidate component file including a component identifier is searched, and a display screen of the target component is rendered according to the candidate component file.

[0093] In a possible implementation, when a user has a demand for displaying a target BIM model, a terminal can send a display instruction to a server. After the server receives the display instruction for the target BIM model, the server returns a corresponding instruction, so that the terminal displays the target BIM model according to the target BIM model file. Since the same repeated components have been removed, it is not necessary to load too many redundant components, which greatly improves the display rate of the target BIM model and reduces the memory consumption.

[0094] In an embodiment of the present application, as shown in Figure 6 a model file processing method is provided, and the method comprises the following steps:

[0095] In step 601, an initial BIM model file corresponding to a power grid device is obtained.

[0096] In step 602, for each component, spatial feature data of the component is obtained according to an attribute description file of the component.

[0097] In step 603, the spatial feature data of the component is compared with spatial feature data of other components.

[0098] In step 604, if the spatial feature data of the component is the same as the spatial feature data of other components, the component is determined as a target component.

[0099] In step 605, a target component file corresponding to the target component is removed from each component file, to obtain a removed component file.

[0100] In step 606, the removed component file and each attribute description file are respectively compressed according to a preset compression mode, to obtain a compressed component file and a compressed attribute description file.

[0101] In step 607, the compressed component file and the compressed attribute description file are stored as a target BIM model file.

[0102] In step 608, if a display instruction for the target BIM model is received, the target BIM model is displayed according to the target BIM model file.

[0103] In addition, in an embodiment of the present application, as shown in Figure 7As shown, another model file processing flowchart is provided to briefly illustrate the model file processing method. First, the BIM model is parsed to identify all components in the BIM model. Then, the components are compared one by one. The same components are retained only one and the rest are removed. Finally, the file after the removal processing is compressed and stored.

[0104] Please continue to refer to Figure 8 For a comparison between the BIM model before and after the model file processing in an embodiment of the present application, as an example, it can be seen that before the processing, the components include main transformer 1, main transformer 2, main transformer 3, reactor 4 and reactor 5, a total of five components, corresponding to five component files. However, since main transformer 1, main transformer 2 and main transformer 3 are the same repeated components, and reactor 4 and reactor 5 are the same repeated components, in the model file processing, the same repeated component files are removed, which is equivalent to removing the same repeated components and retaining only one. After the processing, main transformer 1, main transformer 2 and main transformer 3 only retain the component file of one component, and reactor 4 and reactor 5 also only retain the component file of one component. Finally, the five components are reduced to two components, reducing the memory occupation.

[0105] In addition, please refer to Figure 9 For a flowchart of the processed component files and attribute description files in an embodiment of the present application, as an example, it can be seen that the original size of an RVT format electrical BIM model file is 270M. The model file processing and compression are performed after the file is divided into component files and attribute description files. Finally, the lightweight file size is 9M, greatly reducing the memory consumption.

[0106] It should be understood that although each step in the flowchart involved in each embodiment as described above is displayed in sequence according to the arrow, these steps are not necessarily executed in sequence according to the arrow. Unless otherwise stated herein, the execution of these steps has no strict sequence limitation, and these steps can be executed in other orders. Moreover, at least part of the steps in the flowchart involved in each embodiment as described above can include multiple steps or stages, which are not necessarily executed 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 executed in rotation or alternation with at least part of other steps or steps or stages in other steps.

[0107] Based on the same inventive concept, the embodiments of the present application also provide a model file processing apparatus for implementing the model file processing method described above. The implementation scheme for solving the problem provided by the apparatus is similar to the implementation scheme described in the above method, so the specific limitations in one or more model file processing apparatus embodiments provided below can refer to the limitations of the model file processing method described above, which will not be repeated here.

[0108] In one embodiment of the present application, as shown in Figure 10 A model file processing apparatus 1000 is provided, comprising an acquisition module 1001, a determination module 1002 and a rejection module 1003, wherein:

[0109] The acquisition module 1001 is configured to acquire an initial BIM model file corresponding to a power grid device, the initial BIM model file comprising component files of each component in the power grid device and attribute description files.

[0110] The determination module 1002 is configured to determine, according to each attribute description file, a target component in each component which is of the same type as other components.

[0111] The rejection module 1003 is configured to reject a target component file corresponding to the target component from each component file to obtain a rejected component file.

[0112] The rejected component file is used to form a target BIM model file together with each attribute description file, so that the target component file of other components is used as the target component file in the target BIM model corresponding to the target BIM model file during the display process.

[0113] In one embodiment, the determination module 1002 is specifically configured to: for each component, acquire spatial feature data of the component according to the attribute description file of the component; perform consistency comparison on the spatial feature data of the component and spatial feature data of other components in each component; and if the spatial feature data of the component is the same as the spatial feature data of other components, determine that the component is a target component.

[0114] Please refer to Figure 11 which shows another model file processing apparatus 1100 provided by the embodiments of the present application. In addition to comprising each module included in the model file processing apparatus 1000, the model file processing apparatus 1100 can optionally comprise a storage module 1004, an adding module 1005 and a display module 1006.

[0115] In one of the embodiments, the storage module 1004 is configured to compress the filtered component file and the attribute description file according to a preset compression mode, to obtain a compressed component file and a compressed attribute description file, and store the compressed component file and the compressed attribute description file as a target BIM model file.

[0116] In one of the embodiments, the adding module 1005 is configured to obtain a component identifier corresponding to the target component, add the component identifier into the target attribute file of the target component, and add the component identifier into the component file of other components of the same type as the target component.

[0117] In one of the embodiments, the adding module 1005 is specifically configured to obtain a component code and a component name corresponding to the target component, the component code including a component ID and a component geometry information character group, and splice the component code and the component name to obtain the component identifier.

[0118] In one of the embodiments, the display module 1006 is configured to, if a display instruction for the target BIM model is received, display the target BIM model according to the target BIM model file, and in the display process of the target component, find a candidate component file including the component identifier, and render a display picture of the target component according to the candidate component file.

[0119] The modules in the above model file processing apparatus can be realized by software, hardware, or a combination thereof. The modules can be embedded in or independent of a processor in a computer device in hardware form, or stored in a memory in the computer device in software form, so as to be called and executed by a processor to perform operations corresponding to the modules.

[0120] In one embodiment, a computer device is provided, which can be a server, and an internal structure diagram of the computer device can be as shown in Figure 12 The computer device includes a processor, a memory, and a network interface connected through a system bus. The processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operating system and the computer program in the non-volatile storage medium to run. The database of the computer device is configured to store data. The network interface of the computer device is configured to communicate with an external terminal through a network connection. The computer program is executed by the processor to implement a model file processing method.

[0121] In one embodiment, a computer device is provided, which can be a terminal, and an internal structure diagram of the computer device can be as shown inFigure 13 The computer device shown in the figure includes a processor, a memory, a communication interface, a display screen and an input device connected by a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operating system and the computer program in the non-volatile storage medium to run. The communication interface of the computer device is used to communicate with external terminals in a wired or wireless manner. The wireless manner can be achieved through WIFI, mobile cellular network, NFC (Near Field Communication) or other technologies. The computer program is executed by the processor to implement a model file processing method. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen. The input device of the computer device can be a touch layer overlaid on the display screen, or a key, trackball or touchpad arranged on the shell of the computer device, or an external keyboard, touchpad or mouse, etc.

[0122] Those skilled in the art can understand that, Figure 12 Or Figure 13 The structure shown in the figure is only a block diagram of part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer device to which the scheme of the present application is applied. The specific computer device can include more or fewer components than those shown in the figure, or combine certain components, or have a different component arrangement.

[0123] In one embodiment, a device is provided, including a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the following steps:

[0124] An initial BIM model file corresponding to a power grid device is obtained, the initial BIM model file including component files of each component in the power grid device and attribute description files; target components of the same type as other components are determined from each attribute description file; target component files corresponding to the target components are removed from the component files to obtain removed component files; wherein the removed component files are used to form a target BIM model file with the attribute description files, so that the target BIM model corresponding to the target BIM model file will use the component files of other components as target component files in the display process.

[0125] In one of the embodiments, the processor executes the computer program to implement the following steps: the removed component files and the attribute description files are respectively subjected to file compression processing in a preset compression mode to obtain compressed component files and compressed attribute description files; and the compressed component files and the compressed attribute description files are stored as the target BIM model file.

[0126] In one of the embodiments, the processor implements the following steps when executing the computer program: obtaining spatial feature data of each component according to the attribute description file of the component; performing consistency comparison between the spatial feature data of the component and the spatial feature data of other components in the component; and determining the component as the target component if the spatial feature data of the component is the same as the spatial feature data of the other components.

[0127] In one of the embodiments, the processor implements the following steps when executing the computer program: obtaining the component identifier corresponding to the target component; adding the component identifier into the target attribute file of the target component, and adding the component identifier into the component file of other components of the same type as the target component.

[0128] In one of the embodiments, the processor implements the following steps when executing the computer program: if the display instruction for the target BIM model is received, displaying the target BIM model according to the target BIM model file; and in the display process of the target component, searching for the candidate component file including the component identifier, and rendering the display picture of the target component according to the candidate component file.

[0129] In one of the embodiments, the processor implements the following steps when executing the computer program: obtaining the component code and the component name corresponding to the target component, the component code including the component ID and the component geometry information character group; and splicing the component code and the component name to obtain the component identifier.

[0130] In one of the embodiments, a storage medium is provided, and the storage medium stores a computer program. The computer program is executed by a processor to implement the following steps:

[0131] obtaining an initial BIM model file corresponding to the power grid equipment, the initial BIM model file including component files and attribute description files of each component in the power grid equipment; determining target components of the same type as other components according to the attribute description files; and removing target component files corresponding to the target components from the component files to obtain the removed component files; wherein the removed component files are used to form a target BIM model file together with the attribute description files, so that the target BIM model corresponding to the target BIM model file uses the component files of other components as the target component files in the display process.

[0132] In one of the embodiments, the computer program is executed by the processor to implement the following steps: performing file compression processing on the removed component files and the attribute description files respectively according to a preset compression mode to obtain compressed component files and compressed attribute description files; and storing the compressed component files and the compressed attribute description files as the target BIM model file.

[0133] In one of the embodiments, the computer program, when executed by the processor, implements the following steps: obtaining, for each component, spatial feature data of the component according to the attribute description file of the component; performing consistency comparison of the spatial feature data of the component with the spatial feature data of other components in the components; and determining the component as the target component if the spatial feature data of the component is the same as the spatial feature data of the other components.

[0134] In one of the embodiments, the computer program, when executed by the processor, implements the following steps: obtaining the component identifier corresponding to the target component; adding the component identifier into the target attribute file of the target component, and adding the component identifier into the component file of the other components of the same type as the target component.

[0135] In one of the embodiments, the computer program, when executed by the processor, implements the following steps: if the display instruction for the target BIM model is received, displaying the target BIM model according to the target BIM model file; wherein, in the display process of the target component, searching for the candidate component file including the component identifier, and rendering the display picture of the target component according to the candidate component file.

[0136] In one of the embodiments, the computer program, when executed by the processor, implements the following steps: obtaining the component code and the component name corresponding to the target component, the component code including the component ID and the component geometry information character group; and splicing the component code and the component name to obtain the component identifier.

[0137] In one of the embodiments, a program product is provided, including a computer program, which, when executed by a processor, implements the following steps:

[0138] obtaining an initial BIM model file corresponding to the power grid equipment, the initial BIM model file including component files of each component in the power grid equipment and attribute description files; determining target components of the same type as other components in each component according to the attribute description files; and eliminating target component files corresponding to the target components from the component files to obtain the eliminated component files; wherein, the eliminated component files are used to form a target BIM model file together with the attribute description files, so that the target BIM model corresponding to the target BIM model file takes the component files of the other components as the target component files in the display process.

[0139] In one of the embodiments, the computer program, when executed by the processor, implements the following steps: performing file compression processing on the eliminated component files and the attribute description files respectively according to a preset compression mode to obtain compressed component files and compressed attribute description files; and storing the compressed component files and the compressed attribute description files as the target BIM model file.

[0140] In one of the embodiments, the computer program, when executed by the processor, implements the following steps: obtaining spatial feature data of each component according to the attribute description file of the component; performing consistency comparison between the spatial feature data of the component and the spatial feature data of other components; and determining the component as the target component if the spatial feature data of the component is the same as the spatial feature data of the other components.

[0141] In one of the embodiments, the computer program, when executed by the processor, implements the following steps: obtaining the component identifier corresponding to the target component; adding the component identifier into the target attribute file of the target component, and adding the component identifier into the component file of other components of the same type as the target component.

[0142] In one of the embodiments, the computer program, when executed by the processor, implements the following steps: if the display instruction for the target BIM model is received, displaying the target BIM model according to the target BIM model file; and in the display process of the target component, searching for the candidate component file including the component identifier, and rendering the display picture of the target component according to the candidate component file.

[0143] In one of the embodiments, the computer program, when executed by the processor, implements the following steps: obtaining the component code and the component name corresponding to the target component, the component code including the component ID and the component geometry information character group; and splicing the component code and the component name to obtain the component identifier.

[0144] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer readable storage medium, and when the computer program is executed, the processes of the above-mentioned embodiments of the methods can be included. Any reference to memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (Read-Only Memory, ROM), magnetic tape, floppy disk, flash memory, optical storage, high-density embedded non-volatile memory, resistive memory (ReRAM), magnetoresistive random access memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric memory (Ferroelectric Random Access Memory, FRAM), phase change memory (Phase Change Memory, PCM), graphene memory, etc. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, etc. As an illustration but not limitation, RAM can be in various forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), etc. The database involved in the embodiments provided in the present application can include at least one of a relational database and a non-relational database. The non-relational database can include a distributed database based on a block chain, etc., without being limited thereto. The processor involved in the embodiments provided in the present application can be a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., without being limited thereto.

[0145] Any combination of the technical features of the above embodiments can be made. In order to make the description simple, all possible combinations of the technical features in the above embodiments are not described, however, as long as the combination of the technical features does not exist contradictory, it should be considered as the scope of the present application.

[0146] The above embodiments only express several implementation manners of the present application, and the description is more specific and detailed, but it should not be understood as a limitation on the scope of the patent of the present application. It should be pointed out that for ordinary skilled in the art, without departing from the concept of the present application, a number of modifications and improvements can be made, which are within the scope of protection of the present application. Therefore, the protection scope of the present application should be subject to the appended claims.

Claims

1. A model file processing method characterized by comprising: The method comprises: obtaining an initial BIM model file corresponding to a power grid device, the initial BIM model file comprising component files of respective components in the power grid device and attribute description files; the attribute description files comprising spatial feature data of the components, the spatial feature data comprising pointer references, spatial coordinates, and inclination angles; determining, according to the attribute description files, target components of the components that are of the same type as other components; eliminating, from the component files, target component files corresponding to the target components, to obtain eliminated component files; wherein the eliminated component files are used to form a target BIM model file together with the attribute description files, so that a target BIM model corresponding to the target BIM model file uses the component files of the other components as the target component files in a display process; the determining, according to the attribute description files, of the target components of the components that are of the same type as other components comprises: for each of the components, obtaining spatial feature data of the component according to the attribute description file of the component; performing consistency comparison of the spatial feature data of the component with spatial feature data of other components of the components; if the spatial feature data of the component is the same as the spatial feature data of the other components, determining that the component is the target component.

2. The method of claim 1, wherein, The method further comprises: performing file compression processing on the eliminated component files and the attribute description files respectively according to a preset compression mode, to obtain compressed component files and compressed attribute description files; storing the compressed component files and the compressed attribute description files as the target BIM model file.

3. The method of claim 1, wherein, The method further comprises: obtaining a component identifier corresponding to the target component; adding the component identifier to a target attribute file of the target component, and adding the component identifier to component files of other components of the same type as the target component.

4. The method of claim 3, wherein, The method further comprises: if a display instruction for the target BIM model is received, displaying the target BIM model according to the target BIM model file; wherein, in a display process of the target component, a candidate component file comprising the component identifier is searched for, and a display screen of the target component is rendered according to the candidate component file.

5. The method of claim 3, wherein, The obtaining of the component identifier corresponding to the target component comprises: obtaining a component code and a component name corresponding to the target component, the component code comprising a component ID and a component geometry information character group; splicing the component code and the component name to obtain the component identifier.

6. A model file processing apparatus characterized by comprising: The apparatus comprises: an obtaining module configured to obtain an initial BIM model file corresponding to a power grid device, the initial BIM model file comprising component files of respective components in the power grid device and attribute description files; the attribute description files comprising spatial feature data of the components, the spatial feature data comprising pointer references, spatial coordinates, and inclination angles; A determining module is configured to determine a target component from each of the components according to each of the attribute description files, the target component having the same type as other components; A removing module is configured to remove a target component file corresponding to the target component from each of the component files to obtain a removed component file; The removed component file is used to form a target BIM model file together with each of the attribute description files, so that a target BIM model corresponding to the target BIM model file displays the component file of the other components as the target component file in a display process; The determining of the target component from each of the components according to each of the attribute description files comprises: For each of the components, spatial feature data of the component is obtained according to the attribute description file of the component; The spatial feature data of the component is compared with spatial feature data of other components from each of the components for consistency; If the spatial feature data of the component is the same as the spatial feature data of the other components, the component is determined as the target component. 7.A computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the computer device is configured to perform the method according to any one of claims 1-6 when the computer program is executed by the processor. The processor executes the computer program to implement the steps of the method in any one of claims 1 to 5.

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

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

Citation Information

Patent Citations

  • BIM model display method and device, computer equipment and storage medium

    CN114020390A