Building information model IFC format analysis method
By building the SPF parser module and the IFC version configuration module, the IFC format data is converted into neutral data files, which solves the problems of high complexity, slow loading speed and data interaction in the IFC format analysis technology, and realizes efficient data processing and Expand the application field and support applications in multiple IFC versions and professional fields.
Patent Information
- Application Number
- CN202410859574.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-12-06
AI Technical Summary
The existing IFC format analysis technology has high model complexity, slow loading speed, data interaction problems and low processing efficiency, which limits the wide application of IFC formats and the accuracy of data interaction. The IFC standard has limited ability to describe certain professional fields. .
By building the SPF parser module and the IFC version configuration module, the building information model data in IFC format is converted into neutral data files and converted into building information model data structures, reducing model complexity, improving processing efficiency, and expanding application fields . The specific steps include building the SPF parser module and the IFC version configuration module, traversing the IFC file information, using the SPF parser to form a neutral data file, and forming the final building information model data structure through data conversion.
It realizes efficient IFC format file parsing and conversion, improves processing efficiency, supports applications in multiple IFC versions and professional fields, reduces model complexity, and improves the accuracy and readability of data interaction.
Smart Images

Figure CN119089891A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of construction industry information, and in particular relates to an IFC format parsing method. Background Art
[0002] BIM (building information modeling) technology is based on the relevant information data of the construction project, simulates the real information of the building through digital information simulation, and realizes the functions of project supervision, property management, equipment management, digital processing, engineering management, etc. through the three-dimensional building information model. The IFC format is the international common format of BIM files.
[0003] However, the existing platform data files in the same industry are generally stored in the form of files. When storing BIM data, there may be inaccurate data storage, which makes it difficult to ensure the efficiency and reliability of BIM data storage. Therefore, efficient parsing of IFC format files is required.
[0004] As the de facto engineering data exchange standard in the international construction industry, the IFC (Industry Foundation Class) format plays an important role in realizing data exchange in Building Information Modeling (BIM). However, the existing IFC format parsing technology still has some shortcomings, which limit the widespread application of the IFC format and efficient data exchange.
[0005] The shortcomings of the prior art are as follows:
[0006] High model complexity: IFC models are difficult to read and modify manually due to their complex structure definition and complex definition of relationships between entities. This increases the difficulty of data processing and reduces work efficiency.
[0007] Slow model loading speed: IFC models are sequential readable texts, which need to be read from beginning to end each time, and have high requirements on computer hardware. This limits the readability and reading speed of IFC models in different software environments.
[0008] Data interaction issues: When IFC models are imported and exported in different software environments, data loss and errors often occur, which affects the execution efficiency of BIM collaborative design and the accuracy of data interaction.
[0009] Low processing efficiency: In a BIM model based on IFC description, even if only one piece of data in the model needs to be modified, the entire IFC model needs to be parsed, modified, and compiled to finally generate the modified IFC model. This method undoubtedly increases the processing workload and reduces work efficiency.
[0010] Limited application in specific fields: The IFC standard provides a limited number of entities and can only describe the main information in the project, which limits the application of BIM technology in certain professional fields. For example, the current IFC standard lacks a description of formwork engineering entities, which hinders the development of formwork engineering design and analysis software based on the BIM platform. Summary of the invention
[0011] In view of this, the present invention provides a parsing method for the IFC format of a building information model, which can reduce the complexity of the model, improve processing efficiency, and expand the application field. The specific technical solution is as follows:
[0012] A parsing method for a building information model (IFC) format, converting building information model (BIM) data in the IFC format into a neutral data file, and then converting the neutral data file into a building information model data structure (aecmate-data), including parsing preparation, IFC format file processing, and data conversion;
[0013] The parsing preparation includes constructing an SPF parser module and an IFC version configuration module; wherein the SPF parser module is used to parse ISO data according to the ISO-10303-21 standard, and the IFC version configuration module is used to redefine all objects and classes of the IFC data architecture according to the IFC version;
[0014] IFC format file processing includes traversing all the information of the IFC file and parsing it using the SPF parser to form a neutral data file;
[0015] Data conversion is used to convert the neutral data file into the final building information model data structure.
[0016] Furthermore, the SPF parser module includes SPF.InputFramework class and SPF.Parser class, wherein the SPF.ImputFramework class is an ISO version configuration class file, which specifically defines the data logical structure of each ISO version and the conversion operation of related data; the SPF.Parser class is a data processing class, which includes two main functions. One main function is to convert the input original data into a data entity containing ID, Key value, and List value according to the data logical structure defined by the SPF.InputFramework class, wherein the ID represents the unique number of the original IFC data, the Key value represents the related names of the IFC entity data, relationship data, attribute data and shape data, and the List value represents the content and specific value of the IFC entity; the other main function is to merge the data with the inclusion relationship after the data conversion.
[0017] Furthermore, versions of the ISO-10303-21 standard include: ISO 10303-21:1994, ISO 10303-21:2002, ISO 10303-21:2016.
[0018] Furthermore, the IFC version configuration module includes an IFCInputConfig version configuration program and an IFCInputSession version matching program; wherein the IFCInputConfig version configuration program is used to support the conversion of all IFC versions on the market into a building information model data structure, including the definition of entity data, relationship data, attribute data and shape data, and the corresponding conversion methods of related entities; the IFCInputConfig version configuration class program adopts the same data hierarchy and the same method name as the IFC format file, so as to facilitate the mapping of the entities of the ifc data structure to the entity method names of the IFCInputConfig version configuration class;
[0019] The IFCInputSession version matching program is used to find the corresponding IFC version configuration class program through IFC version information.
[0020] Furthermore, the entity data includes: project information, site information, building information, floor information, component type, and component information;
[0021] Relationship data includes: aggregation relationship, deduction relationship, associated attribute relationship, associated type relationship, associated decoration relationship, and connection relationship;
[0022] Attribute data includes: attribute set, single-value attribute, list attribute, and combination attribute;
[0023] Shape information includes: general entity, geometric shape, scanned shape, parametric section, special-shaped section;
[0024] Furthermore, IFC format file processing specifically includes:
[0025] (1) Traverse all the information of the IFC file: read the IFC file information into the computer memory, and obtain the HEADER data and DATA data respectively.
[0026] The extracted contents of the HEADER data part include: ISO version information, file description information, and IFC version information. The file description information includes the file name, creation time, creator, and creation software information.
[0027] The extracted contents of the DATA data section include: the master data of the IFC format model.
[0028] (2) Use SPF parser for analysis:
[0029] Get the ISO version information based on the HEADER data, and then adapt the SPF.InputFramework class based on the ISO version information;
[0030] According to the data logical structure of the SPF.InputFramework class, the DATA data is converted, that is, each row of data in the DATA data is stored as a data entity containing ID, Key value, and List value according to the data logical structure;
[0031] Perform the previous operation on each row of data in DATA, and finally obtain multiple data entities. These data entities are temporarily stored to form a neutral file data integration body.
[0032] Further, step 3, data conversion is as follows:
[0033] (1) According to the IFC version information of the acquired HEADER data, the matching IFCInputConfig version configuration class program is found through the IFCInputSession version matching program;
[0034] (2) Extract data entities from the neutral file data collection, and match the key value in each data entity with the specific entity class method name in the matching IFCInputConfig version configuration class program through the HASH algorithm of JAVA's SPRING framework to quickly retrieve elements for matching. The IFCInputConfig version configuration class program uses the same data hierarchy as the IFC format file for mapping, and performs data conversion using the conversion method of the specific entity class. The converted data results are stored in the corresponding entities of the AECMate Data data structure with the same name. After all data entities in the neutral file data collection are converted and stored according to the corresponding entity methods of the IFC configuration class program, the final building information model data structure aecmate-data is formed.
[0035] Beneficial Effects
[0036] 1. The present invention can support more neutral file types, including ISO 10303-21:1994, ISO 10303-21:2002, and ISO 10303-21:2016, through flexible configuration.
[0037] 2. The present invention has high efficiency in parsing neutral files. Taking 470M as an example, it takes 30 seconds to parse and 15 seconds to convert, which is comparable to foreign mainstream software. Through cache technology, there is no theoretical upper limit on the file size.
[0038] 3. The present invention supports parsing of all versions of Ifc file formats, including IFC2x, IFC2x2, IFC2x3, IFC4, IFC4x1, IFC4x2, and IFC4x3.
[0039] 4. The present invention supports the analysis of all professional fields of IFC, including architecture, structure, HVAC, electrical, structural analysis, highway, railway, port and water transport, engineering management, etc.
[0040] 5. The present invention has strong scalability, and the version can be expanded according to the neutral file encoding rules in the future, such as: IS10303-21:XXX, and the future ifc version can be expanded to IFCxx.
[0041] 6. The present invention reduces the complexity of the model: by parsing ifc, the structure definition and the relationship definition between entities of the original IFC model are optimized, the complexity of the model is reduced, and the readability and modifiability of the model are improved.
[0042] 7. The present invention improves processing efficiency: developing IFC model local parsing and modification technology for specific data modification needs, reducing the workload of parsing and compiling the entire model, and improving processing efficiency.
[0043] 8. The present invention expands the application field: according to the needs of specific fields, the number of entities and description capabilities in the IFC standard are expanded to support applications in more professional fields. For example, the IFC standard can be expanded to support the description and analysis of template engineering entities. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 , AEC Mate Data structure diagram;
[0045] Figure 2 , ifc version configuration flow chart;
[0046] Figure 3 , Ifc file data flow chart;
[0047] Figure 4 , module dependency diagram;
[0048] Figure 5 , IFC version configuration class program architecture diagram. DETAILED DESCRIPTION
[0049] The present invention is a parsing method for IFC format data, which is used for converting BIM data in IFC format into a neutral data file. The method is implemented by a self-developed parsing program, including parsing preparation, IFC format file processing, and data conversion.
[0050] Implementation steps:
[0051] Step 1: Preparation for analysis
[0052] (1) Build the SPF parser module
[0053] The present invention is based on the ISO-10303-21 standard. Since there are multiple versions of ISO format data, this step parses the ISO data according to the ISO official data format description. ISO-10303-21 is an entity name association file format used in product data representation and exchange. It uses XML format to describe product model data, which helps to interact and share data between different systems. It includes entity names, attributes and connections representing data, as well as other information related to it.
[0054] The SPE.ImputFramework class is an ISO version configuration class file, which specifically defines the logical structure of data of each ISO version and the conversion operations of related data. This class can be expanded later to support more ISO encoded data.
[0055] SPF.Parser class: data processing class, contains two main functions. The first main function is: convert the input original data into a data entity containing ID, Key value, and List value according to the logical structure of the data defined by the SPF.InputFramework class. The entity here is the same concept as the entity in the aecmate-data structure diagram;
[0056] ID indicates the unique number of the original IFC data, such as #3.
[0057] Key values represent the names of IFC entity data, relationship data, attribute data, and shape data, for example, IFCDERIVEDUNITELEMENT
[0058] List values represent the content and specific values of IFC entities, such as ((*,.MASSUNIT.,.KILO.,.GRAM.),1).
[0059] The second main function is: after data conversion, the data with inclusion relationship will be merged; when merging data, if unconverted data is encountered, it will be stored in a temporary buffer area, and a second merge will be performed after all the data is converted according to the SPF.InputFramework class definition.
[0060] Some list values refer to data from other rows, and their data will be embedded in the list. They can be nested multiple times, that is, A nests B, B nests C, such as:
[0061] Id:#39,Key:IFCDERIVEDUNITELEMENT,List{List value of A, list value of B (list value of C)}
[0062] (2) Build IFC version configuration module
[0063] IFC version configuration class module: redefines all objects and classes of the IFC data architecture by version, preparing for the next step of data conversion.
[0064] IFCInputConfig version configuration program: supports the conversion of all IFC versions on the market (IFC2x, IFC2x2, IFC2x3, IFC4x, IFC4x1, IFC4x2, IFC4x3 versions) into building information model data structure (aecmate-data), including: IFC2xInputConfig, IFC2x2InputConfig, IFC2x3InputConfig, IFC4InputConfig, IFC4x1InputConfig, IFC4x2InputConfig, IFC4x3InputConfig.
[0065] IFCInputSession version matching program: used to find the corresponding IFC version configuration program through IFC version information.
[0066] Step 2: IFC format file processing
[0067] (1) Traverse all the information of the IFC file: read the ifc file information into the computer memory and obtain the HEADER data and DATA data respectively.
[0068] The extracted contents of the HEADER data part include: ISO version information, file description information (file name, creation time, creator, creation software information), and IFC version information.
[0069] The extracted contents of the DATA data section include: the master data of the IFC format model.
[0070] (2) Use SPF parser for analysis:
[0071] ①Acquire ISO version information based on HEADER data, and then adapt SPF.InputFramework class based on ISO version information;
[0072] ② According to the data structure of the SPF.InputFramework class, convert the DATA data, that is, according to the data logical structure, store each row of data in the DATA data as a data entity containing ID, Key value, and List value. The example is as follows:
[0073] A row of data in the original ifc format file: #39=IFCDERIVEDUNITELEMENT(#29,1);
[0074]
[0075] For a row of data in ifc, "#3=IFCCARTESIANPOINT((0.,0.));", #3 is converted to ID; IFCCARTESIANPOINT is converted to Key value; the value in brackets (#29,1) is converted to List queue for storage, where #29 is a subset of the row of data (#39), and the List of #29 is obtained and stored in the List queue of #39. This process is implemented by calling the SPF.Parser class.
[0076] ③Perform the previous operation on each row of data in DATA, and finally obtain multiple data entities, which are temporarily stored to form a neutral file data integration body (spf-model).
[0077] Step 3: Data conversion
[0078] Ifc version configuration process is as follows Figure 2 shown.
[0079] (1) Based on the IFC information of the HEADER data obtained in step 2(1) (e.g. IFC2x3),
[0080] According to the IFC version information, the corresponding IFC configuration class program (IFCInputConfig) of the IFC data is found through the IFCInputSession version matching program.
[0081] (2) Extract data entities from the neutral file data collection body (spf-model), and match the key value in each data entity with the specific entity class method name in the matching IFCInputConfig version configuration class program (i.e., the implementation method in the IFCInputConfig configuration class, such as entity-project-IFCPROJECT) through the HASH algorithm of the SPRING framework of JAVA to quickly retrieve elements for matching. The IFCInputConfig version configuration class program uses the same data hierarchy as the IFC format file for mapping, and performs data conversion using the specific entity class conversion method (with the same method name as the IFCInputConfig version configuration class, such as Kernel.IFC2xKernelConfig.IFCPOJECT). The converted data results are stored in the corresponding entity of the same name in the AECMate Data data structure (with the same method name as the IFCInputConfig version configuration class, through name matching); after all data entities in the neutral file data collection body are converted and stored according to the corresponding entity method of the IFC configuration class program, the final building information model data structure aecmate-data is formed.
[0082] Figure 1 It is an AEC Mate Data structure diagram, that is, the target building information model data structure to be generated by the present invention, which specifically includes four aspects: entity information, relationship information, attribute information, and shape information. Among them, the entity information represents a component entity, such as a door, the attribute information includes the attribute information of all entities, such as length, width, height, area, material, type, etc., the shape information includes the shape information of all entities, such as coordinate information, rotation information, vertex information, normal information, etc., which attributes of each entity in the entity information are associated with the attribute information is determined by the relationship information, and which shapes of each entity in the entity information are associated with the shape information is determined by the relationship information.
[0083] Figure 2 It is the ifc version configuration flow chart;
[0084] IFCInputSession: Implements the InputSession interface by extending AbstrctInputSession. IFCInputSession accepts the input stream as a constructor parameter. By implementing the abstract method createEntityInstanceInputFactory(), it selects the specific configuration class (IFC2xInputConfig, IFC4x3InputConfig).
[0085] Configuration classes such as IFC2xInputConfig and IFC4x3InputConfig are specific configuration classes corresponding to the files of various versions of IFC. Configurations can be combined to assemble a complete configuration using IFC modules (such as Actor, DateTime, Kernel, etc.) as the minimum configuration unit.
[0086] In order to reduce redundant code and improve operating efficiency, the program directly performs a large amount of inheritance processing in each sub-version, making the program more streamlined and highly maintainable. Due to the large differences between major versions, the definition is rewritten to facilitate the maintenance of each version and reduce coupling.
[0087] aecmate-exchange-ifc-input:
[0088] Based on the aecmate-exchange-spf-inputframework framework, it is designed for IFC input programs. Different Spring Configs are formed for different IFC versions.
[0089] Figure 3 It is the data flow diagram of Ifc file, in which aecmate-exchange-spf-parser neutral file parsing software is the core program for parsing characters from the input stream. It is a parser, and its core purpose is to parse the file from beginning to end and generate conversion data structure in the process.
[0090] The aecmate-exchange-spf-model data structure is a conversion data structure during the neutral file parsing process. It is a temporary transitional data structure that is cleaned up and not stored after the parsing is completed.
[0091] aecmate-exchange-spf-inputframework is a framework for neutral file data input conversion, which can support IFC and any kind of neutral file data input. It uses Spring's IoC framework, that is, a small conversion program is defined for each entity, and then configured with Spring. In the future, you can consider using another more efficient IoC framework. In theory, you can customize a program based on the above two modules instead of this one.
[0092] aecmate-exchange-ifc-input is based on the aecmate-exchange-spf-inputframework framework, and forms different Spring Configs for different IFC versions.
[0093] Figure 5 yes Figure 2 The next step of the decomposition is the IFC version configuration class program structure diagram, which contains corresponding instructions or mapping instructions with ifc files.
Claims
1. A method for parsing the IFC format of a building information model, characterized by: Convert the BIM data in IFC format into a neutral data file, and then convert the neutral data file into the building information model data structure aecmate-data, including parsing preparation, IFC format file processing, and data conversion; The parsing preparation includes constructing an SPF parser module and an IFC version configuration module; wherein the SPF parser module is used to parse ISO data according to the ISO-10303-21 standard, and the IFC version configuration module is used to redefine all objects and classes of the IFC data architecture according to the IFC version; IFC format file processing includes traversing all the information of the IFC file and parsing it using the SPF parser to form a neutral data file; Data conversion is used to convert the neutral data file into the final building information model data structure.
2. A method for parsing a building information model IFC format according to claim 1, characterized in that: The SPF parser module includes SPF.InputFramework class and SPF.Parser class, wherein the SPF.ImputFramework class is an ISO version configuration class file, which specifically defines the data logical structure of each ISO version and the conversion operation of related data; the SPF.Parser class is a data processing class, which includes two main functions. One main function is to convert the input original data into a data entity containing ID, Key value, and List value according to the data logical structure defined by the SPF.InputFramework class, wherein the ID represents the unique number of the original IFC data, the Key value represents the related names of the entity data, relationship data, attribute data and shape data of the IFC, and the List value represents the content and specific value of the IFC entity; the other main function is to merge the data with the inclusion relationship after the data conversion.
3. A method for parsing a building information model IFC format according to claim 1 or 2, characterized in that: Versions of the ISO-10303-21 standard include: ISO 10303-21:1994, ISO 10303-21:2002, ISO 10303-21:2016.
4. A method for parsing a building information model IFC format according to claim 3, characterized in that: The IFC version configuration module includes an IFCInputConfig version configuration program and an IFCInputSession version matching program; wherein the IFCInputConfig version configuration program is used to support the conversion of all IFC versions on the market into a building information model data structure, including the definition of entity data, relationship data, attribute data and shape data, and the corresponding conversion methods of related entities; the IFCInputConfig version configuration class program adopts the same data hierarchy and the same method name as the IFC format file, so as to facilitate the mapping of the entities of the ifc data structure to the entity method names of the IFCInputConfig version configuration class; The IFCInputSession version matching program is used to find the corresponding IFC version configuration class program through IFC version information.
5. A method for parsing a building information model IFC format according to claim 4, characterized in that: Entity data includes: project information, site information, building information, floor information, component type, and component information; Relationship data includes: aggregation relationship, deduction relationship, associated attribute relationship, associated type relationship, associated decoration relationship, and connection relationship; Attribute data includes: attribute set, single-value attribute, list attribute, and combination attribute; Shape information includes: general entities, geometric shapes, scans, parametric sections, and special-shaped sections.
6. A method for parsing a building information model IFC format according to claim 5, characterized in that: IFC format file processing specifically includes: (1) Traverse all the information of the IFC file: read the IFC file information into the computer memory, and obtain the HEADER data and DATA data respectively. The extracted contents of the HEADER data part include: ISO version information, file description information, and IFC version information, wherein the file description information includes the file name, creation time, creator, and creation software information; the extracted contents of the DATA data part include: the master data of the IFC format model. (2) Use SPF parser for analysis: Get the ISO version information based on the HEADER data, and then adapt the SPF.InputFramework class based on the ISO version information; According to the data logical structure of the SPF.InputFramework class, the DATA data is converted, that is, each row of data in the DATA data is stored as a data entity containing ID, Key value, and List value according to the data logical structure; Perform the previous operation on each row of data in DATA, and finally obtain multiple data entities. These data entities are temporarily stored to form a neutral file data integration body.
7. A method for parsing a building information model IFC format according to claim 6, characterized in that: Step 3: Data conversion is as follows: (1) According to the IFC version information of the acquired HEADER data, the matching IFCInputConfig version configuration class program is found through the IFCInputSession version matching program; (2) Extract data entities from the neutral file data collection, and match the key value in each data entity with the specific entity class method name in the matching IFCInputConfig version configuration class program through the HASH algorithm of JAVA's SPRING framework to quickly retrieve elements for matching. The IFCInputConfig version configuration class program uses the same data hierarchy as the IFC format file for mapping, and performs data conversion using the conversion method of the specific entity class. The converted data results are stored in the corresponding entities of the AECMate Data data structure with the same name. After all data entities in the neutral file data collection are converted and stored according to the corresponding entity methods of the IFC configuration class program, the final building information model data structure aecmate-data is formed.
Citation Information
Cited By
BIM modeling method and device based on IFC component template, equipment and medium
CN119989469A
