A grid GIM file digital-analog separation web page lightweight display method

CN117493723BActive Publication Date: 2026-08-21TIANJIN ELECTRIC POWER DESIGN INST +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311238494.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-25
Publication Date
2026-08-21
Estimated Expiration
2043-09-25

AI Technical Summary

Technical Problem

高校学者也对GIM文件网页端轻量化应用进行了研究,通过选取中间转换格式实现网页端轻量化展示,但是属性和模型的分离和重组效果还需进一步优化,以及频繁出现子构建丢失和属性丢失的情况

Benefits of technology

[0019]1.本发明提供了完整的数据库架构,唯一的标识编码,可快速准确展示三维模型的几何信息和物理信息;

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117493723B_ABST
    Figure CN117493723B_ABST
Patent Text Reader

Abstract

The application discloses a kind of power grid GIM file digital-analog separation web page lightweight display method.The present application is carried out according to the following steps: first step: data block creation, second step: model data self-repair, third step: GIM analysis content nesting relationship, fourth step: fast model geometry information and attribute information separation, fifth step: model reorganization and conversion, sixth step: the penetration and interaction of geometry information and physical information, seventh step: model fast loading optimization method, eighth step: web page lightweight display.The present application can realize that GIM file is lightweight in web page and can greatly improve the level of GIM file extension application.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of high-tech service industries, and more specifically, to a lightweight web-based display method for separating digital and analog data in power grid GIM files. Background Technology

[0002] In the power design industry, especially for State Grid Corporation projects, 3D design deliverables are required to be transferred in the form of GIM files. However, clean versions of 3D design software do not support viewing or reading this file format, and other open-source methods cannot open the model either, rendering GIM files unusable during design, construction, and operation and maintenance processes.

[0003] Currently, 3D design software platforms, represented by Bochao Software and Bentley Software, involve secondary development on existing 3D design platforms to meet the requirements for GIM file delivery. However, the high cost of purchasing these software companies hinders the extended application of GIM deliverables by project stakeholders.

[0004] With the continuous development of web-based development technologies and the constant improvement of web-based 3D engines, lightweight web-based display of GIM files based on open source has become possible. Software vendors have developed client-side (C / S) applications for lightweight web-based GIM file displays, but the maturity of these products remains to be verified. University scholars have also researched lightweight web-based applications of GIM files, achieving lightweight web-based display by selecting intermediate conversion formats; however, the separation and recombination of attributes and models requires further optimization, and issues such as frequent loss of sub-constructions and attributes persist. Summary of the Invention

[0005] The technical problem to be solved by the present invention is to overcome the shortcomings of the prior art and provide a lightweight web-based display method for separating digital and analog data in power grid GIM files.

[0006] This invention provides a lightweight web-based display method for separating digital and analog data in power grid GIM files, achieved through the following technical solution.

[0007] Step 1 - Data Block Creation. To achieve rapid separation of the GIM file's digital model, the data needs to be extracted and placed in a fixed location, with attributes and models automatically generating unique identifiers.

[0008] The data primarily refers to the physical and geometric information of the model contained in the GIM file. The physical information data blocks include: engineering data (including basic engineering attributes such as project name, construction content, and investment details); electrical equipment (categorized by type, including main transformers, circuit breakers, combined electrical equipment, voltage transformers, current transformers, neutral point equipment, capacitors, reactors, etc.); structural physical information data blocks; building physical information data blocks; hydraulic, HVAC, and equipment physical information data blocks; system tree data blocks; and standard data blocks (physical information of typical model sub-components and typical model physical information data blocks). The geometric information data blocks include standard data blocks (geometric information of typical model sub-components) and model geometric information data blocks. All data in these blocks is automatically generated with unique identifiers by the program.

