Resource Scheduling Method and System for BIM Model Parsing and Visualization

By introducing resource scheduling methods and systems into BIM model analysis and visualization services, the problem of poor adaptability of cluster deployment is solved, efficient model analysis and visualization is realized, and high concurrency needs of large-scale engineering projects are met.

CN119597407BActive Publication Date: 2025-05-27ZHEJIANG HUADONG ENG DIGITAL TECH CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510143649.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-02-10
Publication Date
2025-05-27
Estimated Expiration
2045-02-10

AI Technical Summary

Technical Problem

Existing BIM model analysis and visualization services have poor adaptability in cluster deployment, resulting in the inability to meet high concurrent access and processing requirements in large-scale engineering projects, affecting system performance and user experience.

Method used

A resource scheduling method and system for BIM model analysis and visualization is provided. Through the service registration center, the appropriate server node is selected according to the load balancing policy to process the model service request, and the distribution and execution of model analysis and visualization tasks are realized.

Benefits of technology

It improves the cluster deployment adaptability of BIM model analysis and visualization services, enhances system scalability, solves the performance bottleneck of stand-alone deployment, and significantly improves model analysis and visualization efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119597407B_ABST
    Figure CN119597407B_ABST
Patent Text Reader

Abstract

The present invention provides a resource scheduling method and system for BIM model parsing and visualization. The method includes: initiating a model service request from a user terminal to a server terminal, where the request parameters at least include a project ID; the service registration center of the server terminal selects a server node with a load lower than a threshold as a transfer station to temporarily receive the model service request; the transfer station classifies the request based on the request name of the model service request, obtains target data based on a public query and feeds it back to the user terminal or continues to execute the following steps; the transfer station verifies the routing identifier carried in the request header of the model service request, obtains the target server node, and forwards the model service request to the target server node; the target server node executes a model parsing or visualization task based on the model service request. The present invention solves the performance bottleneck of single-machine deployment and significantly improves the efficiency of model parsing and visualization.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of building three-dimensional model data conversion, and particularly relates to a resource scheduling method and system for BIM model parsing and visualization. Background Art

[0002] Building Information Modeling (BIM) technology has been widely applied in modern engineering projects. BIM is an integrated digital information management method that expresses the physical and functional characteristics of a building by creating and utilizing digital models. These models not only contain the geometric information of the building, but also include data in multiple aspects such as materials, costs, schedules, and performance, forming a full-life cycle management platform. From design, construction to operation and maintenance, efficient management can be carried out through the BIM model: in the engineering design stage, the BIM model can integrate the designs of various disciplines such as architecture, structure, and mechanical and electrical into a three-dimensional model, effectively discover and solve design conflicts, and improve design efficiency and accuracy; in the construction stage, the BIM model can simulate and rehearse the construction process, optimize the construction plan, and reduce problems and risks that may occur during the construction process; after the building is completed, the BIM model can be used as a digital archive of the building, providing detailed reference data for daily maintenance and facility management.

[0003] Although BIM technology has significant advantages in engineering projects, there are still some inconveniences in browsing and utilizing BIM models at the current stage. First, the BIM model has a large amount of data and high complexity, requiring dedicated software and hardware support, and general computer devices are difficult to meet its performance requirements. Second, the data formats between different BIM software are not unified, resulting in possible information loss or incompatibility problems when the model is converted between different platforms. Third, browsing BIM models requires certain professional knowledge and skills, and non-professionals have difficulties in understanding and operation.

[0004] Currently, there are already some products on the market that support viewing BIM models on the Web side, which lower the usage threshold for relevant staff. However, the BIM parsing and visualization services of these products perform poorly in terms of adaptability for cluster deployment and mostly can only achieve single-machine deployment. For some products that support cluster deployment, the setup steps are rather cumbersome, the data storage locations are inconsistent, and when used crosswise, data needs to be copied to the same location for use, resulting in low efficiency and difficulty in meeting the requirements for model parsing and visualization in large-scale projects. This limitation restricts the wide application and promotion of BIM technology to a certain extent. Especially in large-scale engineering projects that require high-concurrency access and processing, single-machine deployment cannot fully utilize the advantages of BIM technology, affecting system performance and user experience. Therefore, improving the adaptability of BIM parsing and visualization services for cluster deployment and enhancing its system scalability have become urgent problems to be solved currently. Summary of the Invention

