IFC format BIM model attribute data storage and high-performance query method and system
By converting the BIM model to IFC format and utilizing multi-threaded parallel storage and query technology, the problem of low performance caused by the large amount of BIM model data is solved, efficient attribute data storage and query is achieved, and data integrity and query efficiency are ensured.
Patent Information
- Application Number
- CN202410539982.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-30
- Publication Date
- 2024-08-30
AI Technical Summary
Due to the large amount of data, the IFC format data of the BIM model has low storage and query performance, and it is difficult to achieve efficient data processing and interaction with existing technology.
After converting the BIM model to IFC format, the data is downloaded to a lightweight engine for processing. The component attribute data is stored in the mongodb database using multi-thread parallelism, and the data storage status is ensured through the mysql status table to achieve high performance. Attribute data query.
It improves the storage and query performance of BIM model attribute data, ensures the integrity and efficiency of data during query, and avoids the limitations of network download and overall analysis of data query.
Smart Images

Figure CN118568089A
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of BIM technology, and in particular relates to a BIM model attribute data storage and high-performance query method and system in IFC format. Background Art
[0002] IFC (Industry Foundation Classes) is a set of information exchange standards developed to solve the information exchange problems caused by the inconsistent formats of BIM software. The purpose of this standard is to enable different professions in the construction industry and different software in the same profession to share the same data source, thereby achieving data sharing and interaction.
[0003] Because the data of BIM models is huge, IFC, as the data model standard of BIM, has a huge amount of model data parsed, and there will be problems with poor performance during storage and query. Summary of the invention
[0004] In order to overcome the above-mentioned deficiencies of the prior art, the present invention provides a BIM model attribute data storage and high-performance query method and system in IFC format, which is used to realize high-performance storage and query of BIM model attribute data.
[0005] According to one aspect of the present invention, a method for storing and querying BIM model attribute data in IFC format is provided, comprising: Convert the BIM model to IFC format to generate the converted file, and initiate a callback after the conversion is successful; Based on the callback, the following attribute data storage operations are performed: write the attribute storage status to the MySQL status table; download the converted file, and read the attributes of the component in multi-threading according to the component dimension, assemble the read component attribute data according to the MongoDB database format, and use the multi-threading established when reading the component attributes to write in parallel to form a model attribute value table and a model component attribute table; update the attribute storage status in the MySQL status table; Based on the received query request, the following attribute data query operation is performed: query the storage status from the MySQL status table, and after querying that the storage is completed, query the attribute data from the model attribute value table and the model component attribute table according to the preset index field.
[0006] The above technical solution converts the BIM model into IFC format and then downloads it to the lightweight engine for data processing. Combining the unique tree structure of BIM model data and the characteristics of MongoDB database, the multi-threaded parallel processing method is used to read the component attribute data, and the same multi-threading is used to store the attribute data of the BIM model component in the MongoDB database to form a model attribute value table and a model component attribute table, thereby achieving high-performance attribute data storage. Compared with the prior art method of uniformly storing BIM model parsed data in an external database, the technical solution extracts the component attribute data through multi-threading and combines the characteristics of MongoDB database for multi-threaded storage, which is more conducive to the query of attribute data and improves the query performance.
[0007] The above technical solution takes into account that it takes a certain amount of time to enter the warehouse, and data query before the completion of the storage is inaccurate. Therefore, a MySQL status table is set to query the storage status. By first determining the storage status of the attribute data and then querying the data, it ensures that the data is complete when the attribute data is queried.
[0008] Furthermore, the technical solution converts the format of the BIM model through the underlying parsing engine, and downloads the converted file to the lightweight engine for processing through callback. The process can use acceleration tools to speed up the download speed and improve the storage speed of the db file. The existing method of directly storing the format-converted file in an external database and downloading data through the network when needed is limited by network performance and cannot use acceleration tools, and cannot achieve high-performance data reading and storage.
[0009] As a further technical solution, when downloading and reading the converted file, it also includes: determining the number of parallel threads; reading the file data in parallel according to the number of threads. The number of threads in this technical solution is limited by the hardware performance. In a scenario with better hardware performance, the speed of reading file data is faster, but compared with the existing technology, before the attribute query, the BIM model format converted file is downloaded first, and the component attribute data is read in parallel in a multi-threaded manner and stored in the database, which is more conducive to high-performance query of attribute data.
[0010] As a further technical solution, when writing into the mongodb database, it also includes: using multi-threading when reading file data to write attribute data in parallel. This technical solution achieves efficient data storage by reusing the multi-threading mechanism when reading data.
[0011] As a further technical solution, when writing into the MongoDB database, it also includes: storing the data of the model component attribute table into the database; and storing the data of the model attribute value table into the database based on the data of the model component attribute table.
[0012] As a further technical solution, when writing to the MongoDB database, it also includes: deduplicating the attribute names of a single model dimension of the model component attribute table, and writing the data after deduplication; deduplicating the attribute values of a single model + type dimension, and writing the data to the corresponding types after deduplication.
[0013] As a further technical solution, when querying attribute data from the model attribute value table and the model component attribute table according to a preset index field, it also includes: querying the attribute value data from the model attribute value table, querying the component data from the model component attribute table according to the queried attribute value data, and selecting the component according to the queried component data.
[0014] As a further technical solution, after selecting a component, the method further includes: displaying the selected component on the front end.
[0015] As a further technical solution, the IFC format conversion of the BIM model also includes: Upload BIM model files in pieces and store them in the database; Convert the BIM model based on the underlying parsing engine to form a converted file in the modeldrive.db format; After the conversion is successful, a callback is initiated to the lightweight engine.
[0016] According to one aspect of the present invention, a BIM model attribute data storage and high-performance query system in IFC format is provided, comprising: The format conversion module is used to convert the BIM model into the IFC format to form a converted file and initiate a callback after the conversion is successful; The data storage module is used to perform the following attribute data storage operations based on the callback: write the attribute storage status into the MySQL status table; download the converted file, and read the attributes of the component in multi-threading according to the component dimension, assemble the read component attribute data according to the mongodb database format, and use the multi-threading established when reading the component attributes to write in parallel to form a model attribute value table and a model component attribute table; update the attribute storage status into the MySQL status table; The data query module is used to perform the following attribute data query operations based on the received query request: query the storage status from the MySQL status table, and after querying that the storage is completed, query the attribute data from the model attribute value table and the model component attribute table according to the preset index field.
[0017] Compared with the prior art, the present invention has the following beneficial effects: After uploading the BIM model to the lightweight engine, the present invention initiates a callback after format conversion of the BIM model through the underlying parsing engine, and then processes the callback through the lightweight engine, downloads the converted file, reads and stores the multi-threaded component attributes, thereby achieving efficient data storage, and confirms that all data have been successfully stored through the storage status data, so that when querying attributes, it can be queried in the complete attribute data.
[0018] The present invention extracts, stores and indexes attribute data before attribute query. Thus, when querying attributes, there is no need to download all parsed data through the network, nor is there any need to query attributes from the overall BIM parsed data. Instead, it is only necessary to query attribute value data from the model attribute value table through the index field, query component data from the model component attribute table based on the queried attribute value data, select components based on the queried component data, and display the selected components on the front end, thereby realizing efficient query of attribute data. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 It is a schematic diagram of a BIM model attribute data storage and high-performance query method in IFC format according to an embodiment of the present invention.
[0020] Figure 2 Schematic diagram of BIM model format conversion according to an embodiment of the present invention.
[0021] Figure 3 Schematic diagram of the timing of storing model attribute data according to an embodiment of the present invention.
[0022] Figure 4 Schematic diagram of model attribute data query timing according to an embodiment of the present invention.
[0023] Figure 5 The figure is a schematic diagram of a model attribute data query process according to an embodiment of the present invention.
[0024] Figure 6 The figure is an ER diagram of a monogodb attribute table after data is stored in a database according to an embodiment of the present invention. DETAILED DESCRIPTION
[0025] In view of the current situation that the amount of BIM model data is huge, resulting in relatively low performance in storage and query of component attribute data, the present invention provides a storage and high-performance query method for component attribute data. The method downloads the file of the BIM model converted into IFC format to a lightweight engine, first reads the component attribute data in a multi-threaded manner, and then writes the component attribute data into a database by the same multi-threading to form a model component attribute table and a model attribute value table. When querying, the index field is used to first check the storage status, then check the model attribute value table, and finally check the model component attribute table, so as to realize high-performance query of component attribute data.
[0026] It should be noted that: Countdownlatch is a multi-threaded synchronization tool class that allows multiple threads to wait in a multi-threaded environment until the previous thread finishes executing.
[0027] MySQL is a relational database that stores data in a format that intuitively reflects the relationships between entities. Relational databases are similar to common tables. The MySQL state table refers to a table created in a MySQL database.
[0028] MongoDb is a non-relational database, or NoSQL database, which stores large amounts of data together in the form of data sets, similar to key-value pairs, graph structures, or documents.
[0029] Model attribute value tables and model component attribute tables refer to tables created in the MongoDb database.
[0030] In some processes described in the specification and claims of the present invention and the above-mentioned drawings, multiple operations appearing in a specific order are included, but it should be clearly understood that these operations may not be performed in the order in which they appear in this document or may be performed in parallel. For example, step 1, step 2, etc. are only used to distinguish different operations, and the sequence number itself does not represent any execution order. In addition, these processes may include more or fewer operations, and these operations may be performed in sequence or in parallel.
[0031] The following will clearly and completely describe the technical solutions of various embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention. Example 1
[0032] This embodiment provides a method for storing and querying BIM model attribute data in an IFC format. A high-performance attribute data query is achieved by performing multi-threaded extraction and storage of component attributes on the data converted from the BIM model into the IFC format.
[0033] like Figure 1 As shown, the method includes: Step 1: Convert the BIM model into IFC format to generate a converted file, and initiate a callback after the conversion is successful.
[0034] Specifically, Figure 2 As shown, the step includes: Step 1.1: The user uploads the BIM model to the lightweight engine through the front-end + external API interface. Since BIM models are usually large, the BIM model file is uploaded after being segmented and recorded in the database.
[0035] Step 1.2: After the model is uploaded, it will be submitted to the underlying parsing engine for format conversion. The lightweight engine initiates a file conversion request. After receiving the file conversion request, the underlying parsing engine converts the BIM model and finally converts it into an IFC format file. After the underlying parsing engine converts the data, it will store it in the modeldrive.db file of sqllite.
[0036] Step 1.3, after the conversion is successful, the underlying parsing engine initiates a conversion success callback to the lightweight engine.
[0037] Step 2, based on the callback, perform the following attribute data storage operations: write the attribute storage status to the MySQL status table; download the converted file, and read the component attributes in multi-threaded manner according to the component dimension, assemble the read component attribute data according to the MongoDB database format, and use the multi-threaded method established when reading the component attributes to perform parallel writing to form a model attribute value table and a model component attribute table; update the attribute storage status in the MySQL status table.
[0038] After receiving the callback, the system of the present invention starts to pull the modeldrive.db file, parses and reads the database file after pulling the file, and performs attribute data query from the file after reading the file to extract the attribute data of the component for storage.
[0039] The above-mentioned pull is to download the modeldrive.db file from the underlying parsing engine to the lightweight engine. In this process, the existing acceleration tools can be used to speed up the download speed. However, when querying the existing attribute data, the data is read from the external database and then queried. The reading process is limited by the network performance and the acceleration tools cannot be used to increase the reading speed.
[0040] The model is converted through the underlying parsing engine, and the model data is parsed into the modeldrive.db file. The parsed modeldrive.db can be downloaded as a file. After the file is downloaded, the database can be read locally, which is faster than reading data from the underlying parsing engine through batches of network transmission. This also makes the lightweight engine more efficient in processing modeldrive.db data.
[0041] This embodiment extracts component attribute data from the overall BIM model data. The extraction process can be implemented in parallel using multiple threads. When storing data in the format of MongoDB data, the same multi-threading can also be used for parallel storage, thereby improving storage performance through thread reuse.
[0042] Specifically, when querying attribute data, Java multithreaded countdownlatch is used for parallel query and reading to improve data storage speed. However, the number of threads that modeldrive.db can read is also limited by hardware conditions, so a thread pool is used to control the number of countdownlatch threads. In this embodiment, the thread pool parameters have 5 core threads, 30 maximum threads, and a bounded queue.
[0043] like Figure 3 As shown in the figure, the process of warehousing model data includes: Step 2.1, after receiving the callback, write the status of the attribute storage to the MySQL status table; Step 2.2, process the callback, start the asynchronous task, and return the conversion success information to the client; Step 2.3, download the modeldrive.db file and use multi-threaded parallel reading of data; Step 2.4, querying and extracting component attribute information from the read data; Step 2.5, assemble the extracted component attribute information according to the MongoDB data format, and then store the MongoDB data in the database; Step 2.6, create a field index in the MongoDB database and return the write success information to the lightweight engine; Step 2.7, update the attribute storage success status in the MySQL status table.
[0044] As an implementation method, reading the modeldrive.db file may be implemented by using the xerial open source technology.
[0045] The specific usage is as follows: 1. Import the SQLite driver pom dependency: <dependency> <groupid> org.xerial< / groupid> <artifactid> sqlite-jdbc< / artifactid> <version> 3.34.0< / version> < / dependency> ; Second, load the driver: Class.forName("org.sqlite.JDBC"); 3. Get the connection: Connection conn = DriverManager.getConnection("jdbc:sqlite:database file name.db"); Fourth, get the Statement object, execute the query statement, and get the result set: Statement stmt = conn.createStatement(); ResultSet rs = stmt.executeQuery("SELECT * FROM table name"); while(rs.next()) { / / Get the field value String name = rs.getString("name"); }; 5. Handle exceptions and close resources: try(){ } catch (SQLException e) { e.printStackTrace(); } finally { rs.close(); stmt.close(); conn.close(); }.
[0046] It should be noted that after reading the model component data, the data storage begins. Because it takes a certain amount of time to store the data, and when querying the attribute data, it is necessary to ensure that the data is complete, so it is necessary to identify whether the model component attribute data has been stored. This identification is completed using the MySQL data table. Because the amount of this identification data is very small, it can be fully implemented using the MySQL status table, and MongoDB is not used for storage.
[0047] The structure of the Mysql status table is as follows.
[0048]
[0049] When the model data is stored in the database, the status in the table is marked as finished. Then the data query will first check this status. If it is finished, the attribute query can be performed.
[0050] When storing attribute data, in order to ensure high-performance storage and query, the data is stored in the MongoDB database in combination with the unique tree structure of the model data. The data storage thread is performed concurrently using the multi-threading when pulling the modeldirve.db file.
[0051] The table structure of the monodb database is as follows.
[0052] Model component property table: { "id": 12, "file_id": 123, "name": "Building Wall[180158]", "categoty_name": "Category name", "element_coord": "[2,3,6],[4,5,7],[79,78,90]", "guid": "jljljlj9--798798ljlkj", "desc": "Component description", "properties": [{ "items": [{ "unit": "Property unit", "value_type": "Attribute value type", "value": "Property value", "name": "Attribute name" }, { "unit": "Property unit", "value_type": "Attribute value type", "value": "Property value", "name": "Attribute name" }], "group": "Attribute group name-Element Specific" }, { "items": [{ "unit": "Property unit", "value_type": "Attribute value type", "value": "Property value", "name": "Attribute name" }, { "unit": "Property unit", "value_type": "Attribute value type", "value": "Property value", "name": "Attribute name" }], "group": "Attribute group name -" }] }; Model attribute value table: { "engineFileId": "modelId", "fileId": "modelId", "integrateId":"1232312", "properties": [ { "name": "Type", "set": [ "Group 10", "M6" ] }, { "name": "Type", "set": [ "Group 10", "M6" ] } ] } The index fields of the model component property table are: engineFileId, elementId, groupName, properties.name, properties.value.
[0053] The index fields of the model attribute value table are: engineFileId, name.
[0054] The data in the model attribute value table is stored based on the attribute data in the model component attribute table. The specific storage logic is: remove duplicates from the attribute name key of a single model dimension in the model component attribute table, and write after removing duplicates; then remove duplicates from the value of a single model + name dimension, and store them under the corresponding name after removing duplicates. The ER diagram of the monogodb attribute table after storage is as follows: Figure 6 shown.
[0055] Step 3, based on the received query request, perform the following attribute data query operation: query the storage status from the MySQL status table, and after querying that the storage is completed, query the attribute data from the model attribute value table and the model component attribute table according to the preset index field.
[0056] This step queries the attribute data based on the table structure data, specifically from the MySQL status table and the model component attribute table and model attribute value table of MongoDB. In other words, the data of model attributes and attribute values are queried from the model attribute value table of MongoDB; after obtaining the attributes, click Search and then query the component list from the model component attribute table. After querying the component list, the front end (such as the web interface) will select the component data.
[0057] The query sequence diagram of component attributes is as follows: Figure 4 As shown, first, the user sends a query request to the lightweight engine through the client, and queries whether the Mongo data exists in the MySQL status table; after the MySQL status table returns that the data exists, the component data is queried in the MongoDB table, and the queried component attribute data is returned to the lightweight engine, and then the lightweight engine returns the query results to the client.
[0058] The specific query process is as follows: Figure 5 As shown, including: Step 3.1, start attribute data query, first query attribute status data from MySQL status table; Step 3.2: When it is found that the property storage is completed, proceed to the next step; when it is found that the property storage is not completed, end the property query; Step 3.3, query attribute filtering data from the mongodb model attribute value table; Step 3.4, query the attribute value filter data from the mongodb model attribute value table; Step 3.5, query the component data corresponding to the attribute value from the mongodb model component attribute table; Step 3.6, when the component data can be found, select the component and display it on the web front end to end the query.
[0059] In view of the fact that the model data is in a tree structure, this embodiment adopts the MongoDB database which is good at storing such data, and establishes an index according to the query dimension field, so that the overall query performance is improved. Example 2
[0060] Based on the same inventive concept as that of Example 1, this embodiment provides an IFC format BIM model attribute data storage and high-performance query system, including: The format conversion module is used to convert the BIM model into the IFC format to form a converted file and initiate a callback after the conversion is successful; The data storage module is used to perform the following attribute data storage operations based on the callback: write the attribute storage status into the MySQL status table; download the converted file, and read the attributes of the component in multi-threading according to the component dimension, assemble the read component attribute data according to the mongodb database format, and use the multi-threading established when reading the component attributes to write in parallel to form a model attribute value table and a model component attribute table; update the attribute storage status into the MySQL status table; The data query module is used to perform the following attribute data query operations based on the received query request: query the storage status from the MySQL status table, and after querying that the storage is completed, query the attribute data from the model attribute value table and the model component attribute table according to the preset index field.
[0061] The above modules can be implemented by referring to the method embodiment, which will not be described in detail here. It should be noted that: The data storage module is also used to execute the following instructions: After receiving the callback, write the status of the attribute storage to the MySQL status table; Process the callback, start the asynchronous task, and return the conversion success information to the client; Download the modeldrive.db file and use multi-threading to read the data in parallel; Query and extract component attribute information from the read data; After assembling the extracted component attribute information according to the MongoDB data format, the MongoDB data is stored in the database; Create a field index in the MongoDB database and return the write success information to the lightweight engine; Update the attribute storage success status in the MySQL status table.
[0062] The data query module is also used to execute the following instructions: Start querying attribute data, first query attribute status data from MySQL status table; When the query finds that the property storage is completed, proceed to the next step; when the query finds that the property storage is not completed, end the property query; Query attribute filtering data from the mongodb model attribute value table; Query attribute values and filter data from the mongodb model attribute value table; Query the component data corresponding to the attribute value from the mongodb model component attribute table; When the component data can be found, select the component and display it on the web front end to end the query.
[0063] It should be noted that the implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method. Therefore, the specific limitations in the implementation methods of the aforementioned modules can be found in the limitations of the BIM model attribute data storage and high-performance query method in the IFC format above, which will not be repeated here.
[0064] In summary, the present invention achieves the following technical effects: The present invention determines the storage status of model data through the MySQL status table to ensure that complete data can be queried when querying component attribute data.
[0065] The present invention adopts multi-threaded parallel storage, and threads can be reused, and adopts countdownlatch in thread pool+java concurrent package to perform parallel control, so that the data storage speed is fast.
[0066] The present invention establishes an index for a MongoDB table, and simultaneously performs a query in combination with the structural characteristics of MongoDB and BIM model data, thereby achieving high query efficiency.
[0067] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0068] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0069] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0070] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0071] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the technical solutions of the embodiments of the present invention.
Claims
1. IFC format BIM model attribute data storage and high-performance query method, It is characterized in that include: Convert the BIM model to IFC format to generate the converted file, and initiate a callback after the conversion is successful; Based on the callback, the following attribute data storage operations are performed: write the attribute storage status to the MySQL status table; Download the converted file, and read the component attributes by multi-threading according to the component dimension. After assembling the read component attribute data according to the MongoDB database format, use the multi-threading established when reading the component attributes to write in parallel to form a model attribute value table and a model component attribute table; update the attribute storage status in the MySQL status table; Based on the received query request, the following attribute data query operation is performed: query the storage status from the MySQL status table, and after querying that the storage is completed, query the attribute data from the model attribute value table and the model component attribute table according to the preset index field.
2. According to the BIM model attribute data storage and high-performance query method in IFC format described in claim 1, It is characterized in that When downloading and reading the converted file, the method also includes: determining the number of parallel threads; and reading the file data in parallel according to the number of threads.
3. According to the BIM model attribute data storage and high-performance query method in IFC format as described in claim 2, It is characterized in that When writing to the MongoDB database, it also includes: utilizing multi-threading when reading file data to write attribute data in parallel.
4. According to the BIM model attribute data storage and high-performance query method in IFC format as described in claim 1, It is characterized in that When writing into the mongodb database, it also includes: storing the data of the model component attribute table into the database; and storing the data of the model attribute value table into the database based on the data of the model component attribute table.
5. According to the IFC format BIM model attribute data storage and high-performance query method of claim 4, It is characterized in that When writing to the MongoDB database, it also includes: deduplicating the attribute name of a single model dimension in the model component attribute table, and writing the data after deduplication; deduplicating the attribute value of a single model + type dimension, and writing the data to the corresponding type after deduplication.
6. According to the IFC format BIM model attribute data storage and high-performance query method of claim 1, It is characterized in that When querying attribute data from the model attribute value table and the model component attribute table according to the preset index field, it also includes: querying the attribute value data from the model attribute value table, querying component data from the model component attribute table according to the queried attribute value data, and selecting the component according to the queried component data.
7. The BIM model attribute data storage and high-performance query method in IFC format according to claim 6, It is characterized in that After selecting the component, it also includes: displaying the selected component on the front end.
8. The BIM model attribute data storage and high-performance query method in IFC format according to claim 1, It is characterized in that IFC format conversion of BIM models also includes: Upload BIM model files in pieces and store them in the database; Convert the BIM model based on the underlying parsing engine to form a converted file in the modeldrive.db format; After the conversion is successful, a callback is initiated to the lightweight engine.
9. IFC format BIM model attribute data storage and high-performance query system, It is characterized in that include: The format conversion module is used to convert the BIM model into the IFC format to form a converted file and initiate a callback after the conversion is successful; The data storage module is used to perform the following attribute data storage operations based on the callback: write the attribute storage status into the MySQL status table; Download the converted file, and read the component attributes by multi-threading according to the component dimension. After assembling the read component attribute data according to the MongoDB database format, use the multi-threading established when reading the component attributes to write in parallel to form a model attribute value table and a model component attribute table; update the attribute storage status in the MySQL status table; The data query module is used to perform the following attribute data query operations based on the received query request: query the storage status from the MySQL status table, and after querying that the storage is completed, query the attribute data from the model attribute value table and the model component attribute table according to the preset index field.
Citation Information
Patent Citations
Synchronizing system for database conversion and method for same
CN105786806A
3D (Three-Dimensional) lightweight conversion method based on BIM (Building Information Modeling) file
CN108647330A
An IFC model storage mode based on Redis and Mongodb
CN109783442A
Data query method and device
CN112035528A
Data query method and device, equipment and storage medium
CN112948427A
