CN116029026A - Model file processing method, device, equipment, storage medium and program product - Google Patents

Model file processing method, device, equipment, storage medium and program product Download PDF

Info

Publication number
CN116029026A
CN116029026A CN202211726807.4A CN202211726807A CN116029026A CN 116029026 A CN116029026 A CN 116029026A CN 202211726807 A CN202211726807 A CN 202211726807A CN 116029026 A CN116029026 A CN 116029026A
Authority
CN
China
Prior art keywords
component
target
files
file
components
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211726807.4A
Other languages
Chinese (zh)
Inventor
弓国军
符国晖
韦波
周亚敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Power Supply Bureau Co Ltd
Original Assignee
Shenzhen Power Supply Bureau Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Power Supply Bureau Co Ltd filed Critical Shenzhen Power Supply Bureau Co Ltd
Priority to CN202211726807.4A priority Critical patent/CN116029026A/en
Publication of CN116029026A publication Critical patent/CN116029026A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y04INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
    • Y04SSYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
    • Y04S10/00Systems supporting electrical power generation, transmission or distribution
    • Y04S10/50Systems or methods supporting the power network operation or management, involving a certain degree of interaction with the load-side end user applications

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application relates to a model file processing method, a device, equipment, a storage medium and a program product. The method comprises the following steps: firstly, acquiring an initial BIM model file corresponding to power grid equipment, wherein the initial BIM model file comprises component files and attribute description files of all components in the power grid equipment; secondly, determining target components with the same types as other components in the components according to the attribute description files; finally, eliminating the target component file corresponding to the target component from the component files to obtain an eliminated component file; the removed component files are used for forming target BIM model files with the attribute description files, so that the target BIM model corresponding to the target BIM model files takes component files of other components as target component files in the display process. By the method, the same repeated components in the BIM model can be deleted, so that the purpose of reducing the memory occupied by the BIM model is achieved.

Description

