Preprocessing method and system for converting IFC to GIM of prefabricated substation structure
By converting the CSG primitive type in the IFC file to the extruded body primitive type and converting it into a MOD file, the complexity problem of converting IFC to GIM of the prefabricated substation structure is solved, the cost and complexity of software development are reduced, and a more complete system is achieved. Efficient design information sharing.
Patent Information
- Application Number
- CN202210017513.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-07
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2042-01-07
AI Technical Summary
In the three-dimensional design of prefabricated substations, it is difficult to effectively convert IFC format files into GIM format with existing technology, especially when there is a lack of IFC file parser in some operation and maintenance procedures, resulting in the analysis and analysis of design information. Complexity increases.
Provides a preprocessing method and system for converting IFC to GIM for prefabricated substation structures. By reading the IFC file, converting the IFC CSG primitive type into the extruded body primitive type IFCEXTRUDEDAREASOLID, and converting it into a MOD file, simplifying subsequent File format conversion process.
Significantly reduces the complexity of converting IFC files to GIM, and reduces the cost and complexity of software development in the process of sharing and applying substation engineering design information.
Smart Images

Figure CN114528689B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of substation engineering, and in particular to a method for preprocessing an IFC file of a prefabricated substation engineering structure professional three-dimensional design into a GIM file, and in particular to a preprocessing method and system for converting an IFC file into a GIM file of a prefabricated substation structure. Background Art
[0002] State Grid Corporation of China proposed the GIM file format to store the three-dimensional design model of the substation. Currently, GIM is a compressed package, which contains files in CBM, DEV, PHM, MOD, STL, FAM and IFC formats. The structural BIM three-dimensional design of the prefabricated substation is generally exported in IFC format, so when parsing the GIM file, it is usually necessary to reference the IFC file parser. Because the IFC format parser is relatively complex, and in some specific cases, such as some device-level programs for operation and maintenance, which only have parsing programs for DEV, PHM, MOD, and FAM, they may not contain IFC file parsers. At this time, it is particularly important to be able to convert IFC files into DEV, PHM, MOD, and FAM so that the design information of the substation structure engineering can be consulted and analyzed in the device-level program.
[0003] The invention patent with publication number CN109783886A discloses a system and method for integrating GIM model and IFC model, which reads GIM model files and IFC model files in the power grid engineering model respectively to perform integrity check; parses the GIM model files and IFC model files respectively, and stores the parsed results in the form of JSON or XML files; establishes mapping relationships between the description schemes of the GIM model and IFC model and the description scheme of the unified reference model respectively, and stores them in the form of JSON or XML files after conversion; generates multiple spatial relationships by analyzing the geometric data in the unified reference model; and compares the GIM conversion results and the IFC conversion results based on the multiple spatial relationships to obtain version difference results. Summary of the invention
[0004] In view of the defects in the prior art, the present invention provides a preprocessing method and system for converting IFC to GIM of an assembled substation structure.
[0005] According to a preprocessing method and system for converting IFC to GIM of an assembled substation structure provided by the present invention, the scheme is as follows:
[0006] In a first aspect, a preprocessing method for converting IFC to GIM of an assembled substation structure is provided, the method comprising:
[0007] Step S1: read the IFC file of the structural design and find out the entities of each IFC subclass of IFCBuildingElement;
[0008] Step S2: converting different types of structural components IFC types into the same IFC component type IfcBuildingElementProxy to perform the first preprocessing;
[0009] Step S3: converting the CSG entity type in the IFC into the extruded entity type IFCEXTRUDEDAREASOLID, and performing the second preprocessing of the IFC file;
[0010] Step S4: Convert the obtained IFCEXTRUDEDAREASOLID entity into a MOD file.
[0011] Preferably, the step S1 comprises:
[0012] Step S1.1: read the IFC file; find the FILE_SCHEMA keyword describing the IFC data format version number in the header part of the IFC file;
[0013] Step S1.2: Read in the corresponding exp files of different IFC version schemes, and verify the correctness and completeness of the previously read IFC files according to the data format description scheme defined in the express language in the corresponding version of the exp file;
[0014] If a problem is found, it will be written into the LOG file, prompting the user to correct the IFC file without entering the following processing steps;
[0015] Only if the correctness and integrity of the IFC file read in previously has been verified, can the following processing steps be entered.
[0016] Preferably, the step S2 includes: each parameter of the IFC class of each structural component needs to be aligned with the parameters of the IfcBuildingElementProxy class;
[0017] If there are parameters in the IFC structure class that the IfcBuildingElementProxy class does not have, the parameters of the IFC structure class are ignored when converting to the IfcBuildingElementProxy entity;
[0018] If there are parameters in the IfcBuildingElementProxy class that are not in the IFC structure class, the corresponding parameters of the IfcBuildingElementProxy class will be left blank during alignment.
[0019] Preferably, in step S3: the IFC three-dimensional shape of the structural member mainly includes a CSG shape and a tensile body, wherein the CSG shape in the IFC includes related shapes including a cube, a cylinder, a cone and a sphere;
[0020] When using cylinders, cones, spheres, frustums and other special-shaped shapes, the surfaces of the above shapes are triangulated and then converted into STL files and stored in the GIM compressed package.
[0021] Preferably, step S4 includes: the .GIM file of the State Grid is essentially a compressed package, which contains 4 folders, and there are only two types of files under the MOD folder, namely .MOD files and .STL files, wherein the .STL file describes the special-shaped and irregular components in the form of a triangulated surface model.
[0022] In a second aspect, a preprocessing system for converting IFC to GIM of an assembled substation structure is provided, the system comprising:
[0023] Module M1: Read the IFC file of the structural design and find the entities of each IFC subclass of IFCBuildingElement;
[0024] Module M2: Convert different types of structural components IFC types to the same IFC component type IfcBuildingElementProxy to perform the first preprocessing;
[0025] Module M3: Convert the CSG entity type in IFC to the extruded entity type IFCEXTRUDEDAREASOLID, and perform the second preprocessing of the IFC file;
[0026] Module M4: Convert the resulting IFCEXTRUDEDAREASOLID entity to a MOD file.
[0027] Preferably, the module M1 comprises:
[0028] Module M1.1: Read the IFC file; find the FILE_SCHEMA keyword describing the IFC data format version number in the header of the IFC file;
[0029] Module M1.2: Read in the corresponding exp files of different IFC version schemes, and verify the correctness and completeness of the previously read IFC files according to the data format description scheme defined in the express language in the corresponding version of the exp file;
[0030] If a problem is found, it will be written into the LOG file, prompting the user to correct the IFC file, and will not enter the following processing module;
[0031] Only if the correctness and integrity of the IFC file read in previously is verified, can the following processing module be entered.
[0032] Preferably, the module M2 includes: each parameter of the IFC class of each structural component needs to be aligned with the parameters of the IfcBuildingElementProxy class;
[0033] If there are parameters in the IFC structure class that the IfcBuildingElementProxy class does not have, the parameters of the IFC structure class are ignored when converting to the IfcBuildingElementProxy entity;
[0034] If there are parameters in the IfcBuildingElementProxy class that are not in the IFC structure class, the corresponding parameters of the IfcBuildingElementProxy class will be left blank during alignment.
[0035] Preferably, in the module M3: the IFC three-dimensional shape of the structural member mainly includes CSG shapes and tensile bodies, wherein the CSG shapes in the IFC include related shapes including cubes, cylinders, cones and spheres;
[0036] When using cylinders, cones, spheres, frustums and other special-shaped shapes, the surfaces of the above shapes are triangulated and then converted into STL files and stored in the GIM compressed package.
[0037] Preferably, in the module M4: the .GIM file of the State Grid is essentially a compressed package, which contains 4 folders, and there are only two types of files under the MOD folder, namely .MOD files and .STL files, wherein the .STL file describes the special-shaped and irregular components in the form of a triangulated surface model.
[0038] Compared with the prior art, the present invention has the following beneficial effects:
[0039] 1. The present invention converts different structural component IFC classes into the same IFC class and other preprocessing, which can significantly reduce the complexity of subsequent conversion of IFC files to GIM;
[0040] 2. The present invention converts IFC files, which can reduce the software development cost and complexity in the process of sharing and applying substation engineering design information. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:
[0042] Figure 1 It is a schematic diagram of the overall steps of the present invention;
[0043] Figure 2 This is a diagram of the parameter alignment between IfcColumn and IfcBuildingElementProxy;
[0044] Figure 3 Example diagram for converting IfcColumn entity to IfcBuildingElementProxy;
[0045] Figure 4 Schematic diagram of the conversion template from IfcBlock to IfcExtrudedSol id. DETAILED DESCRIPTION
[0046] The present invention is described in detail below in conjunction with specific embodiments. The following embodiments will help those skilled in the art to further understand the present invention, but are not intended to limit the present invention in any form. It should be noted that, for those of ordinary skill in the art, several changes and improvements can also be made without departing from the concept of the present invention. These all belong to the protection scope of the present invention.
[0047] The embodiment of the present invention provides a preprocessing method for converting IFC to GIM of an assembled substation structure. In order to simplify the complexity of the subsequent conversion process, Figure 1 As shown, the invention includes:
[0048] Step S1: Read the IFC file of the structural design and find out the entities of each IFC subclass of IFCBuildingElement.
[0049] This step specifically includes:
[0050] Step S1.1: read the IFC file; find the FILE_SCHEMA keyword describing the IFC data format version number in the header part of the IFC file;
[0051] Step S1.2: Read in the corresponding exp files of different IFC version schemes, and verify the correctness and completeness of the previously read IFC file according to the data format description scheme defined in the express language in the corresponding version of the exp file; if any problem is found, write a LOG file to prompt the user to correct the IFC file and no longer enter the following processing steps; only if the correctness and completeness verification of the previously read IFC file is passed, can the following processing steps be entered.
[0052] Step S2: The IFC types of different types of structural components are replaced with the same IFC component type IfcBuildingElementProxy to perform the first preprocessing.
[0053] In this step, the parameters of the IFC class of each structural component need to be aligned with the parameters of the IfcBuildingElementProxy class. If there are parameters in the IFC structure class but not in the IfcBuildingElementProxy class, the parameters of the IFC structure class are ignored when converted to the IfcBuildingElementProxy entity. If there are parameters in the IfcBuildingElementProxy class but not in the IFC structure class, the corresponding parameters of the IfcBuildingElementProxy class are left blank during alignment.
[0054] Step S3: Convert the CSG entity type in the IFC into the extruded entity type IFCEXTRUDEDAREASOLID to perform the second preprocessing of the IFC file.
[0055] The IFC three-dimensional shapes of structural components mainly include CSG shapes and extruded shapes. Among them, the CSG shapes in IFC include related shapes such as cubes, cylinders, cones and spheres. When using cylinders, cones, spheres, frustums and other special-shaped shapes, the surfaces of the above shapes are triangulated and then converted into STL files and stored in the GIM compression package.
[0056] Step S4: Convert the obtained IFCEXTRUDEDAREASOLID entity into a MOD file. The .GIM file of the State Grid is essentially a compressed package, which contains 4 folders. There are only two types of files under the MOD folder, namely .MOD files and .STL files. The .STL file describes the special-shaped and irregular components in the form of a triangulated surface model.
[0057] Next, the present invention will be described in more detail.
[0058] A preprocessing method for converting IFC to GIM of prefabricated substation structure, referring to Figure 1 As shown, the method is as follows:
[0059] Step 1: Read in the IFC file:
[0060] First, the program in the device reads the IFC file; then finds the FILE_SCHEMA keyword describing the IFC data format version number in the header part of the IFC file, such as FILE_SCHEMA(('IFC2X3')) or FILE_SCHEMA(('IFC4')) or FILE_SCHEMA(('IFC4X1')), and the IFC2X3 in the brackets indicates the version number of the IFC file. Next, read the corresponding exp files of the schemes (Schema) of different IFC versions, and verify the correctness and completeness of the previously read IFC file according to the data format description scheme defined in the express language in the corresponding version of the exp file. If problems are found, write the LOG file to prompt the user to correct the IFC file and no longer enter the following processing steps; if the correctness and completeness of the previously read IFC file are verified, the following processing steps can be entered.
[0061] Step 2: Change the structural component IFC type to the same IFC component type:
[0062] The first preprocessing process is to convert different types of structural component IFC types into the same IFC component type IfcBuildingElementProxy. Prefabricated substations usually use steel structures or reinforced concrete structures. The IFC classes of their structural components generally use IfcBeam (beam), IfcColumn (column), IfcSlab (plate), IfcFooting (foundation), IfcPile (pile), and in a few cases, IfcWall (shear wall) is also used. However, in the storage format of the State Grid BIM model GIM, PHM files are used to represent parts or components, and PHM does not define different component types. Therefore, if the aforementioned different structural component IFC classes can be converted to the same IFC class, the complexity of subsequent file format conversion can be significantly reduced.
[0063] The aforementioned IfcBeam, IfcColumn, IfcSlab, IfcFooting, and IfcPile have a common IFC parent class, IFCBuildingElement. At the same time, the parent class of the proxy component type IfcBuildingElementProxy (which is actually used to describe other component types) is also IFCBuildingElement. Therefore, the aforementioned IfcBeam and other structural component IFC classes can be converted to IfcBuildingElementProxy. The specific conversion details are described as follows.
[0064] First, the parameters of the IFC classes of the structural components mentioned above need to be aligned with the parameters of the IfcBuildingElementProxy class. If there are parameters in the IFC structure class (such as IfcColumn) that the IfcBuildingElementProxy class does not have, the parameters of the IFC structure class are ignored when converted to the IfcBuildingElementProxy entity; if there are parameters in the IfcBuildingElementProxy class that the IFC structure class does not have, when aligning, the corresponding parameters of the IfcBuildingElementProxy class are empty (indicated by $ in the IFC file).
[0065] like Figure 2 As shown, the parameters of IfcColumn and IfcBuildingElementProxy are aligned. As shown in the figure, because both IFC classes have 8 parameters and the order is consistent, the subsequent parameters correspond one to one.
[0066] In order to avoid losing the converted component type information, the previously defined IFC type, such as IFCCOLUMN, needs to be added to the end of the 8th parameter of the converted IfcBuildingElementProxy, and separated from the tag parameter value string by "|". For the conversion process of the question, refer to Figure 3 shown.
[0067] According to the above parameters, Figure 3 The following figure shows an example of converting a structural column component entity of the IfcColumn type numbered #366 to an IfcBuildingElementProxy entity. The conversion result in the figure shows that only the IFC class of the #366 component entity is changed from IFCCOLUMN to IFCBUILIDNGELMENTPROXY. Although the first seven parameters of the two are exactly the same, the last "Tag" parameter is supplemented with information. "|IFCCOLUMN" is added to the end of the original string, where "|" is a separator to indicate that the IFC type of the climate is added after the conversion. From the above conversion process, it can be seen that although the IfcColumn entity is converted to the IfcBuildingElementProxy entity, its original IFC type is not lost, but saved at the end of the Tag parameter value string, separated from the original Tag value string by "|", and the original "Tag" value "368315" is still retained.
[0068] Similarly, entities of other types of structural components (IfcBeam, IfcSlab, IfcWall, IfcFooting, IfcPile) can be converted into IfcBuildingElementProxy entities by referring to the processing method of IfcColumn. I will not go into details here.
[0069] Step 3: Convert the CSG primitive type to an extruded body primitive type:
[0070] The second pre-processing of the IFC file is to convert the CSG entity type into the extruded entity type IFCEXTRUDEDAREASOLID.
[0071] The IFC three-dimensional shapes of structural components commonly used in the design of prefabricated substations mainly include CSG shapes and tensile bodies. The CSG shapes in IFC include cubes, cylinders, cones, spheres, etc. In prefabricated substations, cubes are generally used, cylinders are rarely used, and cones and spheres are even less used. In prefabricated substations, they are mainly used to represent foundations, piles, floor slabs and other components; at the same time, the shapes of steel structure components are often represented by tensile bodies of different cross-sections in IFC, which are often used in prefabricated substations, especially H-shaped steel components are the most used.
[0072] In rare cases when cylinders, cones, spheres, truncated cones and other special-shaped shapes are used, the surfaces of the above shapes can be triangulated and then converted into STL files and stored in GIM compressed packages. Therefore, they are no longer considered in the subsequent discussion of IFC combined bodies to MOD. Steel members are generally represented by extruded bodies IfcExtrudedAreaSolid in IFC. Therefore, the following mainly describes the method of converting the IfcBlock entity describing a three-dimensional cube into the IfcIfcExtrudedAreaSolid entity of a three-dimensional extruded body.
[0073] In the definition of IFC types, IfcBlock cube components and IfcExtrudedAreaSolid steel components have a common IFC ancestor class, which is IfcGeometricRepresentationItem. Figure 2It is shown in the figure that the seventh parameter "Representation" of IfcBuilidngElementProxy describes the three-dimensional collective shape of the component. The IFC type of this parameter is IfcProductRepresentation, which is the ancestor class of IfcGeometricRepresentationItem. Therefore, converting the IfcBlock entity to the IfcExtrudedAreaSolid entity does not affect the definition and reference of the three-dimensional collective shape by the converted structural part type IfcBuilidngElementProxy entity.
[0074] Reference Figure 4 As shown in the figure, the conversion template for converting the IfcBlock entity to the IFCEXTRUDEDSOLID entity is generated. Among them, #[LNo] is the number of the IFC entity, which is generally the sequential line number of the entity code in the IFC file. In addition, MaxLno is the maximum line number of the current IFC file to be processed, and the newly generated IFC code is placed at the end of the file.
[0075] IFCEXTRUDEDSOLID has 4 parameters. The 4th parameter [ZLength] is the length of the stretch. The 3rd parameter #[MaxLNo+1] defines the stretch direction. Because IFCDIRECTION((0.,0.,1.)) means stretching along the positive direction of the Z axis, that is, stretching upward, [ZLength] corresponds to the height of the cube. The 2nd parameter #[MaxLNo+2] defines how the 3D stretch body is placed in 3D space.
[0076] The first parameter #[MaxLNo+5] of the IFCEXTRUDEDAREASOLID entity defines a polygonal section, and IFCARBITRARYCLOSEDPROFILEDEF is used to define a closed polygonal section. The outline of the section is defined by the polygonal IFCCOMPOSITECURVE entity described by #[MaxLNo+6]. IFCCOMPOSITECURVE is composed of four polylines from #[MaxLNo+7] to #[MaxLNo+10], each of which consists of two points. Because it is a closed polygon, the starting vertex of #[MaxLNo+7] and the ending vertex of #[MaxLNo+10] are the same, both ##[MaxLNo+15].
[0077] #[MaxLNo+15] to #[MaxLNo+18] define the four vertices of the cross-section outline polygon, where the coordinates of each vertex correspond to the length [XLength] and width [YLength] of IfcBlock.
[0078] According to the above conversion template, an example of converting an IfcBlock entity to an IfcExtrudedAreaSolid entity is given. The IfcBlock entity is used to describe the 300 mm high footing of the foundation. The code for numbering the IfcBlock entity in the original IFC file is as follows:
[0079] #7655=IFCBLOCK(1500.,1500.,300.);
[0080] The three parameters in the brackets after IFCBLOCK represent the length (1500mm), width (1500mm), and height (300mm) of the cube. Converting to IFCEXTRUDEDSOLID requires multiple lines of code to express it as follows:
[0081] #7655=IFCEXTRUDEDAREASOLID(#100005,#100002,#100001,300.);
[0082] #100001=IFCDIRECTION((0.,0.,1.));
[0083] #100002=IFCAXIS2PLACEMENT3D(#100003,#100001,#100004);
[0084] #100003=IFCCARTESIANPOINT((0.,0.,0.));
[0085] #100004=IFCDIRECTION((1.,0.,0.));
[0086] #100005=IFCARBITRARYCLOSEDPROFILEDEF(.AREA.,$,#100006);
[0087] #100006=IFCCOMPOSITECURVE((#100007,#100008,#100009,#100010),.F.);
[0088] #100007=IFCCOMPOSITECURVESEGMENT(.CONTINUOUS.,.T.,#100011);
[0089] #100008 = IFCCOMPOSITECURVESEGMENT(.CONTINUOUS.,.T., #100012);
[0090] #100009 = IFCCOMPOSITECURVESEGMENT(.CONTINUOUS.,.T., #100013);
[0091] #100010 = IFCCOMPOSITECURVESEGMENT(.CONTINUOUS.,.T., #100014);
[0092] #100011 = IFCPOLYLINE((#100015, #100016));
[0093] #100012 = IFCPOLYLINE((#100016, #100017]));
[0094] #100013 = IFCPOLYLINE((#100017, #100018));
[0095] #100014 = IFCPOLYLINE((#100018, #100015));
[0096] #100015 = IFCCARTESIANPOINT((0., 0.));
[0097] #100016 = IFCCARTESIANPOINT((0., 1500.));
[0098] #100017 = IFCCARTESIANPOINT((1500., 1500.));
[0099] #100018 = IFCCARTESIANPOINT((0., 1500.));
[0100] Step 4: Convert the IFCEXTRUDEDAREASOLID entity to a MOD file:
[0101] The .GIM file of State Grid is essentially a compressed package, which contains 4 folders. There are only two types of files in the MOD folder, namely .MOD files and .STL files. The latter is a triangulated surface model that describes irregular and irregular components. Because it is rarely used in prefabricated substation structural components, this patent will not go into details. The following mainly analyzes how to convert IFCEXTRUDEDAREASOLID to MOD files.
[0102] The MOD file is essentially an XML file. The IfcBlock entity #7655 above is converted to an IFC extrusion and then converted to a MOD file as shown below:
[0103]
[0104] The above MOD file name is named after the IFC file name "Wugufeng Substation Structure.IFC" followed by the IFC entity number. Because in a GIM compressed package, the name of each IFC file is unique, and the number of each IFC entity in the same IFC file is also unique, which can ensure that the converted MOD file name is unique.
[0105] In the MOD file, the stretched body is represented by StretchedBody, which has three parameters. The first parameter L is the length of the stretch; the second parameter Normal is the direction of the stretch, represented by (X, Y, Z); the third parameter is a set of three-dimensional coordinate points, and each point is separated by ";". In addition, TransformMatrix is a 4*4 transformation matrix used to describe how to place a three-dimensional solid entity, and its Value parameter records the 16 element data of the matrix. Color represents the color of the three-dimensional shape when it is displayed, and is expressed by four parameters: Red, Green, Blue, and Alpha. Because there are a large number of academic literature and open source codes that explain how to convert the IFC placement coordinate system (represented by multiple lines of associated code) into a transformation matrix, it is not the focus of the present invention and will not be repeated here.
[0106] Because the points in IfcExtrudedSolid are points on a two-dimensional plane and have only X and Y coordinates, and because the extrusion interface in GIM is placed on the XOY plane by default, you only need to add the Z coordinate Z=0.
[0107] The embodiment of the present invention provides a preprocessing method and system for converting IFC to GIM of an assembled substation structure. First, the IFC file of the structural design is read in, and then the entities of each IFC subclass of IFCBuildingElement (including IFC classes of common structural components such as IfcColumn, IfcBeam, IfcSlab, IfcFooting, IfcPile, etc.) are found; then, two preprocessing processes are performed in parallel. The first preprocessing process converts the entity of the IFC class of the common structural component into an entity of the IfcBuildingElementProxy class, and stores the original IFC type in the tag parameter of the IfcBuildingElementProxy entity; the second preprocessing process is to convert the cube graphic class IfcBlock entity into the IfcExtrudedAreaSolid entity. After the above preprocessing, the complexity of the subsequent conversion of the IFC file to GIM can be reduced.
[0108] Those skilled in the art know that, in addition to realizing the system and its various devices, modules, and units provided by the present invention in a purely computer-readable program code, it is entirely possible to realize the same functions in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers by logically programming the method steps. Therefore, the system and its various devices, modules, and units provided by the present invention can be considered as a hardware component, and the devices, modules, and units included therein for realizing various functions can also be regarded as structures within the hardware component; the devices, modules, and units for realizing various functions can also be regarded as both software modules for realizing the method and structures within the hardware component.
[0109] The above describes the specific embodiments of the present invention. It should be understood that the present invention is not limited to the above specific embodiments, and those skilled in the art can make various changes or modifications within the scope of the claims, which does not affect the essence of the present invention. In the absence of conflict, the embodiments of the present application and the features in the embodiments can be combined with each other arbitrarily.
Claims
1. A preprocessing method for converting IFC to GIM of assembled substation structure, characterized in that: include: Step S1: read the IFC file of the structural design and find out the entities of each IFC subclass of IFCBuildingElement; Step S2: converting different types of structural components IFC types into the same IFC component type IfcBuildingElementProxy to perform the first preprocessing; Step S3: converting the CSG entity type in the IFC into the extruded entity type IFCEXTRUDEDAREASOLID, and performing the second preprocessing of the IFC file; Step S4: Convert the obtained IFCEXTRUDEDAREASOLID entity into a MOD file.
2. The preprocessing method for converting IFC to GIM of an assembled substation structure according to claim 1 is characterized in that: The step S1 comprises: Step S1.1: read the IFC file; find the FILE_SCHEMA keyword describing the IFC data format version number in the header part of the IFC file; Step S1.2: Read in the corresponding exp files of different IFC version schemes, and verify the correctness and completeness of the previously read IFC files according to the data format description scheme defined in the express language in the corresponding version of the exp file; If a problem is found, it will be written into the LOG file, prompting the user to correct the IFC file without entering the following processing steps; Only if the correctness and integrity of the IFC file read in previously has been verified, can the following processing steps be entered.
3. The preprocessing method for converting IFC to GIM of an assembled substation structure according to claim 1 is characterized in that: The step S2 includes: each parameter of the IFC class of each structural component needs to be aligned with the parameters of the IfcBuildingElementProxy class; If there are parameters in the IFC structure class that the IfcBuildingElementProxy class does not have, the parameters of the IFC structure class are ignored when converting to the IfcBuildingElementProxy entity; If there are parameters in the IfcBuildingElementProxy class that are not in the IFC structure class, the corresponding parameters of the IfcBuildingElementProxy class will be left blank during alignment.
4. The preprocessing method for converting IFC to GIM of an assembled substation structure according to claim 1, characterized in that: In the step S3: the IFC three-dimensional shape of the structural component mainly includes CSG shapes and stretched shapes, wherein the CSG shapes in the IFC include related shapes such as cubes, cylinders, cones and spheres; When using cylinders, cones, spheres, frustums and other special-shaped shapes, the surfaces of the above shapes are triangulated and then converted into STL files and stored in the GIM compressed package.
5. The preprocessing method for converting IFC to GIM of an assembled substation structure according to claim 1, characterized in that: The step S4 includes: the .GIM file of the State Grid is actually a compressed package, which contains 4 folders, and there are only two types of files under the MOD folder, namely .MOD files and .STL files, wherein the .STL file describes the special-shaped and irregular components in the form of a triangulated surface model.
6. A preprocessing system for converting IFC to GIM of assembled substation structure, characterized in that: include: Module M1: Read the IFC file of the structural design and find the entities of each IFC subclass of IFCBuildingElement; Module M2: Convert different types of structural components IFC types to the same IFC component type IfcBuildingElementProxy to perform the first preprocessing; Module M3: Convert the CSG entity type in IFC to the extruded entity type IFCEXTRUDEDAREASOLID, and perform the second preprocessing of the IFC file; Module M4: Convert the resulting IFCEXTRUDEDAREASOLID entity to a MOD file.
7. The preprocessing system for converting IFC to GIM of the assembled substation structure according to claim 6 is characterized in that: The module M1 comprises: Module M1.1: Read the IFC file; find the FILE_SCHEMA keyword describing the IFC data format version number in the header of the IFC file; Module M1.2: Read in the corresponding exp files of different IFC version schemes, and verify the correctness and completeness of the previously read IFC files according to the data format description scheme defined in the express language in the corresponding version of the exp file; If a problem is found, it will be written into the LOG file, prompting the user to correct the IFC file, and will not enter the following processing module; Only if the correctness and integrity of the IFC file read in previously is verified, can the following processing module be entered.
8. The preprocessing system for converting IFC to GIM of the assembled substation structure according to claim 6 is characterized in that: The module M2 includes: each parameter of the IFC class of each structural component needs to be aligned with the parameters of the IfcBuildingElementProxy class; If there are parameters in the IFC structure class that the IfcBuildingElementProxy class does not have, the parameters of the IFC structure class are ignored when converting to the IfcBuildingElementProxy entity; If there are parameters in the IfcBuildingElementProxy class that are not in the IFC structure class, the corresponding parameters of the IfcBuildingElementProxy class will be left blank during alignment.
9. The preprocessing system for converting IFC to GIM of the assembled substation structure according to claim 6 is characterized in that: In the module M3: the IFC three-dimensional shapes of the structural components mainly include CSG shapes and tensile shapes, wherein the CSG shapes in the IFC include related shapes such as cubes, cylinders, cones and spheres; When using cylinders, cones, spheres, frustums and other special-shaped shapes, the surfaces of the above shapes are triangulated and then converted into STL files and stored in the GIM compressed package.
10. The preprocessing system for converting IFC to GIM of the assembled substation structure according to claim 6, characterized in that: In the module M4: the .GIM file of the State Grid is actually a compressed package, which contains 4 folders. There are only two types of files under the MOD folder, namely .MOD files and .STL files, among which .STL files describe special-shaped and irregular components in the form of triangulated surface models.