[0009] Step 2 - Model Data Self-Repair. To address the issue of missing sub-components and attributes in the GIM file model, a self-repair technique for the model and data is incorporated during the parsing process. In the standard data block from Step 1, the physical and geometric information of each device and its sub-devices, including the number of sub-components, is loaded. During parsing, the reconstructed model undergoes a secondary check based on the information in the standard data block, automatically identifying missing content and confirming whether to automatically repair any missing information in the device model. If no information is lost, the process automatically proceeds to the correction of the next model. This method ensures the integrity of the parsed device model and attributes.

[0010] Step 3 - GIM File Parsing: Nested Relationships. According to the State Grid enterprise standards, a GIM file contains four folders: CBM, DEV, PHM, and MOD. The CBM folder contains the engineering model (stored in CBM format), attribute information (stored in FAM format), and IFC files. The DEV folder contains the physical model (stored in DEV format), attribute information (stored in FAM format), and the logical model (stored in SCH format). The PHM folder contains the combined model (stored in PHM format), and the MOD folder contains the geometric model (stored in MOD and STL formats). IFC and STL files are model files that cannot be drawn using basic primitives. The CBM file calls sibling or lower-level physical model DEV files. The CBM also contains project.cbm, level 1 (station-wide), level 2 (system), level 3 (subsystem), level 4 (equipment), and level 5 (component) files. The GIM file parsing process assembles the files layer by layer from bottom to top according to the hierarchical relationships contained within the CBM.

[0011] Step 4 - Rapid Separation of Geometric and Attribute Information from the Model. Following the calling relationships and device hierarchy derived in Step 3, a Python program iterates through all sub-files of the GIM file. First, the project information is extracted and written into the project data block created in Step 1. Next, the electrical equipment attribute information and system tree information are written into the data block created in Step 1. Then, the attribute information from the IFC file is read and written into the data block created in Step 1. A unique identifier is automatically generated for each project, device, or component within the data block. These steps complete the separation and storage of digital information from the GIM file.

[0012] According to the State Grid enterprise standard for GIM file interaction, Python is also used to traverse all sub-files of the GIM file, read out the data related to the model geometry information according to the specified rules, and write it into the model geometry data block mentioned in the first step.

[0013] Step 5 - Model Restructuring and Conversion. IFC and STL formats in GIM files can be converted using the IFCLoder and STLLoder libraries in three.js. Both the model and attribute information use the same identifier encoding as the corresponding markers.

[0014] In addition to the two formats mentioned above, GIM files also include the reconstruction of electrical equipment models. All geometric information of the electrical equipment is stored in a database. First, Python is used to convert JSON format to RVT model format, enabling offline reconstruction of the electrical equipment based on Revit. Then, the Revit API is used to convert the geometric information into GLTF format files. By using WebGL technology, the advanced framework Three.js, and its GLTFLoder library functions, 3D models can be quickly modeled on a web page, and lightweight 3D models can be viewed.

[0015] Step 6 – Integration and Interaction of Geometric and Physical Information. In Step 4, the geometric and physical information of the model in the GIM file was automatically generated with unified identifiers for the model's basic attributes, engineering attributes, system tree, and geometric attributes, and these identifiers are uniquely associated, allowing the lightweight model to be viewed in a browser.

[0016] Step 7 – Optimization Method for Rapid Model Loading. A GIM file contains models of various disciplines within a project. The parsing process involves rapidly disassembling and reassembling the model, primarily focusing on the assembly of electrical equipment. Therefore, to quickly load the model on the web interface, a model simplification principle is set based on the number of sub-components in the electrical equipment model. For example, if the main transformer consists of 15 sub-components, and each sub-component has 5-20 sub-sub-components, then using a model with more than 10 sub-components or 10 sub-sub-components reduces the number of triangles required for reassembly, thus optimizing the model. By setting different numbers of triangles for different electrical equipment models, a lightweight model can be quickly loaded for the web interface.

[0017] Step 8 – Lightweight Web-based Display. Using WebGL technology and the advanced Three.js framework, lightweight web-based viewing of GIM files is achieved, including engineering information, model geometry and attribute information, and system tree information. Viewing operations include basic rotation, sectioning, measurement, and panning. An open-source GIM viewing solution with independent intellectual property rights has been developed.