[0005] In order to overcome the above-mentioned deficiencies of the prior art and form a complete and systematic cluster deployment solution, the present invention provides a resource scheduling method and system for BIM model parsing and visualization, and specifically adopts the following technical solutions:

[0006] The first aspect of the present invention provides a resource scheduling method for BIM model parsing and visualization, including the following steps:

[0007] S1. Initiate a model service request from the user side to the server side. The model service request includes a request name and request parameters, and the request parameters at least include a project ID;

[0008] S2. The service registration center of the server side selects a server node with a load lower than the threshold as a transfer station according to the current cluster's load balancing strategy, and temporarily receives the model service request;

[0009] S3. The transfer station classifies the request based on the request name of the model service request. If it is a second-type model service request, obtain target data based on a public query and feedback it to the user side. If it is a first-type model service request, continue to execute step S4;

[0010] S4. The transfer station verifies the routing identifier carried in the request header of the model service request. If the routing identifier exists and is a first preset value, use the transfer station as the target server node to execute step S6; if the routing identifier does not exist or exists and is a second preset value, query the server mapping relationship based on the project ID, obtain the target server node IP corresponding to the project ID, and execute step S5;

[0011] S5. Determine whether the target server node IP is the current server node IP. If so, use the transfer station as the target server node and execute step S6; otherwise, add a routing identifier to the request header and set it to the first preset value, or set the original routing identifier to the first preset value, and forward the original model service request to the target server node corresponding to the target server node IP. After the target server node verifies the routing identifier in the request header, it executes step S6;

[0012] S6. The target server node executes a model parsing or visualization task based on the model service request.

[0013] Furthermore, the first type of model service request includes at least a model parsing request or a model visualization request, and the second type of model service request includes at least a parsing progress acquisition request or a model version status query request.

[0014] Furthermore, when the model service request is a model parsing request, the method further includes:

[0015] S0. Select a project and create a new model version under it or select an existing model version, upload the model file corresponding to the newly created or selected model version to the server, and generate a corresponding model parsing request based on the project ID.

[0016] Furthermore, in step S6, executing the model parsing task includes:

[0017] The target server node verifies the model version and initializes the parsing parameters, allocates a corresponding parsing program according to the format of the uploaded model file, and prepares the execution environment for the subprocess using the initialized parsing parameters;

[0018] Start the subprocess, execute the parsing task, and structure the unstructured data of the source file into SQLite database data;

[0019] The target server node monitors the model parsing progress and updates the progress information to Redis for storage, and updates the model version status corresponding to the model in the MySQL database after the parsing task is completed.

[0020] Furthermore, when the model service request is a model parsing request, step S4 further includes:

[0021] Query the server mapping relationship based on the project ID. If the corresponding mapping relationship cannot be found in the server mapping relationship, use the current transfer station as the server node for executing the subsequent parsing task and establish a mapping relationship with the project ID.

[0022] Furthermore, in step S3, obtaining the target data based on the public query and feeding it back to the client includes:

[0023] Query the model parsing progress in Redis and feedback it to the client;

[0024] Alternatively, query the model version status in the MySQL database and feedback it to the client.

[0025] Further, when the model service request is a model visualization request, step S4 further includes:

[0026] Query the server mapping relationship based on the project ID. If the corresponding mapping relationship cannot be found in the server mapping relationship, it is considered that there is no model parsing for this project and visualization cannot be performed, and an exception prompt is returned.

[0027] Further, in step S6, performing the model visualization task includes:

[0028] The target server node queries the relevant data in the SQLite database corresponding to the model according to the model visualization request, performs calculations and processing to generate the required attribute information, and returns it to the client. The client renders the obtained data into a visualization model.

[0029] Further, all model versions corresponding to the same project ID are stored on the same server node, and the server node is used to perform model parsing or visualization tasks.

[0030] The second aspect of the present invention provides a resource scheduling system for BIM model parsing and visualization, which is used to implement the method described in the first aspect above, including:

