Net height analysis method, device, equipment and readable storage medium for BIM model
By phased division of the net high analysis tasks of the BIM model and matching the calculation nodes, the problem of low net high analysis efficiency in the existing technology is solved, and the coordinated processing of multi-tool-end and real-time feedback of the results is realized, and the accuracy and efficiency of the construction of the BIM model are improved.
Patent Information
- Application Number
- CN202111235719.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-22
- Publication Date
- 2025-08-22
- Estimated Expiration
- 2041-10-22
AI Technical Summary
The existing desktop software technology is difficult to meet the coordinated processing of net high analysis of BIM models, resulting in low net high analysis efficiency and difficult to effectively improve the BIM model.
By obtaining the net height analysis task of the BIM model submitted by the tool side, performing phase division, and performing net height calculation based on the use of bandwidth matching computing nodes, and feedback the results to the tool side to realize the coordinated processing of multiple tool side.
The response efficiency and execution efficiency of net high calculations are improved, the construction accuracy of the BIM model is ensured, and the real-time display and adjustment of net high calculation results are achieved.
Smart Images

Figure CN113987615B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer-aided design technology, and in particular to a clear height analysis method, device, equipment and readable storage medium for a BIM model. Background Art
[0002] In the field of computer-aided design, Building Information Modeling (BIM) tools are often used to design building models. For areas with limited space, dense pipelines, or areas that must meet clear height standards, clear height analysis and calculations are necessary to identify areas that do not meet clear height requirements and avoid subsequent design changes. Therefore, accurate and efficient clear height analysis of BIM models is particularly important.
[0003] Existing technical solutions utilize desktop software technology. For example, MagiCAD desktop software can perform net height analysis, including clear height analysis settings, analysis area selection, desired clear height input, and result report output. However, calculating the clear height of a BIM model typically requires collaboration among multiple people, and existing desktop software technology struggles to meet this collaborative processing requirement. This results in low net height analysis efficiency, making it difficult to effectively improve the BIM model. Summary of the Invention
[0004] In view of this, an embodiment of the present invention provides a clear height analysis method, device, equipment and readable storage medium of a BIM model to solve the problem that existing desktop software technology is difficult to meet the collaborative processing of clear height analysis.
[0005] According to a first aspect, an embodiment of the present invention provides a method for analyzing the net height of a BIM model, comprising: obtaining a net height analysis task of a target BIM model submitted by at least one tool end, the net height analysis task including a corresponding net height calculation model; dividing the net height calculation of the target BIM model into stages, and obtaining the bandwidth used for each stage; matching the computing nodes corresponding to each stage based on the bandwidth used; inputting the component data corresponding to each computing node into the net height calculation model, and calculating the net height calculation result of the target BIM model; and feeding back the net height calculation result to the tool end so that the tool end can view the net height calculation result.
[0006] The BIM model clear height analysis method provided by an embodiment of the present invention obtains the clear height analysis task of the target BIM model submitted by at least one tool end, calculates the clear height of the target BIM model based on the clear height calculation model, and feeds back the clear height calculation results to the tool end, thereby realizing the collaborative processing of clear height analysis by multiple tool ends. After obtaining the clear height calculation results, they are fed back to the tool end for viewing, ensuring that the clear height calculation can be displayed in real time on the tool end, facilitating each tool end to adjust the BIM model according to the clear height calculation results, and ensuring the construction accuracy of the target BIM model. By dividing the clear height calculation process into stages and matching corresponding computing nodes for each stage, the response efficiency of the clear height calculation is improved, and the execution efficiency of the purification detection task is guaranteed.
[0007] In combination with the first aspect, in a first implementation of the first aspect, the net height calculation of the target BIM model is performed based on the net height calculation model to determine the net height calculation result, including: downloading the component data corresponding to the target BIM model based on the net height analysis task; inputting the component data into the net height calculation model to obtain the net height calculation result corresponding to the target BIM model.
[0008] The clear height analysis method of the BIM model provided by the embodiment of the present invention performs clear height calculation by downloading component data corresponding to the clear height analysis task, thereby avoiding repeated analysis of the same component data and improving the clear height calculation efficiency of the BIM model.
[0009] In combination with the first embodiment of the first aspect, in the second embodiment of the first aspect, downloading the component data corresponding to the target BIM model based on the clear height analysis task includes: obtaining the working unit component corresponding to the target BIM model; compressing the working unit component to obtain a compressed file corresponding to the target BIM model; downloading the compressed file to obtain the component data corresponding to the target BIM model.
[0010] The clear height analysis method of the BIM model provided in an embodiment of the present invention compresses and downloads the target BIM model in units of work unit components. As a result, there is no need to repeat the clear height analysis of the same work unit, so that the clear height calculation results corresponding to the same work unit can be reused, further ensuring the efficiency of the clear height calculation.
[0011] In combination with the second implementation of the first aspect, in the third implementation of the first aspect, downloading the compressed file to obtain the component data corresponding to the target BIM model includes: downloading the compressed file to a shared file; and extracting the component data corresponding to the target BIM model from the shared file.
[0012] The clear height analysis method of the BIM model provided by an embodiment of the present invention downloads a compressed file to a shared file, and directly extracts the component data corresponding to the compressed file from the shared file when performing clear height calculation, thereby reducing the number of component data downloads and ensuring the efficiency of clear height calculation.
[0013] In combination with the second embodiment of the first aspect, in the fourth embodiment of the first aspect, the component data is input into the clear height calculation model to obtain the clear height calculation result corresponding to the target BIM model, including: parsing the component data to determine the multiple floors and floor room spaces corresponding to the target BIM model; dividing each of the floor room spaces into areas and calculating the clear height of the components intersecting each area; inputting the floors, the floor room spaces, all areas of the floor room spaces and the clear height of the components in each area into the clear height calculation model to obtain the clear height calculation result.
[0014] In combination with the fourth embodiment of the first aspect, in the fifth embodiment of the first aspect, the floor, the floor room space, all areas of the floor room space and the net height of the components in each area are input into the net height calculation model to obtain the net height calculation result, including: monitoring the total amount of calculation messages corresponding to the net height calculation task; and scheduling the net height calculation task based on the total amount of calculation messages.
[0015] The clear height analysis method of the BIM model provided in an embodiment of the present invention divides the floor room space into multiple areas, calculates the clear height of the components corresponding to each area, and finally outputs the clear height calculation result according to the clear height calculation model, thereby realizing the full calculation and analysis of the clear height calculation task.
[0016] In combination with the first aspect, in the sixth implementation of the first aspect, the net height calculation result is fed back to the tool end so that the tool end can view the net height calculation result, including: performing a stage-by-stage display of the net height calculation result to determine the progress of the net height calculation; and feeding back the net height calculation result and the net height calculation progress to the tool end.
[0017] The clear height analysis method of the BIM model provided in the embodiment of the present invention can dynamically reflect the processing progress of the clear height analysis task in real time by displaying the clear height calculation results and the clear height calculation progress, thereby improving the user experience.
[0018] According to the second aspect, an embodiment of the present invention provides a clear height analysis device for a BIM model, comprising: an acquisition module for acquiring a clear height analysis task of a target BIM model submitted by at least one tool end, wherein the clear height analysis task includes a corresponding clear height calculation model; a division module for dividing the clear height calculation of the target BIM model into stages and obtaining the usage bandwidth of each stage; a matching module for matching the computing nodes corresponding to each stage based on the usage bandwidth; a calculation module for inputting the component data corresponding to each of the computing nodes into the clear height calculation model to calculate the clear height calculation result of the target BIM model; and a feedback module for feeding back the clear height calculation result to the tool end so that the tool end can view the clear height calculation result.
[0019] The BIM model clear height analysis device provided by an embodiment of the present invention obtains the clear height analysis task of the target BIM model submitted by at least one tool end, calculates the clear height of the target BIM model based on the clear height calculation model, and feeds back the clear height calculation results to the tool end, thereby realizing the collaborative processing of clear height analysis by multiple tool ends. After obtaining the clear height calculation results, they are fed back to the tool end for viewing, ensuring that the clear height calculation can be displayed in real time on the tool end, facilitating each tool end to adjust the BIM model according to the clear height calculation results, and ensuring the construction accuracy of the target BIM model. By dividing the clear height calculation process into stages and matching corresponding computing nodes for each stage, the response efficiency of the clear height calculation is improved, and the execution efficiency of the purification detection task is guaranteed.
[0020] According to the third aspect, an embodiment of the present invention provides an electronic device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the clear height analysis method of the BIM model described in the first aspect or any one embodiment of the first aspect by executing the computer instructions.
[0021] According to a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the clear height analysis method of the BIM model described in the first aspect or any one embodiment of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the specific embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0023] Figure 1 A schematic diagram of a clear height analysis system for a BIM model according to an embodiment of the present invention is shown;
[0024] Figure 2 A schematic diagram showing applications related to the collaborative platform and clear height analysis in an embodiment of the present invention is shown;
[0025] Figure 3 A schematic diagram of a storage module corresponding to clear height detection in an embodiment of the present invention is shown;
[0026] Figure 4 is a flow chart of a clear height analysis method of a BIM model according to an embodiment of the present invention;
[0027] Figure 5 is another flow chart of a clear height analysis method of a BIM model according to an embodiment of the present invention;
[0028] Figure 6 is another flow chart of a clear height analysis method of a BIM model according to an embodiment of the present invention;
[0029] Figure 7 A schematic diagram showing the phase division of the clear height calculation process in an embodiment of the present invention is shown;
[0030] Figure 8 A schematic diagram showing determination of the clear height of a component in an embodiment of the present invention is shown;
[0031] Figure 9 A schematic diagram of scheduling for clear height calculation in an embodiment of the present invention is shown;
[0032] Figure 10 A schematic diagram showing the clear height calculation progress and clear height calculation results in an embodiment of the present invention;
[0033] Figure 11 is a structural block diagram of a clear height analysis device for a BIM model according to an embodiment of the present invention;
[0034] Figure 12 It is a schematic diagram of the hardware structure of the electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0035] To make the purpose, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are 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 those skilled in the art without making creative efforts shall fall within the scope of protection of the present invention.
[0036] The clear height analysis method of the BIM model provided in the embodiment of the present invention can collaboratively process the BIM model and perform clear height analysis through a cloud server, thereby realizing collaborative processing and real-time sharing of clear height analysis process data. At the same time, the rule setting, calculation processing and data storage of the clear height analysis can all be implemented in the cloud, so that the clear height analysis is no longer restricted by the user's hardware configuration.
[0037] Figure 1 The figure shows an optional schematic diagram of a BIM model clear height analysis system, which includes a tool side, a collaborative platform, and related applications for clear height analysis. The tool side is the design software running on the client, and the collaborative platform is the web-based platform. Users submit work units on the tool side, that is, submit the BIM model design results in the work unit to the collaborative platform, and initiate the clear height analysis task through the corresponding desktop operation interface on the cloud. The submit button on the tool side is bound to the cloud address. When the user clicks submit, the corresponding BIM model will be uploaded to the bound address, that is, uploaded to the cloud.
[0038] The design software on the tool side uploads the designed BIM model to the collaborative platform. The user initiates the net height detection on the web side of the net height analysis system, submits the task and queues it for processing, downloads the BIM model to the storage module, calculates and analyzes the net height of the BIM model, and returns the net height analysis results to the tool side software so that designers can view the net height analysis results in real time. Figure 1 The net height analysis application described above runs on a background server, such as the cloud.
[0039] Specifically, Figure 2 A schematic diagram of the collaborative platform and clear height analysis related applications is shown. The user logs in to the collaborative platform, and the clear height analysis task is initiated on the web side of the clear height analysis system, which effectively alleviates the occupation of the user's local resources. Through the communication of data information between the cloud and the desktop, the clear height calculation results on the cloud are returned to the tool-side software, so that the results of the BIM model can be viewed in real time.
[0040] It should be noted that a BIM model includes multiple work units, such as water supply and drainage, electrical, mechanical and electrical, HVAC, etc. The specific division of work units is based on actual project requirements and there is no restriction on it here.
[0041] Specifically, Figure 3The image shows the storage module corresponding to clear height detection, which stores data during the clear height analysis process. Work units (basic component data and component geometry data) are stored in a distributed storage module (such as OBS); temporary calculation result data is stored in a shared file storage module (such as NAS); and clear height application data is stored in a structured relational database (such as MySQL). Some temporary data during the calculation process, such as processing progress information, is stored in a distributed cache (such as Redis).
[0042] The net height application data mainly includes: (1) detection space: the space created by the user on the web page according to the needs; (2) detection task: the detection task created by the user in a certain detection space; (3) detection result: the net height results of all components after the net height analysis and calculation; (4) grid: the grid calculated and split according to a certain accuracy for the building floor, used to calculate the net height of the component. The grid may intersect with the room / space / area, or may not intersect with any room / space / area and only belong to the floor; (5) the relationship between the grid and the detection result: the net height calculation of the component is analyzed at the granularity of each grid, and the net height result data of the component is related to the grid; (6) room space area bounding box data: the bounding box data of all rooms / spaces / areas, used to display the room / space / area on the web page.
[0043] Of course, the design of the clear height analysis system in the embodiment of the present invention is not limited to the above Figures 1 to 3 As shown, other methods can also be used to implement it, which is not limited here and can be set accordingly according to actual needs.
[0044] According to an embodiment of the present invention, an embodiment of a clear height analysis method for a BIM model is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0045] In this embodiment, a clear height analysis method of a BIM model is provided, which can be used for the above-mentioned electronic devices, such as background servers, computers, etc. In this embodiment, a background cloud server is taken as an example. Figure 4 : is a flow chart of a clear height analysis method of a BIM model according to an embodiment of the present invention. Figure 4 As shown, the process includes the following steps:
[0046] S11, obtaining a net height analysis task of a target BIM model submitted by at least one tool end.
[0047] Among them, the clear height analysis task includes the corresponding clear height calculation model.
[0048] The user designs the target BIM model on the tool side. When the net height analysis of the target BIM model is required, the user submits the net height analysis task of the target BIM model through the tool side. The net height analysis task includes the corresponding net height calculation model, which is generated based on the net height analysis rules. What kind of component data of the target BIM model is needed, and what work units are involved in the net height analysis, are selected by the user on the tool side. For a net height analysis task, the work units involved and the net height analysis rules need to be included. The analysis rules include grid accuracy size, analysis height, lifting plate, etc. The specific net height analysis rules can be designed accordingly according to actual needs, and there is no limitation on them here.
[0049] It should be noted that the net height analysis tasks submitted by multiple tool terminals can be determined according to actual needs. As mentioned above, the tool terminal submits the work unit involved in each net height analysis task and the net height calculation model containing the net height analysis rules to the collaborative platform, that is, uploads it to the background server, such as the cloud. For the same target BIM model, net height analysis is performed on multiple net height analysis tasks initiated by multiple tool terminals. Under the same work unit and net height analysis rules, the background server can only perform one net height calculation without repeated calculations multiple times, and directly reuse the previous net height analysis result data. Specifically, the storage granularity of the data is based on the work unit, version and analysis rules, rather than the granularity of a single task. All data with the same work unit, version and analysis rules refer to the same data. And it is a comprehensive full-scale calculation and analysis. The resulting result data meets the user's complex filtering queries. There is no need to recalculate and analyze under each condition, which greatly improves the overall processing capability.
[0050] S12, dividing the net height calculation of the target BIM model into stages, and obtaining the bandwidth used in each stage.
[0051] Considering that the net height calculation process is relatively cumbersome, the net height calculation process is split into steps, that is, the net height calculation process is divided into different processing stages, and the bandwidth required for each processing stage is obtained respectively.
[0052] For the background server, it may need to process the net height analysis tasks initiated by multiple tool ends at the same time. It can set up multiple computing nodes to match the corresponding computing nodes according to the bandwidth used by the net height analysis tasks. For example, downloading the BIM model requires a higher bandwidth. At this time, the download task of the net height analysis task can be deployed to the computing node with high bandwidth. The computing tasks in the net height analysis task have high CPU / memory requirements. At this time, the computing tasks can be deployed to the computing node with high-performance CPU.
[0053] S13, matching computing nodes corresponding to each stage based on the used bandwidth.
[0054] The backend server deploys each processing stage to differentiated computing nodes based on the bandwidth required for each processing stage. For example, the total data size of a target BIM model of a 30-story building can reach about 5G. Downloading it will occupy a relatively large amount of network bandwidth and storage resources. Therefore, the backend server can deploy the download stage to a computing node with high bandwidth.
[0055] S14: Input the model data corresponding to each calculation node into the net height calculation model to obtain the net height calculation result of the target BIM model.
[0056] The backend server inputs the model data corresponding to each calculation node involved in the clear height analysis into the clear height calculation model to perform clear height calculation analysis of the target BIM model. There is no restriction on the clear height calculation model used here, and it can be set accordingly based on actual conditions.
[0057] In order to improve the response efficiency of each processing stage of the net height calculation, the background server can use an asynchronous message mechanism for processing, and package the net height calculation task into an MQ message. The MQ message includes: the detection task ID number, the start execution time and end execution time of the calculation task; the work unit to be analyzed and the version number; and the relevant calculation rules.
[0058] like Figure 7 As shown, the net height calculation is divided into the download phase, the calculation phase, and the storage phase. In the download phase, the background server performs the data download service; in the calculation phase, the background server performs the calculation task; in the storage phase, the background server performs the result upload task, the result recording task, and the error recording task. Specifically, the entire net height calculation process includes 5 MQ message queues: (1) Data download queue: Receives the net height analysis task initiated by the user. The data download service consumes messages from this queue. Each message corresponds to a processing task. After the data is successfully downloaded, it is sent to the calculation queue. (2) Calculation queue: The calculation service consumes messages from this queue and sends them to the upload queue after the calculation is successful. (3) Upload queue: The upload service consumes messages from this queue and sends them to the execution record queue after the upload is successful. (4) Execution record queue: After the task is completely processed and successful, it will enter this queue record. (5) Error queue: The messages of tasks with calculation errors will enter this error queue.
[0059] S15, feeding back the net height calculation result to the tool end, so that the tool end can view the net height calculation result.
[0060] After processing a clear height analysis task, the backend server obtains the corresponding clear height analysis results. These clear height analysis results can be saved in a file or other format. For example, a file stores the clear height analysis results of the target BIM model, the corresponding component clear heights, the corresponding floor space elevations, and so on.
[0061] The backend server feeds the net height analysis results back to the tool side. As mentioned above, the tool side is used to design the target BIM model. After the net height analysis results are fed back to the tool side, the tool side can display the net height analysis results corresponding to the current BIM model, providing a reference for users to improve the target BIM model, thus achieving real-time processing of the net height analysis task.
[0062] Specifically, the backend server stores the source of the net height analysis task. After determining the net height analysis result, the backend server can feed the net height analysis result back to the corresponding tool end based on the source. The source of each net height analysis task can be the address of the desktop end where the tool end is located, or the unique identifier of the desktop end, etc.
[0063] The BIM model clear height analysis method provided in this embodiment obtains the clear height analysis task of the target BIM model submitted by at least one tool end, calculates the clear height of the target BIM model based on the clear height calculation model, and feeds the clear height calculation results back to the tool end. This enables the collaborative processing of clear height analysis by multiple tool ends. After obtaining the clear height calculation results, they are fed back to the tool end for review, ensuring that the clear height calculation can be displayed in real time on the tool end, facilitating each tool end to adjust the BIM model based on the clear height calculation results, thereby ensuring the accuracy of the target BIM model. By dividing the clear height calculation process into stages and matching corresponding computing nodes for each stage, the response efficiency of the clear height calculation is improved, and the execution efficiency of the purification detection task is guaranteed.
[0064] In this embodiment, a clear height analysis method of a BIM model is provided, which can be used for the above-mentioned electronic devices, such as background servers, computers, etc. In this embodiment, a background cloud server is taken as an example. Figure 5 : is a flow chart of a clear height analysis method of a BIM model according to an embodiment of the present invention. Figure 5 As shown, the process includes the following steps:
[0065] S21: Obtain a net height analysis task of a target BIM model submitted by at least one tool end, wherein the net height analysis task includes a corresponding net height calculation model. Detailed descriptions refer to the corresponding descriptions of the above embodiments, which will not be repeated here.
[0066] S22: The net height calculation of the target BIM model is divided into stages, and the bandwidth used in each stage is obtained. Detailed descriptions refer to the corresponding descriptions of the above embodiments, which will not be repeated here.
[0067] S23, matching computing nodes corresponding to each stage based on bandwidth usage. Detailed descriptions refer to the corresponding descriptions of the above embodiments, which will not be repeated here.
[0068] S24: Input the model data corresponding to each calculation node into the net height calculation model to obtain the net height calculation result of the target BIM model.
[0069] Optionally, the clear height calculation includes a downloading stage, and the above step S24 may include:
[0070] S241: Download component data corresponding to the target BIM model based on the clear height analysis task.
[0071] A target BIM model typically encompasses three disciplines: architecture, mechanical and electrical engineering, and structure. It is composed of several work units. For example, a target BIM model for a 30-story building contains nearly 20,000 components. When performing a net height analysis of the target BIM model, the backend server can download the corresponding component data based on the net height analysis task.
[0072] Specifically, the above step S241 may include:
[0073] (1) Obtain the work unit components corresponding to the target BIM model.
[0074] The work unit components are components contained in each work unit. The backend server can parse the target BIM model, extract the multiple work units corresponding to the target BIM model, and extract the work unit components contained in each work unit.
[0075] (2) Compress the work unit components to obtain the compressed file corresponding to the target BIM model.
[0076] To ensure efficient transmission of the target BIM model, the backend server can compress each work unit component to save transmission bytes. Specifically, the backend server compresses the target BIM model and transmits all work unit component JSON and geometry zip files within each work unit using gzip compression. This reduces the amount of network data transmitted to approximately 10% of the original data size, improving transmission efficiency by approximately 10 times. The size of the compressed JSON and zip files of a single work unit component is defined as approximately 10MB. After compression, the network transmission bytes of a 10MB file are approximately 1MB.
[0077] (3) Download the compressed file to obtain the component data corresponding to the target BIM model.
[0078] The backend server adopts a multi-threaded mechanism to download compressed files, namely the compressed work unit component JSON and geometry zip files, and uses high-bandwidth processing nodes to download multiple compressed files at the same time, while controlling the number of compressed files downloaded to avoid bandwidth congestion leading to data download failure.
[0079] As an optional implementation, the above step (3) may include:
[0080] (31) Download the compressed file to a shared file.
[0081] Considering that multiple tool terminals can collaboratively process the net height calculation of the target BIM model, the background server can download a compressed file containing multiple work units and work unit components to a shared file, so that each tool terminal can obtain the relevant component data of the target BIM model.
[0082] (32) Extract component data corresponding to the target BIM model from the shared file.
[0083] When executing calculation tasks, the background server can extract the required component data from the shared file to input the component data into the net height calculation model to complete the net height calculation of the target BIM model.
[0084] It should be noted that the downloaded compressed files can be saved in the shared file storage NAS or in the shared file directory corresponding to a processing node, so as to meet the user's requirements for high-performance storage and the storage capacity under the IDC private deployment, so that both the calculation service and the upload service can read the downloaded compressed files, and even other product modules such as collision checking can read the same version of the work unit component data.
[0085] S242: Input the component data into the net height calculation model to obtain the net height calculation result corresponding to the target BIM model.
[0086] After obtaining the component data, the backend server can input the component data into the net height calculation model to complete the net height calculation of the target BIM model.
[0087] Specifically, the above step S242 may include:
[0088] (1) Analyze component data and determine the multiple floors and floor room spaces corresponding to the target BIM model.
[0089] The backend server can query the spatial sub-items corresponding to the target BIM model and obtain the floors and floor room spaces of the target BIM model. Specifically, the backend server merges and processes the component data of all work units of the target BIM model, parses out the component set A and floor room spaces in all floors, and analyzes the relevant wall and column components of each floor. The target BIM model is composed of component data and geometric data of multiple work units. If all the data is loaded in during the calculation process, there will be a problem of excessive data serialization. To solve the data serialization problem, the backend server reads the file data one by one, serializes them one by one, and then merges the objects to solve the memory overflow problem caused by excessive file data serialization.
[0090] A multi-threaded mechanism is used to project all the walls and columns of each floor space, search and calculate the maximum outer contour of the floor bottom surface, record all the two-dimensional vertex information of the outer contour and its minimum and maximum vertices, calculate the height of the floor, and construct the floor bounding box data.
[0091] (2) Divide the room space on each floor into zones and calculate the net height of the components intersecting each zone.
[0092] The backend server uses a multi-threaded mechanism to grid each floor space and calculate the net height of each component intersected by the grid. Using the minimum and maximum vertex information of the two-dimensional vertices of the floor, according to the accuracy of the square grid, starting from the minimum point in the lower left corner, the vertex coordinates of each grid are calculated to the right and up. Generally, part of the grid area on the rightmost and topmost sides will be outside the two-dimensional outline of the floor bottom surface. The intersection of the floor outline and the grid outline is used to cut off the excess area of the grid to form a non-square and possibly irregular polygonal grid. The polygonal grid is a finer grid that records all the two-dimensional vertex information of the fine grid outline and its minimum and maximum vertices. Use this fine grid to intersect the bounding box with the component set A of the floor to calculate the component list B belonging to each grid, such as Figure 8 shown.
[0093] (3) Input the net height of the floor, the room space on the floor, all areas of the room space on the floor, and the components of each area into the net height calculation model to obtain the net height calculation results.
[0094] The backend server uses a multi-threaded mechanism to project the room spaces within each floor to calculate the floor and room space outlines, and then calculate the intersecting meshes for each room space. Specifically, the bounding box of the floor's fine mesh is intersected with the bounding box of the room space to calculate the mesh list within that room space. Based on the mesh intersection data calculated from the bounding box, the two-dimensional intersection of the room floor and the grid plane is then calculated. This makes the identification of mesh intersections more accurate and significantly reduces the calculation of 2D outline intersections.
[0095] The net height calculation model then inputs all grids for each floor, floor-to-floor room, room space, and components within each grid into the net height calculation result to obtain the net height calculation results for the target BIM model. A net height plan distribution diagram can be output by floor space on the web page, and specific components can be located in the 3D visualization model.
[0096] Through multi-threaded analysis of BIM data, the outer contours of floors are calculated using building walls and columns, and fine grids are calculated using two-dimensional plane intersection. The net height of grid components is calculated using the fine grid bounding box data. The bounding box data is first used to roughly calculate the intersection of the room space and the grid. Then, based on the rough calculation data, two-dimensional plane intersection is used to more accurately calculate the grid without the need for full-scale high-consumption calculations to improve performance. Finally, the net height data is obtained according to the net height calculation model, thereby achieving a full calculation and analysis of the target BIM model, which can meet complex filtering queries.
[0097] As an optional implementation, the above step (3) may include:
[0098] (31) Monitor the total amount of calculation messages corresponding to the net height calculation task.
[0099] Since computing services are relatively heavy and take a relatively long time to compute, in order to improve the throughput of net height computing tasks, the backend server can dynamically and elastically scale the net height computing service. Specifically, the backend server uses the MQ message monitoring service to monitor the total amount of computing messages in the computing queue. The setting rule is M = MQ / Threshold - P, where Threshold is a pre-set fixed value (Threshold>=3), MQ is the total amount of computing messages in the computing queue, P is the number of currently started computing nodes, and M is the number of computing nodes that need to be dynamically scaled.
[0100] (32) Schedule the net height calculation tasks based on the total amount of calculation messages.
[0101] The backend server uses the public cloud image service start and stop capabilities to flexibly schedule net high computing tasks by real-time monitoring of the total amount of computing messages. When the total amount of computing messages increases to trigger the set rules, it can dynamically start a batch of computing nodes; when the total amount of computing messages decreases to a certain level, it can destroy a batch of computing nodes, but will retain the original computing nodes, such as Figure 9 shown.
[0102] This embodiment adopts an elastic scheduling method to meet the parallel computing needs of multiple users by dynamically creating and destroying elastic cloud servers (ECS) on demand, while also greatly reducing production costs.
[0103] S25, feeding back the net height calculation result to the tool end so that the tool end can view the net height calculation result. Detailed descriptions refer to the corresponding descriptions of the above embodiments, which will not be repeated here.
[0104] The net height analysis method of the BIM model provided in this embodiment performs net height calculation by downloading the component data corresponding to the net height analysis task, thereby avoiding repeated analysis of the same component data and improving the net height calculation efficiency of the BIM model. By compressing and downloading the target BIM model in units of work unit components, there is no need to repeat the net height analysis of the same work unit, so that the net height calculation results corresponding to the same work unit can be reused, further ensuring the net height calculation efficiency. By downloading the compressed file to a shared file, the component data corresponding to the compressed file is directly extracted from the shared file when performing the net height calculation, the number of component data downloads is reduced, and the net height calculation efficiency is guaranteed. By dividing the floor room space into multiple areas and calculating the net height of the components corresponding to each area, the net height calculation results are finally output according to the net height calculation model, thereby achieving full calculation and analysis of the net height calculation task.
[0105] In this embodiment, a clear height analysis method of a BIM model is provided, which can be used for the above-mentioned electronic devices, such as background servers, computers, etc. In this embodiment, a background cloud server is taken as an example. Figure 6 : is a flow chart of a clear height analysis method of a BIM model according to an embodiment of the present invention. Figure 6 As shown, the process includes the following steps:
[0106] S31: Obtain a net height analysis task of a target BIM model submitted by at least one tool end, wherein the net height analysis task includes a corresponding net height calculation model. Detailed descriptions refer to the corresponding descriptions of the above embodiments, which will not be repeated here.
[0107] S32: The net height calculation of the target BIM model is divided into stages, and the bandwidth used in each stage is obtained. Detailed descriptions refer to the corresponding descriptions of the above embodiments, which will not be repeated here.
[0108] S33, matching computing nodes corresponding to each stage based on bandwidth usage. Detailed descriptions refer to the corresponding descriptions of the above embodiments, which will not be repeated here.
[0109] S34: Input the model data corresponding to each calculation node into the net height calculation model to calculate the net height calculation result of the target BIM model. Detailed descriptions refer to the corresponding descriptions of the above embodiments, which will not be repeated here.
[0110] S35, feeding back the net height calculation result to the tool end, so that the tool end can view the net height calculation result.
[0111] Specifically, the above step S35 may include:
[0112] S351, presenting the net height calculation results in stages to determine the net height calculation progress.
[0113] The net height calculation process is divided into a download phase, a calculation phase, and a storage phase. Accordingly, the net height calculation progress includes the download progress, the calculation progress, and the result upload progress. The electronic device can display the processing progress information for each phase.
[0114] In order to more accurately display the processing progress information of the net height calculation to the tool end, each processing stage can also be processed more carefully according to the specific logic to reflect a more realistic and accurate progress, such as Figure 10 As shown, in the downloading stage, the background server can download multiple work units in sequence, and update the download progress every time the data of a work unit is downloaded. The calculation formula for the download progress is (5+n1 / N1*10)%, where N1 is the total number of work units and n1 is the number of work units that have been downloaded so far; in the calculation stage, the background server uses the floor as the analysis dimension when calculating the net height. For example, the background server can analyze the component data of the BIM model, merge and analyze the component data of multiple work units, and calculate the number of floors corresponding to the BIM model. The calculation formula for the calculation progress is (20+n2 / N2*20)%, where N2 is the total number of BIM floors and n2 is the number of floors that have been analyzed so far.
[0115] S352: Feedback the net height calculation result and the net height calculation progress to the tool side.
[0116] The backend server pushes the net height calculation results and the progress of the net height calculation to the specific design party that needs to view the net height analysis, that is, the corresponding tool end, to achieve accurate positioning and accurate push of the net height analysis results.
[0117] The clear height analysis method of the BIM model provided in this embodiment can dynamically reflect the processing progress of the clear height analysis task in real time by displaying the clear height calculation results and the clear height calculation progress, thereby improving the user experience.
[0118] This embodiment also provides a BIM model clear height analysis device, which is used to implement the above-mentioned embodiments and preferred implementations. Details already described will not be repeated here. As used below, the term "module" may refer to a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation using hardware, or a combination of software and hardware, is also possible and contemplated.
[0119] This embodiment provides a BIM model clear height analysis device, such as Figure 11Shown, including:
[0120] Acquisition module 41 is configured to acquire a net height analysis task for a target BIM model submitted by at least one tool terminal, wherein the net height analysis task includes a corresponding net height calculation model. For detailed descriptions, please refer to the corresponding descriptions of the above method embodiments and will not be repeated here.
[0121] The division module 42 is used to divide the net height calculation of the target BIM model into stages and obtain the bandwidth used in each stage. Detailed descriptions can be found in the corresponding descriptions of the above method embodiments, which will not be repeated here.
[0122] The matching module 43 is configured to match the computing nodes corresponding to each phase based on the bandwidth used. Detailed descriptions can be found in the corresponding descriptions of the above method embodiments, which will not be repeated here.
[0123] The calculation module 44 is used to input the model data corresponding to each calculation node into the clear height calculation model to calculate the clear height calculation result of the target BIM model. Detailed descriptions can be found in the corresponding descriptions of the above method embodiments, which will not be repeated here.
[0124] The feedback module 45 is used to feed back the net height calculation result to the tool end so that the tool end can view the net height calculation result. Detailed descriptions can be found in the corresponding descriptions of the above method embodiments, which will not be repeated here.
[0125] The BIM model clear height analysis device provided in this embodiment obtains the clear height analysis task of the target BIM model submitted by at least one tool end, calculates the clear height of the target BIM model based on the clear height calculation model, and feeds the clear height calculation results back to the tool end, thereby realizing the collaborative processing of clear height analysis by multiple tool ends. After obtaining the clear height calculation results, they are fed back to the tool end for review, ensuring that the clear height calculation can be displayed in real time on the tool end, facilitating each tool end to adjust the BIM model based on the clear height calculation results, and ensuring the accuracy of the target BIM model. By dividing the clear height calculation process into stages and matching corresponding computing nodes for each stage, the response efficiency of the clear height calculation is improved, and the execution efficiency of the purification detection task is guaranteed.
[0126] The clear height analysis device of the BIM model in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0127] The further functional description of each of the above modules is the same as that of the above corresponding embodiments and will not be repeated here.
[0128] An embodiment of the present invention further provides an electronic device having the above Figure 11 The clear height analysis device of the BIM model is shown.
[0129] See also Figure 12 , Figure 12 is a structural diagram of an electronic device provided by an optional embodiment of the present invention, such as Figure 12 As shown, the electronic device may include: at least one processor 501, such as a CPU (Central Processing Unit), at least one communication interface 503, a memory 504, and at least one communication bus 502. The communication bus 502 is used to realize the connection and communication between these components. The communication interface 503 may include a display screen (Display), a keyboard (Keyboard), and the optional communication interface 503 may also include a standard wired interface and a wireless interface. The memory 504 may be a high-speed RAM memory (Random Access Memory, volatile random access memory) or a non-volatile memory (non-volatile memory), such as at least one disk memory. The memory 504 may optionally be at least one storage device located away from the aforementioned processor 501. The processor 501 may be combined with Figure 11 In the described apparatus, the memory 504 stores an application program, and the processor 501 calls the program code stored in the memory 504 to execute any of the above method steps.
[0130] The communication bus 502 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The communication bus 502 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 12 Only one thick line is used in the diagram, but this does not mean that there is only one bus or one type of bus.
[0131] Among them, the memory 504 may include volatile memory (English: volatile memory), such as random-access memory (English: random-access memory, abbreviated: RAM); the memory may also include non-volatile memory (English: non-volatile memory), such as flash memory (English: flash memory), hard disk drive (English: hard disk drive, abbreviated: HDD) or solid-state drive (English: solid-state drive, abbreviated: SSD); the memory 504 may also include a combination of the above types of memory.
[0132] The processor 501 may be a central processing unit (CPU), a network processor (NP), or a combination of a CPU and a NP.
[0133] The processor 501 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.
[0134] Optionally, the memory 504 is also used to store program instructions. The processor 501 can call the program instructions to implement the application Figures 4 to 6 The clear height analysis method of the BIM model shown in the embodiment.
[0135] An embodiment of the present invention further provides a non-transitory computer storage medium storing computer-executable instructions capable of executing the processing method of the net height analysis method for a BIM model in any of the above-mentioned method embodiments. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory, a hard disk drive (HDD), or a solid-state drive (SSD); the storage medium may also include a combination of the above-mentioned types of memory.
[0136] Although the embodiments of the present invention have been described with reference to the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention. Such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A clear height analysis method for a BIM model, characterized in that: include: Obtaining a net height analysis task for the same target BIM model submitted by at least one tool end, wherein the net height analysis task includes a corresponding net height calculation model, the net height calculation model is generated based on a net height analysis rule, the net height analysis task includes work units and net height analysis rules involved in the net height calculation, and performing a net height calculation under the same work units and net height analysis rules; The net height calculation of the target BIM model is divided into stages, and the bandwidth used in each stage is obtained. The net height calculation is divided into a download stage, a calculation stage, and a storage stage. The download stage is used to perform a net height data download service. The calculation stage is used to perform a net height calculation task. The storage stage is used to perform a net height calculation result upload task, a net height calculation result recording task, and an error recording task. Matching computing nodes corresponding to each stage based on the used bandwidth; Inputting the component data corresponding to each of the calculation nodes into the net height calculation model to calculate the net height calculation result of the target BIM model; The net height calculation result is fed back to each of the tool ends so that each of the tool ends can view the net height calculation result.
2. The method according to claim 1, characterized in that Inputting the component data corresponding to the calculation node in the download phase into the net height calculation model includes: Downloading the component data corresponding to the target BIM model based on the clear height analysis task; The component data is input into the clear height calculation model to obtain the clear height calculation result corresponding to the target BIM model.
3. The method according to claim 2, characterized in that The downloading of the component data corresponding to the target BIM model based on the clear height analysis task includes: Obtaining the work unit component corresponding to the target BIM model; Compressing the work unit components to obtain a compressed file corresponding to the target BIM model; Download the compressed file to obtain component data corresponding to the target BIM model.
4. The method according to claim 3, characterized in that The downloading of the compressed file to obtain component data corresponding to the target BIM model includes: Download the compressed file to a shared file; Component data corresponding to the target BIM model is extracted from the shared file.
5. The method according to claim 3, characterized in that Inputting the component data into the clear height calculation model to obtain a clear height calculation result corresponding to the target BIM model includes: Parsing the component data to determine multiple floors and floor room spaces corresponding to the target BIM model; Divide the room space of each floor into regions and calculate the net height of the components intersecting each region; The floor, the room space on the floor, all areas of the room space on the floor, and the clear height of the components in each area are input into the clear height calculation model to obtain the clear height calculation result.
6. The method according to claim 5, characterized in that The step of inputting the floor, the room space on the floor, all areas of the room space on the floor, and the clear height of components in each area into the clear height calculation model to obtain the clear height calculation result includes: Monitor the total amount of calculation messages corresponding to the net height calculation task; The net height calculation task is scheduled based on the total amount of calculation messages.
7. The method according to claim 1, characterized in that Feeding back the net height calculation result to the tool end so that the tool end can view the net height calculation result includes: Displaying the net height calculation results in stages to determine the net height calculation progress; The net height calculation result and the net height calculation progress are fed back to the tool end.
8. A clear height analysis device for a BIM model, characterized in that: include: An acquisition module is configured to acquire a net height analysis task submitted by at least one tool end for the same target BIM model, wherein the net height analysis task includes a corresponding net height calculation model generated based on a net height analysis rule, and the net height analysis task includes a work unit and a net height analysis rule involved in the net height calculation, and execute a net height calculation under the same work unit and net height analysis rule; a division module, configured to divide the net height calculation of the target BIM model into stages and obtain the bandwidth used in each stage, wherein the net height calculation is divided into a downloading stage, a calculation stage, and a storage stage; the downloading stage is used to execute a net height data download service; the calculation stage is used to execute a net height calculation task; and the storage stage is used to execute a net height calculation result upload task, a net height calculation result recording task, and an error recording task; A matching module, configured to match computing nodes corresponding to each phase based on the used bandwidth; A calculation module, configured to input component data corresponding to each of the calculation nodes into the net height calculation model, and calculate a net height calculation result of the target BIM model; A feedback module is used to feed back the net height calculation result to each of the tool ends, so that each of the tool ends can view the net height calculation result.
9. An electronic device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the clear height analysis method of the BIM model according to any one of claims 1 to 7 by executing the computer instructions.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the clear height analysis method of the BIM model according to any one of claims 1 to 7.
Citation Information
Patent Citations
Data parallel processing method and system
CN105677486A
Building indoor space net height analysis method and device based on BIM model
CN112484695A