[0018] Compared with the prior art, the beneficial effects of the present invention are:

[0019] 1. This invention provides a complete database architecture and unique identification coding, which can quickly and accurately display the geometric and physical information of 3D models;

[0020] 2. This invention provides a method for separating digital and physical models, ensuring complete isolation between the geometric and physical information of the model, while maintaining close connection through identification and coding;

[0021] 3. This invention provides a secondary detection technology for model reconstruction, which solves the problem of loss of geometric and physical information in the model;

[0022] 4. The model reconstruction provided by this invention utilizes Revit's offline mode, which greatly reduces the computational pressure of model reconstruction on the web page and reduces the processing power of computing and web pages;

[0023] 5. This invention achieves reorganization optimization of the model, thereby improving loading speed;

[0024] Through the aforementioned technological advancements, this invention enables lightweight viewing of GIM files on web pages, significantly improving the level of extended applications for GIM files. Attached Figure Description

[0025] Figure 1 A flowchart for viewing lightweight GIM files on a web browser. Detailed Implementation

[0026] To better understand the above-mentioned objects, features, and advantages of the present invention, the present invention will be described in detail below with reference to the accompanying drawings and specific embodiments. It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. Many specific details are set forth in the following description to provide a thorough understanding of the present invention. The described embodiments are merely some, not all, of the embodiments of the present invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without inventive effort are within the scope of protection of the present invention. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this invention pertains. The terminology used herein is for the purpose of describing specific embodiments only and is not intended to limit the present invention.

[0027] Step 1 - Data Block Creation. To achieve rapid separation of the model and data in the GIM file, the data needs to be extracted and placed in a fixed location, with attributes and models automatically generating unique identifiers. The data mainly refers to the physical and geometric information of the model contained in the GIM file. Physical information data blocks include: engineering data (including basic engineering attributes such as project name, construction content, and investment), electrical equipment (categorized by type, including main transformers, circuit breakers, combined electrical equipment, voltage transformers, current transformers, neutral point equipment, capacitors, reactors, etc.), structural physical information, building physical information, hydraulic and HVAC equipment physical information, system tree data blocks, and standard data blocks (physical information of typical sub-components and typical physical information of the model). Geometric information data blocks include standard data blocks (geometric information of typical sub-components) and model geometric information. All data in the above data blocks are automatically generated with unique identifiers by the program.

[0028] Step 2 - Model Data Self-Repair. To address the issue of missing sub-components and attributes in the GIM file model, a self-repair technique for the model and data is incorporated during the parsing process. In the standard data block from Step 1, the physical and geometric information of each device and its sub-devices, including the number of sub-components, is loaded. During parsing, the reconstructed model undergoes a secondary check based on the information in the standard data block, automatically identifying missing content and confirming whether to automatically repair any missing information in the device model. If no information is lost, the process automatically proceeds to the correction of the next model. This method ensures the integrity of the parsed device model and attributes.

[0029] Step 3 - GIM File Parsing: Nested Relationships. According to the State Grid enterprise standards, a GIM file contains four folders: CBM, DEV, PHM, and MOD. The CBM folder contains the engineering model (stored in CBM format), attribute information (stored in FAM format), and IFC files. The DEV folder contains the physical model (stored in DEV format), attribute information (stored in FAM format), and the logical model (stored in SCH format). The PHM folder contains the combined model (stored in PHM format), and the MOD folder contains the geometric model (stored in MOD and STL formats). IFC and STL files are model files that cannot be drawn using basic primitives. The CBM file calls sibling or lower-level physical model DEV files. The CBM also contains project.cbm, level 1 (station-wide), level 2 (system), level 3 (subsystem), level 4 (equipment), and level 5 (component) files. The GIM file parsing process assembles the files layer by layer from bottom to top according to the hierarchical relationships contained within the CBM.

[0030] Step 4 - Rapid Separation of Geometric and Attribute Information from the Model. Following the calling relationships and device hierarchy derived in Step 3, a Python program iterates through all sub-files of the GIM file. First, the project information is extracted and written into the project data block created in Step 1. Next, the electrical equipment attribute information and system tree information are written into the data block created in Step 1. Then, the attribute information from the IFC file is read and written into the data block created in Step 1. A unique identifier is automatically generated for each project, device, or component within the data block. These steps complete the separation and storage of digital information from the GIM file.

[0031] According to the State Grid enterprise standard for GIM file interaction, Python is also used to traverse all sub-files of the GIM file, read out the data related to the model geometry information according to the specified rules, and write it into the model geometry data block mentioned in the first step.

[0032] Step 5 - Model Restructuring and Conversion. IFC and STL formats in GIM files can be converted using the IFCLoder and STLLoder libraries in three.js. Both the model and attribute information use the same identifier encoding as the corresponding markers.

[0033] In addition to the two formats mentioned above, GIM files also include the reconstruction of electrical equipment models. All geometric information of the electrical equipment is stored in a database. First, Python is used to convert JSON format to RVT model format, enabling offline reconstruction of the electrical equipment based on Revit. Then, the Revit API is used to convert the geometric information into GLTF format files. By using WebGL technology, the advanced framework Three.js, and its GLTFLoder library functions, 3D models can be quickly modeled on a web page, and lightweight 3D models can be viewed.

[0034] Step 6 – Integration and Interaction of Geometric and Physical Information. In Step 4, the geometric and physical information of the model in the GIM file was automatically generated with unified identifiers for the model's basic attributes, engineering attributes, system tree, and geometric attributes, and these identifiers are uniquely associated, allowing the lightweight model to be viewed in a browser.

[0035] Step 7 – Optimization Method for Rapid Model Loading. A GIM file contains models of various disciplines within a project. The parsing process involves rapidly disassembling and reassembling the model, primarily focusing on the assembly of electrical equipment. Therefore, to quickly load the model on the web interface, a model simplification principle is set based on the number of sub-components in the electrical equipment model. For example, if the main transformer consists of 15 sub-components, and each sub-component has 5-20 sub-sub-components, then using a model with more than 10 sub-components or 10 sub-sub-components reduces the number of triangles required for reassembly, thus optimizing the model. By setting different numbers of triangles for different electrical equipment models, a lightweight model can be quickly loaded for the web interface.

[0036] Step 8 – Lightweight Web-based Display. Using WebGL technology and the advanced Three.js framework, lightweight web-based viewing of GIM files is achieved, including engineering information, model geometry and attribute information, and system tree information. Viewing operations include basic rotation, sectioning, measurement, and panning. An open-source GIM viewing solution with independent intellectual property rights has been developed.

[0037] The above description is only a preferred embodiment of the present invention. It should be noted that, for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.

Claims

1. A lightweight web-based display method for separating digital and analog data in power grid GIM files, characterized in that... Follow these steps: Step 1: Data block creation, extracting data and placing it in a fixed location, with attributes and models automatically generating unique identifiers; Data refers to the physical and geometric information of the model contained in the GIM file. The physical information data blocks include: engineering data, physical information data blocks, electrical equipment, structural physical information data blocks, building physical information data blocks, hydraulic, heating, ventilation and air conditioning equipment physical information data blocks, system tree data blocks, and standard data blocks; the geometric information data blocks include standard data blocks and model geometric information data blocks; the data in the above data blocks are all automatically generated with unique identifiers by the program. Step 2: Model data self-repair. In the standard data block of Step 1, the physical and geometric information of each device and its sub-devices, including the number of sub-components, is loaded. During the parsing process, the reconstructed model will be checked again based on the information in the standard data block. At the same time, missing content will be automatically popped up, and it will be confirmed whether to automatically repair the missing content of the model. If no information is lost, the model will automatically proceed to the correction of the next model. Step 3: GIM file parsing content nesting relationship. According to the State Grid enterprise standard, a GIM file contains four folders: CBM, DEV, PHM, and MOD. The CBM folder contains the engineering model stored in CBM format, attribute information stored in FAM format, and IFC files. The DEV folder contains the physical model stored in Dev format, attribute information stored in FAM format, and the logical model stored in Sch format. The PHM folder contains the combined model stored in PHM format. The MOD folder contains the geometric model stored in MOD and STL formats. IFC and STL files are model files that cannot be drawn using basic primitives. The CBM file calls the DEV file, which is a sibling or lower-level physical model. The CBM also contains project.cbm, station level 1, system level 2, subsystem level 3, equipment level 4, and component level 5 files. The GIM file parsing process assembles the files layer by layer from bottom to top according to the hierarchical relationship contained in the CBM. Step 4: Separate geometric and attribute information of the rapid model. Based on the calling relationships and device hierarchy obtained in Step 3, use a Python program to traverse all sub-files of the GIM file. First, extract the project information and write it into the project data block created in Step 1. Second, write the electrical equipment attribute information and system tree information into the data block created in Step 1. Then, read the attribute information of the IFC file and write the information into the data block created in Step 1. In this process, a unique identifier code is automatically generated for each project, device, or component in the data block. The above steps complete the separation and storage of digital information from the GIM file into the database. Step 5: Model Reorganization and Conversion. The IFC and STL formats in the GIM file are converted by calling the IFCLoder and STLLoder libraries of three.js. The model and attribute information use the same identifier encoding as the corresponding mark of the model and attribute information. Step 6: Integration and interaction of geometric and physical information. In Step 4, the geometric and physical information of the model in the GIM file has been automatically generated and uniquely associated with the unified identifier codes of the model's basic attributes, engineering attributes, system tree, and geometric attributes, which can be viewed in the browser. Step 7: Model fast loading optimization method. The number of sub-constructs of the electrical equipment model is reduced according to the principle of model simplification. The main transformer is composed of 15 sub-components, and each sub-component is composed of 5-20 sub-sub-components. This model reduces the number of triangular facets required during reassembly, thereby optimizing the model. Step 8: Lightweight display on the web page. By using WebGL technology and the advanced framework Three.js, the GIM file can be viewed in a lightweight manner on the web page, including engineering information, model geometry information and attribute information, and system tree information.

2. The lightweight web-based display method for separating digital and analog data in power grid GIM files according to claim 1, characterized in that, in the first step, the engineering data includes the basic attributes of the project, such as project name, construction content, and investment information; electrical equipment is categorized into main transformers, circuit breakers, combined electrical equipment, voltage transformers, current transformers, neutral point equipment, capacitors, and reactors; the standard data block includes physical information of typical sub-components of the model and typical physical information data blocks of the model; the standard data block is the geometric information of typical sub-components of the model.

3. The lightweight web-based display method for separating digital and analog data in power grid GIM files according to claim 1, characterized in that, In the fifth step, in addition to the IFC and STL formats, the GIM file also includes the reorganization of the electrical equipment model. All the geometric information of the electrical equipment is stored in the database. First, the conversion from JSON format to RVT model format is completed using Python, realizing the offline reorganization of electrical equipment based on Revit. Then, the geometric information is converted into GLTF format files using the Revit API. By using WebGL technology, the advanced framework Three.js and its GLTFLoder library functions, the 3D model can be quickly modeled on the web page, and the lightweight 3D model can be viewed.

4. The lightweight web-based display method for separating digital and analog data in power grid GIM files according to claim 1, characterized in that, In step eight, the GIM file can be viewed in a lightweight manner on the web, and the viewing operations include basic rotation, sectioning, measurement, and panning.

Citation Information

Patent Citations

  • Method for converting grid information model (GIM) into an FBX three-dimensional model and storing attributes

    CN113221297A

  • Portable communication device with rotating display

    US20070161396A1