Model file processing method, device, equipment, storage medium and program product
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method, an apparatus, a device, a storage medium, and a program product for processing a model file.
Background
BIM (Building Information Modeling, building information model) is a multidimensional building model information integrated management technology developed on the basis of computer aided design and other technologies, and is used in the traditional building field of architecture, engineering and the like. Along with the continuous expansion of the construction scale of the domestic power grid, BIM technology has also advanced well in the aspect of power grid application.
Taking a transformer substation as an example, the BIM technology is used for carrying out simulation modeling on the civil engineering and the electrical equipment of the transformer substation to obtain a BIM model, so that the BIM model can be displayed in a three-dimensional stereoscopic graph form, the spatial information expression is clearer, and the real appearance of the BIM model can be fully embodied.
Although the BIM model can fully show the original detailed information, the BIM model is huge in size, so that the memory occupation is too high.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a method, an apparatus, a device, a storage medium, and a program product for processing a model file, which can reduce the memory occupied by a BIM model.
In a first aspect, the present application provides a method for processing a model file. The method comprises the following steps:
acquiring an initial BIM model file corresponding to power grid equipment, wherein the initial BIM model file comprises component files and attribute description files of all components in the power grid equipment; determining target components with the same types as other components in the components according to the attribute description files; removing target component files corresponding to the target components from the component files to obtain removed component files; the removed component files are used for forming target BIM model files with the attribute description files, so that the target BIM model corresponding to the target BIM model files takes component files of other components as target component files in the display process.
In one embodiment, the method further comprises: according to a preset compression mode, respectively carrying out file compression processing on the removed component files and the attribute description files to obtain compressed component files and compressed attribute description files; and storing the compressed component file and the compressed attribute description file as target BIM model files.
In one embodiment, determining a target member of each member that is the same as the other member types based on each attribute description file includes: for each component, acquiring spatial feature data of the component according to the attribute description file of the component; consistency comparison is carried out on the spatial characteristic data of the components and the spatial characteristic data of other components in each component; if the spatial feature data of the component is the same as the spatial feature data of other components, the component is determined to be the target component.
In one embodiment, the method further comprises: acquiring a component identifier corresponding to a target component; the component identification is added to a target property file of the target component, and the component identification is added to a component file of other components of the same type as the target component.
In one embodiment, the method further comprises: if a display instruction aiming at the target BIM model is received, displaying the target BIM model according to the target BIM model file; and searching a candidate component file comprising the component identifier in the display process of the target component, and rendering a display picture of the target component according to the candidate component file.
In one embodiment, obtaining a component identifier corresponding to a target component includes: acquiring a component code and a component name corresponding to a target component, wherein the component code comprises a component ID and a component geometric information character set; and performing splicing treatment on the component codes and the component names to obtain the component identifiers.
In a second aspect, the application further provides a model file processing device. The device comprises:
the acquisition module is used for acquiring an initial BIM model file corresponding to the power grid equipment, wherein the initial BIM model file comprises component files and attribute description files of all components in the power grid equipment.
And the determining module is used for determining target components which are the same as other components in the components according to the attribute description files.
And the rejecting module is used for rejecting the target component file corresponding to the target component from the component files to obtain the rejected component file.
The removed component files are used for forming target BIM model files with the attribute description files, so that the target BIM model corresponding to the target BIM model files takes component files of other components as target component files in the display process.
In one embodiment, the apparatus further comprises:
The storage module is used for respectively carrying out file compression processing on the removed component files and the attribute description files according to a preset compression mode to obtain compressed component files and compressed attribute description files; and storing the compressed component file and the compressed attribute description file as target BIM model files.
In one embodiment, the determining module is specifically configured to: for each component, acquiring spatial feature data of the component according to the attribute description file of the component; consistency comparison is carried out on the spatial characteristic data of the components and the spatial characteristic data of other components in each component; if the spatial feature data of the component is the same as the spatial feature data of other components, the component is determined to be the target component.
In one embodiment, the apparatus further comprises:
the adding module is used for obtaining the component identifier corresponding to the target component; the component identification is added to a target property file of the target component, and the component identification is added to a component file of other components of the same type as the target component.
In one embodiment, the apparatus further comprises:
the display module is used for displaying the target BIM according to the target BIM file if a display instruction aiming at the target BIM is received; and searching a candidate component file comprising the component identifier in the display process of the target component, and rendering a display picture of the target component according to the candidate component file.
In one embodiment, the adding module is specifically configured to: acquiring a component code and a component name corresponding to a target component, wherein the component code comprises a component ID and a component geometric information character set; and performing splicing treatment on the component codes and the component names to obtain the component identifiers.
In a third aspect, embodiments of the present application provide an apparatus having a computer program stored thereon, which when executed by a processor performs the steps of any of the first aspects described above.
In a fourth aspect, embodiments of the present application provide a storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of any of the first aspects described above.
In a fifth aspect, embodiments of the present application provide a program product having a computer program stored thereon, which when executed by a processor performs the steps of any of the first aspects described above.
The method, the device, the equipment, the storage medium and the program product for processing the model files firstly acquire initial BIM model files corresponding to the power grid equipment, wherein the initial BIM model files comprise component files and attribute description files of all components in the power grid equipment; secondly, determining target components with the same types as other components in the components according to the attribute description files; finally, eliminating the target component file corresponding to the target component from the component files to obtain an eliminated component file; the removed component files are used for forming target BIM model files with the attribute description files, so that the target BIM model corresponding to the target BIM model files takes component files of other components as target component files in the display process. By the method, the same repeated components in the BIM model can be deleted, so that the purpose of reducing the memory occupied by the BIM model is achieved.
Drawings
FIG. 1 is a flow diagram of a model file processing method in one embodiment;
FIG. 2 is a flow diagram of a method of determining a target component in one embodiment;
FIG. 3 is a flow diagram of a method of data storage in one embodiment;
FIG. 4 is a flow diagram of a method of adding component identification in one embodiment;
FIG. 5 is a flow diagram of a method of obtaining component identification in one embodiment;
FIG. 6 is a flow chart of a method of model file processing in another embodiment;
FIG. 7 is a flow chart of a method of model file processing in another embodiment;
FIG. 8 is a diagram showing a comparison of BIM models before and after model file processing in one embodiment;
FIG. 9 is a flow diagram of file processing in one embodiment;
FIG. 10 is a block diagram showing a structure of a model file processing apparatus in one embodiment;
FIG. 11 is a block diagram showing a structure of a model file processing apparatus according to another embodiment;
FIG. 12 is an internal block diagram of a computer device as a server in one embodiment;
fig. 13 is an internal structural diagram of a computer device as a terminal in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
The method for processing the model file provided by the embodiment of the application can be applied to computer equipment, wherein the computer equipment 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 equipment and the like, and specific terminals are not limited in particular; the server may be implemented as a stand-alone server or as a server cluster composed of a plurality of servers.
In one embodiment of the present application, as shown in fig. 1, a method for processing a model file is provided, and the method is applied to the server for illustration, and includes the following steps:
step 101, acquiring an initial BIM model file corresponding to power grid equipment.
The initial BIM model file includes component files and attribute description files of each component in the power grid device, where the BIM model file may be a source file in RVT format, or may be a source file in 3DMAX format, and the specific format is not limited herein.
Optionally, the method for obtaining the initial BIM model file by the server includes obtaining the initial BIM model file by receiving a transmission request of the terminal, or obtaining the initial BIM model file stored in the cloud through networking, and the specific obtaining method is not limited herein.
And 102, determining target components with the same types as other components in the components according to the attribute description files.
Wherein each attribute description file comprises attribute information data of each component, such as space feature data, volume feature data, color feature data, material attribute data and the like, and the corresponding component can be determined through the attribute description file.
Alternatively, the target member of each member having the same type as the other member may be determined according to the spatial feature data, the volume feature data, the color feature data, the texture feature data, or the like of each attribute description file.
In one possible implementation, the same component may be found by performing a comparison of the spatial feature data of each attribute description file with all components, so as to determine the target component of each component that is the same as the other components in the type.
And 103, eliminating the target component file corresponding to the target component from the component files to obtain an eliminated component file.
The component files are used for displaying BIM models of the components, and the attribute description files and the component files have corresponding relations.
The removed component files are used for forming target BIM model files with the attribute description files, so that the target BIM model corresponding to the target BIM model files takes component files of other components as target component files in the display process.
Optionally, the removing method includes marking the target member with the same mark, and removing according to the mark
A target component file; storing the target component files corresponding to the target components into the same file, and deleting the file 5; determining the target member deletes its corresponding target member file, in this embodiment,
the target component can be marked with the same mark, and the target component file is removed according to the mark.
It can be understood that the target component file is removed, so that only one repeated identical component in the BIM model file is reserved, and component files of other identical components are deleted, thereby reducing memory consumption and improving BIM model processing efficiency.
The model file processing method comprises the steps of firstly, obtaining an initial BIM model file corresponding to power grid equipment,
the initial BIM file comprises a component file and an attribute description file of each component in the power grid equipment; secondly, determining target components with the same types as other components in the components according to the attribute description files; finally, eliminating the target component files corresponding to the target components from the component files to obtain the component text after elimination
A piece; the removed component files are used for forming a target BIM model file with each attribute description file, and 5, the target BIM model corresponding to the target BIM model file takes component files of other components as target component files in the display process. By the method, the same repeated components in the BIM model can be deleted, so that the purpose of reducing the memory occupied by the BIM model is achieved.
As described above, after obtaining each attribute description file, it is necessary to determine, according to each attribute description file, a target member of each member that is the same as the other members in types, and in one embodiment of the present application, as shown in fig. 2, 0, a method for determining a target member is provided, which includes the following steps:
step 201, for each component, acquiring the spatial feature data of the component according to the attribute description file of the component.
Wherein the spatial feature data includes pointer references, spatial coordinates, tilt angles, and the like.
Step 202, comparing the spatial characteristic data of the components with the spatial characteristic data of other components in each component in a 5-consistency manner.
Optionally, the consistency comparison may be performed by comparing the spatial feature data of the member with other members in each member to improve the accuracy of the comparison; other components can be grouped, each group synchronously performs comparison of different spatial feature data, and continuous comparison is exchanged to improve the comparison speed, and the specific comparison mode is not particularly limited.
Step 203, if the spatial feature data of the component is the same as the spatial feature data of other components, determining that the component is the target component.
It will be appreciated that the spatial signature may characterize the basic information of a component to determine the same component, and if the spatial signature of a component is the same as the spatial signatures of other components, then all of the same components may be determined and targeted.
In this embodiment, consistency comparison is performed on all the components through the attribute description file of the components, so that the same components are determined, processing efficiency of the model is improved, and a foundation is laid for light weight processing and memory occupation of the model is reduced.
Further, after the component files after being removed are obtained, each file may be stored, and in one embodiment of the present application, as shown in fig. 3, there is provided a data storage method, which includes the following steps:
step 301, performing file compression processing on the removed component files and the attribute description files according to a preset compression mode, so as to obtain compressed component files and compressed attribute description files.
The file can be compressed to a preset compression size by adopting a preset compression mode, for example, the file can be compressed to one tenth of the original file, so that the space is saved, and the transmission is convenient.
Optionally, the preset compression size may be default by the system, may be set by a technician, or may be selected randomly, where the specific preset compression size is not limited.
And 302, storing the compressed component file and the compressed attribute description file as target BIM model files.
In the embodiment of the application, the component file may be a GLB file, the attribute description file may be a JSON file, and the GLB file may be a binary storage manner, which has the advantages of small volume and high loading efficiency.
In this embodiment, the components files and the attribute description files after being removed are compressed and stored, so that the purposes of reducing the occupied memory space and improving the file transmission efficiency can be further achieved
In addition, in order to facilitate the identification and categorization of the components, component identifiers may be added to the file to facilitate the identification of the corresponding components, and in one embodiment of the present application, as shown in fig. 4, a method for adding component identifiers is provided, which includes the steps of:
step 401, obtaining a component identifier corresponding to a target component.
The component identifier may be an identifier determined according to information of the component, or an identifier added by a technician, or an identifier automatically generated by a system, and in this embodiment of the present application, may be an identifier determined according to information of the component.
Step 402, adding the component identifier to the target property 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.
The object attribute file includes an attribute description file, a component identifier is added to the object attribute file of the object component, that is, the attribute description file of the object component is added to the component identifier of the object component, and the component identifier is added to the component files of other components with the same type as the object component, so that in the subsequent operation, due to the existence of the same component identifier, the corresponding component file can be found through the attribute description file, thereby facilitating the identification of the corresponding component.
As described above, in one embodiment of the present application, as shown in fig. 5, there is provided a method of acquiring a component identifier, the method including the steps of:
step 501, a component code and a component name corresponding to a target component are obtained, wherein the component code comprises a component ID and a component geometric information character set.
Wherein, the component ID refers to a 16-bit random unique code corresponding to each component.
The component geometric information character set can firstly determine the geometric information data of the component through the corresponding accessor, bufferview, buffer information parameters of the component, and then convert the geometric information data into the component geometric information character set through a preset program.
The component names of the unicode coding forms can be determined according to the index numbers of the components, and then converted into Chinese character forms through a preset program, so that the identification of subsequent users is facilitated.
Step 502, performing splicing processing on the component codes and the component names to obtain component identifiers.
It will be appreciated that the component identifier includes a component code and a component name.
In one possible implementation manner, after the component codes and the component names are spliced, the spliced component codes and component names can be subjected to character group form conversion processing through a preset program, so that component identifiers in the character group form are obtained, memory occupation is further reduced, and processing efficiency of the model is improved.
In addition, in one embodiment of the present application, there is also provided a method of displaying a target BIM model, the method including: and if a display instruction aiming at the target BIM model is received, displaying the target BIM model according to the target BIM model file.
And searching a candidate component file comprising the component identifier in the display process of the target component, and rendering a display picture of the target component according to the candidate component file.
In one possible implementation manner, when a user has a requirement of displaying a target BIM model, a display instruction can be sent to a server through a terminal, the server receives the display instruction aiming at the target BIM model, and then returns a corresponding instruction, so that the terminal displays the target BIM model according to a target BIM model file, and as the same repeated components are removed, excessive redundant components are not needed to be loaded at the moment, the speed of displaying the target BIM model is greatly improved, and meanwhile, the memory consumption is reduced.
In one embodiment of the present application, as shown in fig. 6, there is provided a method of model file processing, the method comprising the steps of:
step 601, obtaining an initial BIM model file corresponding to the power grid equipment.
Step 602, for each component, acquiring spatial characteristic data of the component according to the attribute description file of the component.
Step 603, comparing the spatial feature data of the members with the spatial feature data of other members in each member.
Step 604, if the spatial feature data of the component is the same as the spatial feature data of other components, determining that the component is the target component.
Step 605, eliminating the target component file corresponding to the target component from the component files to obtain the eliminated component file.
And 606, respectively carrying out file compression processing on the removed component files and the attribute description files according to a preset compression mode to obtain compressed component files and compressed attribute description files.
Step 607, storing the compressed component file and the compressed attribute description file as a target BIM model file.
Step 608, if a display instruction for the target BIM model is received, displaying the target BIM model according to the target BIM model file.
In addition, in an embodiment of the present application, as shown in fig. 7, another flow chart of model file processing is provided, so that a simple and exemplary description is made on a model file processing method, firstly, the BIM model is parsed, all components in the BIM model are identified, then, a comparison is performed on the components, only one component remains, the rest components are removed, and finally, the files after the removal processing are compressed and stored.
With continued reference to fig. 8, in an embodiment of the present application, a comparison between the before and after model file processing of the BIM model is shown, and it can be seen that, before the processing, the components include five components including main transformer 1, main transformer 2, main transformer 3, reactor 4 and reactor 5, and the five components correspond to the five component files, but because main transformer 1, main transformer 2 and main transformer 3 are identical repeated components, reactor 4 and reactor 5 are identical repeated components, in the processing of the model file, the identical repeated component files are removed, which is equivalent to removing the identical repeated components, only one component file is reserved for main transformer 1 and main transformer 3, only one component file is reserved for main transformer 1 and reactor 4 and reactor 5, and finally, the five components are reduced to two components, thereby reducing the occupied memory.
In addition, please refer to fig. 9, which is a schematic flow chart of the processing of the component files and the attribute description files in an embodiment of the present application, it can be seen that an electric BIM model file in RVT format has an original size of 270M, and is divided into the component files and the attribute description files, and the model files are processed and compressed, so that a light file size of 9M is obtained, which greatly reduces the memory consumption.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a model file processing device for realizing the model file processing method. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation in the embodiment of one or more model file processing devices provided below may refer to the limitation of the model file processing method hereinabove, and will not be described herein.
In one embodiment of the present application, as shown in fig. 10, there is provided a model file processing apparatus 1000, including: an acquisition module 1001, a determination module 1002, and a culling module 1003, wherein:
the obtaining module 1001 is configured to obtain an initial BIM model file corresponding to the power grid device, where the initial BIM model file includes a component file and an attribute description file of each component in the power grid device.
A determining module 1002, configured to determine, according to each attribute description file, a target member of each member that is the same as other member types.
And a rejecting module 1003, configured to reject the target component file corresponding to the target component from the component files, to obtain a rejected component file.
The removed component files are used for forming target BIM model files with the attribute description files, so that the target BIM model corresponding to the target BIM model files takes component files of other components as target component files in the display process.
In one embodiment, the determining module 1002 is specifically configured to: for each component, acquiring spatial feature data of the component according to the attribute description file of the component; consistency comparison is carried out on the spatial characteristic data of the components and the spatial characteristic data of other components in each component; if the spatial feature data of the component is the same as the spatial feature data of other components, the component is determined to be the target component.
Referring to fig. 11, another model file processing apparatus 1100 provided by an embodiment of the present application is shown, where the model file processing apparatus 1100 includes, in addition to the respective modules included in the model file processing apparatus 1000, a storage module 1004, an adding module 1005, and a presentation module 1006.
In one embodiment, the storage module 1004 is configured to perform file compression processing on the removed component files and each attribute description file according to a preset compression manner, so as to obtain compressed component files and compressed attribute description files; and storing the compressed component file and the compressed attribute description file as target BIM model files.
In one embodiment, the adding module 1005 is configured to obtain a component identifier corresponding to the target component; the component identification is added to a target property file of the target component, and the component identification is added to a component file of other components of the same type as the target component.
In one embodiment, the adding module 1005 is specifically configured to: acquiring a component code and a component name corresponding to a target component, wherein the component code comprises a component ID and a component geometric information character set; and performing splicing treatment on the component codes and the component names to obtain the component identifiers.
In one embodiment, the display module 1006 is configured to display the target BIM model according to the target BIM model file if a display instruction for the target BIM model is received; and searching a candidate component file comprising the component identifier in the display process of the target component, and rendering a display picture of the target component according to the candidate component file.
The respective modules in the above model file processing apparatus may be implemented in whole or in part by software, hardware, or a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a server, and the internal structure of which may be as shown in fig. 12. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein 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, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is for storing data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a model file processing method.
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure thereof may be as shown in fig. 13. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein 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 and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a model file processing method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structures shown in fig. 12 or 13 are merely block diagrams of portions of structures related to the aspects of the present application and are not intended to limit the computer devices to which the aspects of the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or may have a different arrangement of components.
In one embodiment, an apparatus is provided that includes a memory having a computer program stored therein and a processor that when executing the computer program performs the steps of:
acquiring an initial BIM model file corresponding to power grid equipment, wherein the initial BIM model file comprises component files and attribute description files of all components in the power grid equipment; determining target components with the same types as other components in the components according to the attribute description files; removing target component files corresponding to the target components from the component files to obtain removed component files; the removed component files are used for forming target BIM model files with the attribute description files, so that the target BIM model corresponding to the target BIM model files takes component files of other components as target component files in the display process.
In one embodiment, the processor, when executing the computer program, performs the steps of: according to a preset compression mode, respectively carrying out file compression processing on the removed component files and the attribute description files to obtain compressed component files and compressed attribute description files; and storing the compressed component file and the compressed attribute description file as target BIM model files.
In one embodiment, the processor, when executing the computer program, performs the steps of: for each component, acquiring spatial feature data of the component according to the attribute description file of the component; consistency comparison is carried out on the spatial characteristic data of the components and the spatial characteristic data of other components in each component; if the spatial feature data of the component is the same as the spatial feature data of other components, the component is determined to be the target component.
In one embodiment, the processor, when executing the computer program, performs the steps of: acquiring a component identifier corresponding to a target component; the component identification is added to a target property file of the target component, and the component identification is added to a component file of other components of the same type as the target component.
In one embodiment, the processor, when executing the computer program, performs the steps of: if a display instruction aiming at the target BIM model is received, displaying the target BIM model according to the target BIM model file; and searching a candidate component file comprising the component identifier in the display process of the target component, and rendering a display picture of the target component according to the candidate component file.
In one embodiment, the processor, when executing the computer program, performs the steps of: acquiring a component code and a component name corresponding to a target component, wherein the component code comprises a component ID and a component geometric information character set; and performing splicing treatment on the component codes and the component names to obtain the component identifiers.
In one embodiment, a storage medium having a computer program stored thereon, the computer program when executed by a processor performing the steps of:
acquiring an initial BIM model file corresponding to power grid equipment, wherein the initial BIM model file comprises component files and attribute description files of all components in the power grid equipment; determining target components with the same types as other components in the components according to the attribute description files; removing target component files corresponding to the target components from the component files to obtain removed component files; the removed component files are used for forming target BIM model files with the attribute description files, so that the target BIM model corresponding to the target BIM model files takes component files of other components as target component files in the display process.
In one embodiment, the computer program when executed by a processor performs the steps of: according to a preset compression mode, respectively carrying out file compression processing on the removed component files and the attribute description files to obtain compressed component files and compressed attribute description files; and storing the compressed component file and the compressed attribute description file as target BIM model files.
In one embodiment, the computer program when executed by a processor performs the steps of: for each component, acquiring spatial feature data of the component according to the attribute description file of the component; consistency comparison is carried out on the spatial characteristic data of the components and the spatial characteristic data of other components in each component; if the spatial feature data of the component is the same as the spatial feature data of other components, the component is determined to be the target component.
In one embodiment, the computer program when executed by a processor performs the steps of: acquiring a component identifier corresponding to a target component; the component identification is added to a target property file of the target component, and the component identification is added to a component file of other components of the same type as the target component.
In one embodiment, the computer program when executed by a processor performs the steps of: if a display instruction aiming at the target BIM model is received, displaying the target BIM model according to the target BIM model file; and searching a candidate component file comprising the component identifier in the display process of the target component, and rendering a display picture of the target component according to the candidate component file.
In one embodiment, the computer program when executed by a processor performs the steps of: acquiring a component code and a component name corresponding to a target component, wherein the component code comprises a component ID and a component geometric information character set; and performing splicing treatment on the component codes and the component names to obtain the component identifiers.
In one embodiment, a program product is provided comprising a computer program which, when executed by a processor, performs the steps of:
acquiring an initial BIM model file corresponding to power grid equipment, wherein the initial BIM model file comprises component files and attribute description files of all components in the power grid equipment; determining target components with the same types as other components in the components according to the attribute description files; removing target component files corresponding to the target components from the component files to obtain removed component files; the removed component files are used for forming target BIM model files with the attribute description files, so that the target BIM model corresponding to the target BIM model files takes component files of other components as target component files in the display process.
In one embodiment, the computer program when executed by a processor performs the steps of: according to a preset compression mode, respectively carrying out file compression processing on the removed component files and the attribute description files to obtain compressed component files and compressed attribute description files; and storing the compressed component file and the compressed attribute description file as target BIM model files.
In one embodiment, the computer program when executed by a processor performs the steps of: for each component, acquiring spatial feature data of the component according to the attribute description file of the component; consistency comparison is carried out on the spatial characteristic data of the components and the spatial characteristic data of other components in each component; if the spatial feature data of the component is the same as the spatial feature data of other components, the component is determined to be the target component.
In one embodiment, the computer program when executed by a processor performs the steps of: acquiring a component identifier corresponding to a target component; the component identification is added to a target property file of the target component, and the component identification is added to a component file of other components of the same type as the target component.
In one embodiment, the computer program when executed by a processor performs the steps of: if a display instruction aiming at the target BIM model is received, displaying the target BIM model according to the target BIM model file; and searching a candidate component file comprising the component identifier in the display process of the target component, and rendering a display picture of the target component according to the candidate component file.
In one embodiment, the computer program when executed by a processor performs the steps of: acquiring a component code and a component name corresponding to a target component, wherein the component code comprises a component ID and a component geometric information character set; and performing splicing treatment on the component codes and the component names to obtain the component identifiers.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the various embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the various embodiments provided herein may include at least one of relational databases and non-relational databases. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic units, quantum computing-based data processing logic units, etc., without being limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples only represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the present application. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application shall be subject to the appended claims.