[0031] A client, which is used to select a project and create a new model version under the project or select an existing model version for uploading, generate a model parsing request, a model visualization request, a parsing progress acquisition request, or a model version status query request, and render the data obtained from the server into a visualization model;

[0032] A server, which includes a service registry and several server nodes, is used to perform server node scheduling according to the model service request of the client, as well as model management, parsing, storage, and visualization processing, and feedback data to the client; it is also used to generate and maintain a server mapping relationship according to the project ID and the allocation situation between each server node.

[0033] Further, the server mapping relationship includes a project ID and server node ID mapping table, and a server node information table, and the server node information table is used to store the server node ID and the corresponding server IP.

[0034] Further, on the server side, for server nodes under the same service registry center, server nodes with the same service name are registered to form a cluster when starting up; for newly added server nodes, they are added to the cluster when their service names are the same as those of other nodes in the cluster.

[0035] The beneficial effects of the present invention are as follows:

[0036] (1) The present invention provides a scheduling method for a BIM parsing system supporting cluster deployment, and this method can be applied to building engineering projects of various scales;

[0037] (2) The present invention takes the project as the mapping point to ensure the unified storage of model data of different versions under the same project, avoiding the situation of multiple copies and redundant storage when cross-using and comparing data between different versions due to decentralized storage, and improving the security, consistency, and availability of data;

[0038] (3) The present invention weakens the concept of master-slave nodes in traditional cluster deployment. Each node in the cluster has the function of a transfer station, and there is no need to deploy and maintain an additional set of transfer services, improving resource utilization and efficiency;

[0039] (4) When building the cluster, the present invention only needs to configure the service name to enable new services to seamlessly access the cluster, thus avoiding manual configuration and complex integration steps, and the plug-and-play feature improves the flexibility and scalability of the system;

[0040] (5) The present invention solves the performance bottleneck of single-machine deployment and significantly improves the model parsing and visualization efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 It is a flowchart of the embodiment of the scheduling method for BIM model parsing and visualization of the present invention.

[0042] Figure 2 It is a flowchart of the model parsing function in the embodiment of the scheduling method for BIM model parsing and visualization of the present invention.

[0043] Figure 3 It is a flowchart of the model visualization function in the embodiment of the scheduling method for BIM model parsing and visualization of the present invention.

[0044] Figure 4 It is a schematic diagram of the architecture of the embodiment of the scheduling system for BIM model parsing and visualization of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0045] Embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present invention are shown in the drawings, it should be understood that the present invention can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. On the contrary, these embodiments are provided to more thoroughly and completely understand the present invention. It should be understood that the drawings and embodiments of the present invention are only for exemplary purposes and are not used to limit the protection scope of the present invention.

[0046] See Figure 1 , the present invention provides a resource scheduling method for BIM model parsing and visualization, including the following steps:

[0047] S1. Initiate a model service request from the user terminal to the server. The model service request includes a request name and request parameters, and the request parameters at least include a project ID;

[0048] S2. The service registration center of the server selects a server node with a load lower than the threshold as a transfer station according to the load balancing strategy of the current cluster to temporarily receive the model service request;

[0049] S3. The transfer station classifies the request based on the request name of the model service request. If it is a first type of model service request, the target data is obtained based on a public query and fed back to the user terminal. If it is a second type of model service request, step S4 is continued;

[0050] S4. The transfer station verifies the routing identifier carried in the request header of the model service request. If the routing identifier exists and is the first preset value, the transfer station is used as the target server node to execute step S6; if the routing identifier does not exist or exists and is the second preset value, the server mapping relationship is queried based on the project ID to obtain the IP of the target server node corresponding to the project ID, and step S5 is executed;

[0051] S5. Determine whether the IP of the target server node is the IP of the current server node. If so, the transfer station is used as the target server node to execute step S6; otherwise, the routing identifier is added to the request header and set to the first preset value or the original routing identifier is set to the first preset value, and the original model service request is forwarded to the target server node corresponding to the IP of the target server node. After the target server node verifies the routing identifier in the request header, step S6 is executed;

[0052] S6. The target server node executes a model parsing or visualization task based on the model service request.