Claims (10)

1. A model file processing method, the method comprising:
acquiring an initial BIM model file corresponding to power grid equipment, wherein the initial BIM model file comprises component files and attribute description files of all components in the power grid equipment;
determining target components with the same type as other components in the components according to the attribute description files;
Removing the target component files corresponding to the target components from the component files to obtain removed component files;
the removed component files are used for forming a target BIM model file with each attribute description file, 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.
2. The method according to claim 1, wherein the method further comprises:
respectively carrying out file compression processing on the removed component files and the attribute description files according to a preset compression mode to obtain compressed component files and compressed attribute description files;
and storing the compressed component file and the compressed attribute description file as the target BIM model file.
3. The method of claim 1, wherein determining a target member of each of the members that is the same type as the other members based on each of the attribute description files comprises:
for each of the components, acquiring spatial feature data of the component according to the attribute description file of the component;
Consistency comparison is carried out on the spatial characteristic data of the components and the spatial characteristic data of other components in each component;
and if the spatial characteristic data of the component is the same as the spatial characteristic data of other components, determining that the component is the target component.
4. The method according to claim 1, wherein the method further comprises:
acquiring a component identifier corresponding to the target component;
the component identifier is added to a target property file of the target component, and the component identifier is added to a component file of other components of the same type as the target component.
5. The method according to claim 4, wherein the method further comprises:
if a display instruction aiming at the target BIM model is received, displaying the target BIM model according to the target BIM model file;
and searching a candidate component file comprising the component identifier in the display process of the target component, and rendering a display picture of the target component according to the candidate component file.
6. The method of claim 4, wherein the obtaining the component identifier corresponding to the target component includes:
Acquiring a component code and a component name corresponding to the target component, wherein the component code comprises a component ID and a component geometric information character set;
and performing splicing treatment on the component codes and the component names to obtain the component identifiers.
7. A model file processing apparatus, characterized in that the apparatus comprises:
the acquisition module is used for acquiring an initial BIM model file corresponding to the power grid equipment, wherein the initial BIM model file comprises component files and attribute description files of all components in the power grid equipment;
a determining module, configured to determine, according to each of the attribute description files, a target member of each of the members that is the same as other members in type;
the rejecting module is used for rejecting the target component files corresponding to the target components from the component files to obtain rejected component files;
the removed component files are used for forming a target BIM model file with each attribute description file, 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.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 6 when the computer program is executed.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
CN202211726807.4A 2022-12-30 2022-12-30 Model file processing method, device, equipment, storage medium and program product Pending CN116029026A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211726807.4A CN116029026A (en) 2022-12-30 2022-12-30 Model file processing method, device, equipment, storage medium and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211726807.4A CN116029026A (en) 2022-12-30 2022-12-30 Model file processing method, device, equipment, storage medium and program product