[0053] Among them, the first type of model service request includes a model parsing request or a model visualization request, and the second type of model service request includes a parsing progress acquisition request or a model version status query request.

[0054] In the present invention, model data is managed based on the concepts of project and version. A project is a collection of iterative data of an engineering project model, and a version is the data generated after parsing each iterative version of the model. There can be multiple versions under one project. Throughout the entire life cycle of the project, the data generated by parsing different iterative versions of the same model is uniformly stored under the project through the concept of version. All model versions corresponding to the same project ID are stored on the same server node, and the model parsing or visualization tasks are executed through this server node.

[0055] Based on the above method, the present invention realizes model parsing, storage, visualization, and information query with the project as the core, ensures that model data of different versions under the same project can be stored in the same location, weakens the concept of master and slave nodes in traditional cluster deployment, and each node in the cluster has the function of a transfer station, thereby improving the adaptability of the cluster deployment of BIM model parsing and visualization services, enhancing the system scalability, and forming a complete and systematic cluster deployment solution.

[0056] The method of the present invention will be further described below in conjunction with specific embodiments.

[0057] Embodiment 1

[0058] In this embodiment, the model service request is a model parsing request. Referring to Figure 2 , the method includes the following steps:

[0059] A0. Create a new project or select an existing project on the user side, create a new model version or select an existing model version under the project, upload the model file corresponding to the newly created or selected model version to the server side, and generate a corresponding model parsing request based on the project ID.

[0060] It should be noted that when uploading the model file, it is necessary to confirm whether the previous version has been uploaded. If the previous version has been uploaded, the model uploaded in the new version must be in the same format as the old version. If the previous version has not been uploaded, the model format (DGN, IFC, Revit, etc.) can be freely selected and the model can be uploaded.

[0061] A1. Initiate a model parsing request from the user side to the server side, including the request name and request parameters. The request parameters include the project ID corresponding to the model. Here, the project ID is selected instead of the version ID to ensure that model data of different versions under the same project can be stored in the same location.

[0062] A2. The service registration center on the server side selects a server node with a load lower than the threshold as a transfer station according to the current load balancing strategy of the cluster (default is round-robin) to temporarily receive the model parsing request.

[0063] A3. The transfer station determines that the model parsing request is a type-1 model service request and continues to execute step A4.

[0064] A4. The transfer station verifies the routing identifier carried in the request header of the model parsing request. If the routing identifier exists and is the first preset value (true), the transfer station is used as the target server node to execute step A6; if the routing identifier does not exist or exists and is the second preset value (false), the server mapping relationship is queried based on the project ID: if the mapping relationship exists, it indicates that a previous version of this project has undergone model parsing, and the data of its subsequent versions should be stored in the same location as the data of the previous versions for easy management and cross-use of data. Therefore, it is necessary to obtain the IP of the target server node corresponding to the project ID and execute step A5; if the corresponding mapping relationship cannot be found in the server mapping relationship, the current transfer station is used as the target server node to execute the subsequent parsing task, a mapping relationship is established with the project ID, and step A6 is executed.

[0065] A5. Determine whether the IP of the target server node is the IP of the current server node. If so, the transfer station is used as the target server node to execute step A6; otherwise, add a routing identifier to the request header and set it to the first preset value (true) or set the original routing identifier to the first preset value (true), and forward the original model parsing request to the target server node corresponding to the IP of the target server node. After the target server node verifies the routing identifier in the request header (the routing identifier exists and is the first preset value (true)), step A6 is executed;

[0066] A6. The target server node executes the model parsing task based on the model parsing request, specifically including:

[0067] The target server node performs status verification on the model version (judging whether the current version of the model has been parsed or is being parsed), parameter verification (counting the size of the model file and sorting out the relationship between the main file and the reference files), and format verification (verifying the format of the model source file to ensure that it is the same as the format selected in step A0 and the format of the models parsed in the previous versions to avoid inconsistent data before and after), initializes the parsing parameters, allocates the corresponding parsing program according to the format of the uploaded model file (the model parsing program in this embodiment uses the Bridge series program of Bentley Corporation), and prepares the execution environment for the subprocess using the initialized parsing parameters;

[0068] Start the subprocess to execute the parsing task and structure the unstructured data of the source file into SQLite database data;

[0069] Monitor the model parsing progress, update the progress information to Redis for storage, and update the model version status corresponding to the model in the MySQL database after the parsing task is completed.

[0070] Example 2

[0071] In this embodiment, the model service request is a model visualization request. Refer to Figure 3 , and the method includes the following steps:

[0072] B1. The user selects a model version through the client and initiates a model visualization request to the server, including a request name and request parameters. The request parameters at least include a project ID.

[0073] It should be noted that the reason why the project ID is used as the parameter for verifying the mapping instead of the version ID here is that the mapping relationship is created during model parsing, and it is stipulated in model parsing that the mapping is bound by the project ID. Therefore, it should be consistent here.

[0074] B2. The service registration center of the server selects a server node with a load lower than the threshold as a transfer station according to the load balancing policy of the current cluster, and temporarily receives the model visualization request.

[0075] B3. The transfer station determines that the model visualization request is a first type of model service request and continues to execute step B4.

[0076] B4. The transfer station verifies the routing identifier carried in the request header of the model visualization request. If the routing identifier exists and is the first preset value (true), the transfer station is used as the target server node to execute step B6; if the routing identifier does not exist or exists and is the second preset value (false), the server mapping relationship is queried based on the project ID: if the mapping relationship exists, the IP of the target server node corresponding to the project ID is obtained, and step B5 is executed; if the corresponding mapping relationship cannot be found in the server mapping relationship, it is considered that there is no model parsing for this project and visualization cannot be performed, and an exception prompt is returned.

[0077] B5. It is judged whether the IP of the target server node is the IP of the current server node. If so, the transfer station is used as the target server node to execute step B6; otherwise, the routing identifier is added to the request header and set to the first preset value (true), or the original routing identifier is set to the first preset value (true), and the original model visualization request is forwarded to the target server node corresponding to the IP of the target server node. After the target server node verifies the routing identifier in the request header (the routing identifier exists and is the first preset value (true)), step B6 is executed;

[0078] B6. The target server node executes a model visualization task based on the model service request, specifically including:

[0079] The target server node queries the relevant data in the SQLite database corresponding to the model according to the model visualization request, calculates and processes to generate the required attribute information, and returns it to the user end (Web end). The user end (Web end) renders the acquired data into a visualization model through the iTwin.js framework.

[0080] Example 3

[0081] In this embodiment, the model service request is a parsing progress acquisition request or a model version status query request, and the method includes the following steps:

[0082] C1. The user selects a model version through the user end and initiates a parsing progress acquisition request or a model version status query request to the server end, which specifically includes a request name and request parameters. The request parameters include at least a project ID.

[0083] C2. The service registration center on the server side selects a server node with a load lower than a threshold as a transfer station according to the load balancing strategy of the current cluster, and temporarily receives the parsing progress acquisition request or the model version status query request.

[0084] C3. The transfer station determines that the parsing progress acquisition request or the model version status query request is a second-type model service request, directly obtains the target data based on the public query and feeds it back to the user end, specifically including:

[0085] Query the model parsing progress in Redis and feedback to the user end;

[0086] Alternatively, the model version status is queried in the MySQL database and fed back to the user.

[0087] In this way, a skipping mechanism is implemented for common attribute methods such as parsing progress acquisition and model version status query. There is no need to forward to the mapping server node, and any node can obtain such attributes, thereby improving query efficiency.

[0088] Example 4

[0089] This embodiment shows a resource scheduling system for BIM model parsing and visualization, which is used to implement the method described in the present invention and the above embodiments 1-3, and includes:

[0090] The client side is used to manage projects and allow users to create new model versions under the project or select existing model versions for upload, generate model parsing requests or model visualization requests or parsing progress acquisition requests or model version status query requests, and render the data obtained from the server side into a visual model;

[0091] The server includes a service registration center and several server nodes, and is used to perform server node scheduling according to the model service requests of the client, as well as model management, parsing, storage, and visualization processing, and feedback data to the client; it is also used to generate and maintain the server mapping relationship according to the project ID and the allocation situation among server nodes.

[0092] See Figure 4 , in this embodiment, the client may include mobile devices, PCs, smart TVs, or other terminal devices located in the access layer of the network architecture. Specifically, a web terminal configured on the above devices can be used for human-computer interaction to achieve information input or screen output; and each functional module located in the application layer, including a project management module, an attribute acquisition module, a model parsing module, and a model browsing module, etc., each realizes its corresponding function.

[0093] The server may include a service registration center and multiple server nodes located in the service layer of the network architecture, as well as a MySQL database, Redis, SQLite, and MinlO located in the data layer. Among them, a transfer station module, a model parsing module, a model browsing module, and an attribute acquisition module, etc. are configured on each server node, and are used to respectively realize the corresponding forwarding, model parsing / browsing, and attribute acquisition functions. The MySQL database, Redis, etc. can realize functions such as data storage and public query.

[0094] The client and the server can be connected and interact with data through the service interface layer in the network architecture, so as to implement the resource scheduling method for BIM model parsing and visualization shown in each of the above embodiments of the present invention.

[0095] It should be noted that the above network architecture is only an example given based on the prior art and does not constitute a specific limitation on the system described in the invention.

[0096] As a preferred implementation, in this embodiment, the scheduling strategy for server node scheduling is developed based on the http-proxy-middleware third-party library and acts on each server node in the cluster in the form of a global middleware, so that all server nodes have the function of a transfer station, weakening the concept of master and slave nodes. Therefore, when the service registration center performs task allocation, it can utilize all server nodes and no longer needs to forward to a single master node for processing the mapping relationship.

[0097] As a preferred implementation, in this embodiment, the server mapping relationship includes a project ID and server node ID mapping table, and a server node information table, and the server node information table is used to store the server node ID and the corresponding server IP.

[0098] As a preferred implementation, in this embodiment, Nacos is used as the service registry. On the server side, for server nodes under the same service registry, server nodes with the same service name can form a cluster when starting up; for newly added server nodes, only ensure that the service name in the new node is the same as that in other nodes in the cluster to join the cluster. When a new node is added to the cluster, the new system will encrypt and store the IP corresponding to the new node in the server node information table when the request forwarding step is first executed.

[0099] It should be noted that the method of the embodiment of the present invention can be executed by a single device, such as a computer or a server. The method of this embodiment can also be applied to a distributed scenario and completed by multiple devices cooperating with each other. In such a distributed scenario, one of the multiple devices can only execute one or more steps of the method of the embodiment of the present invention, and these multiple devices will interact with each other to complete the described method.

[0100] It should be noted that some embodiments of the present invention have been described above. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be executed in a different order than in the above embodiments and still achieve the desired result. Additionally, the processes depicted in the figures do not necessarily require the particular order or sequential order shown to achieve the desired result. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0101] The embodiments of the present invention are intended to cover all such substitutions, modifications, and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present invention shall be included within the protection scope of the present invention.

Claims

1. A resource scheduling method for BIM model parsing and visualization, characterized in that: The steps include: S1. Initiate a model service request from the user end to the server end, wherein the model service request includes a request name and request parameters, and the request parameters include at least a project ID; S2. The service registration center on the server side selects a server node with a load lower than the threshold as a transfer station according to the load balancing strategy of the current cluster to temporarily receive the model service request; S3, the transfer station classifies the request based on the request name of the model service request. If it is a second-class model service request, the transfer station obtains the target data based on the public query and feeds it back to the user end. If it is a first-class model service request, the transfer station continues to execute step S4; S4, the transfer station verifies the routing identifier carried in the request header of the model service request. If the routing identifier exists and is a first preset value, the transfer station is used as the target server node to execute step S6; if the routing identifier does not exist or exists and is a second preset value, the server mapping relationship is queried based on the project ID to obtain the target server node IP corresponding to the project ID, and step S5 is executed; S5. Determine whether the target server node IP is the current server node IP. If so, take the transfer station as the target server node and execute step S6; otherwise, add a routing identifier in the request header and set it to the first preset value or set the original routing identifier to the first preset value, and forward the original model service request to the target server node corresponding to the target server node IP. The target server node verifies the routing identifier in the request header and then executes step S6; S6. The target server node executes a model parsing or visualization task based on the model service request.

2. The resource scheduling method for BIM model parsing and visualization according to claim 1, characterized in that: The first type of model service request includes at least a model parsing request or a model visualization request, and the second type of model service request includes at least a parsing progress acquisition request or a model version status query request.

3. The resource scheduling method for BIM model parsing and visualization according to claim 2, characterized in that: When the model service request is a model parsing request, the method further includes: S0. Select a project and create a new model version under it or select an existing model version, upload the model file corresponding to the newly created or selected model version to the server, and generate a corresponding model parsing request based on the project ID.

4. The resource scheduling method for BIM model parsing and visualization according to claim 3, characterized in that: In step S6, executing the model parsing task includes: The target server node verifies the model version and initializes the parsing parameters, allocates the corresponding parsing program according to the uploaded model file format, and uses the initialized parsing parameters to prepare the execution environment of the subprocess; Start the child process, perform the parsing task, and structure the unstructured data of the source file into SQLite database data; The target server node monitors the model parsing progress and updates the progress information to Redis for storage, and updates the model version status corresponding to the model in the MySQL database after the parsing task is completed.

5. The resource scheduling method for BIM model parsing and visualization according to claim 4, characterized in that: When the model service request is a model parsing request, step S4 further includes: The server mapping relationship is queried based on the project ID. If the corresponding mapping relationship cannot be found in the server mapping relationship, the current transfer station is used as the server node for executing subsequent parsing tasks and a mapping relationship is established with the project ID.

6. The resource scheduling method for BIM model parsing and visualization according to claim 2, characterized in that: In step S3, obtaining target data based on the public query and feeding it back to the user end includes: Query the model parsing progress in Redis and feedback to the user end; Alternatively, the model version status is queried in the MySQL database and fed back to the user.

7. The resource scheduling method for BIM model parsing and visualization according to claim 2, characterized in that: When the model service request is a model visualization request, step S4 further includes: The server mapping relationship is queried based on the project ID. If the corresponding mapping relationship cannot be found in the server mapping relationship, it is considered that the project has not yet had a model parsed and cannot be visualized, and an exception prompt is returned.

8. The resource scheduling method for BIM model parsing and visualization according to claim 2, characterized in that: In step S6, executing the model visualization task includes: The target server node queries the relevant data in the SQLite database corresponding to the model according to the model visualization request, calculates and processes to generate the required attribute information, and returns it to the user end, which renders the acquired data into a visualization model.

9. The resource scheduling method for BIM model parsing and visualization according to any one of claims 1 to 8, characterized in that: All model versions corresponding to the same project ID are stored on the same server node, and model parsing or visualization tasks are performed through the server node.

10. A resource scheduling system for BIM model parsing and visualization, used to implement the method according to any one of claims 1 to 9, characterized in that: include: The client side is used to select a project and create a new model version under the project or select an existing model version for uploading, generate a model parsing request or a model visualization request or a parsing progress acquisition request or a model version status query request, and render the data obtained from the server side into a visual model; The server side includes a service registration center and several server nodes, which are used to schedule server nodes according to the model service requests of the user side, as well as model management, analysis, storage and visualization processing, and feedback data to the user side; it is also used to generate and maintain server mapping relationships based on the project ID and the allocation between each server node.

11. The resource scheduling system for BIM model parsing and visualization according to claim 10, characterized in that: The server mapping relationship includes a project ID and server node ID mapping table, and a server node information table, and the server node information table is used to store the server node ID and the corresponding server IP.

12. The resource scheduling system for BIM model parsing and visualization according to claim 10, characterized in that: On the server side, for server nodes under the same service registration center, server nodes with the same registered service name at startup form a cluster; for newly added server nodes, they are added to the cluster when the service name is consistent with the service name of other nodes in the cluster.

Citation Information

Patent Citations

  • Security implementation method and device for collaborative design software, equipment and storage medium

    CN114629704A

  • BIM (Building Information Modeling) collaborative engine platform of real-time cloud computing architecture and implementation method

    CN114912050A