Publications (1)

Publication Number Publication Date
CN116029026A true CN116029026A (en) 2023-04-28

Family

ID=86073596

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211726807.4A Pending CN116029026A (en) 2022-12-30 2022-12-30 Model file processing method, device, equipment, storage medium and program product

Country Status (1)

Country Link
CN (1) CN116029026A (en)

Similar Documents

Publication Publication Date Title
WO2023226371A1 (en) Target object interactive reproduction control method and apparatus, device and storage medium
CN115795000A (en) Joint similarity algorithm comparison-based enclosure identification method and device
CN114049463A (en) Binary tree data gridding and grid point data obtaining method and device
CN117332766A (en) Flow chart generation method, device, computer equipment and storage medium
CN116842012A (en) Method, device, equipment and storage medium for storing Redis cluster in fragments
CN116305895A (en) Product model generation method, device, computer equipment and storage medium
CN116303657A (en) Group image generation method, group image generation device, computer device, and storage medium
CN116029026A (en) Model file processing method, device, equipment, storage medium and program product
CN115495452A (en) Data processing method, data processing device, computer equipment and storage medium
CN114327395A (en) Webpage design method, device, computer equipment, storage medium and product
CN116882408B (en) Construction method and device of transformer graph model, computer equipment and storage medium
CN117435651A (en) Test data processing method, device, computer equipment and storage medium
CN116910115A (en) Group query method, device, computer equipment and storage medium
CN114647630A (en) File synchronization method, information generation method, file synchronization device, information generation device, computer equipment and storage medium
CN116150840A (en) Model generation method, device, apparatus, storage medium, and program product
CN118069044A (en) Chip data storage method, device, equipment, medium and product
CN116150100A (en) Data processing method, device, system and computer equipment
CN117612192A (en) Electronic drawing information identification method, system, electronic equipment and storage medium
CN118153552A (en) Data analysis method, device, computer equipment and storage medium
CN116881116A (en) Interface test method, apparatus, computer device, storage medium, and program product
CN113792037A (en) Method and apparatus for determining image information
CN112802134A (en) Coding method and device of three-dimensional model and terminal
CN117435589A (en) Data transfer method, device, computer equipment and storage medium
CN114201464A (en) Data display method and device, computer equipment and storage medium
CN117667999A (en) Data pushing method, device, computer equipment and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination