Method, device and equipment for checking rationality of building model in real time and storage medium
By monitoring user editing operations and using the processor's idle time to conduct rationality checks on building models, the problem of inefficiency in the existing technology is solved, real-time rationality checks and results preservation are achieved, and the efficiency of building model inspection is improved.
Patent Information
- Application Number
- CN202410948985.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-11-08
AI Technical Summary
The existing architectural model rationality inspection methods are inefficient and cannot be carried out in real time, resulting in users having to perform inspection operations repeatedly, wasting time and resources.
By listening to user editing operations, the processor's idle time is used to check the rationality of the building model in real time, the correlation element is determined through derivation operations, and rationality checks are performed when the processor is idle, and the inspection results are obtained and stored.
Real-time rationality inspection of building models is realized, and inspection efficiency is improved. Users can obtain inspection results without additional operations. The inspection results are permanently saved, making it easy to query at any time.
Smart Images

Figure CN118916956A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of computer-aided design, and in particular to a method, device, equipment and storage medium for real-time checking of rationality of a building model. Background Art
[0002] With the development of the construction industry, the modeling of construction projects in engineering quantity calculation software is becoming more and more complex, and the requirements for the accuracy and rationality of the drawing of the building model itself are becoming higher and higher. The rationality check of the building model is the premise for accurately calculating the engineering quantity. If the engineering quantity is directly calculated without a rationality check, the subsequent engineering quantity calculation may fail or fail to obtain the engineering quantity. At that time, the waste of manpower and material resources and the cost of rework caused by looking back at the building model for adjustment are unacceptable. The current engineering quantity calculation software performs a rationality check of the building model in the following way: after the model is drawn, the entire building model is checked as a whole, and the inspection results are output for the user to view. The existing overall inspection method is relatively lagging and inefficient compared to the user's current model drawing. If the user wants to know whether the model is correct, he needs to repeatedly perform the inspection or calculation operation, which cannot meet the user's urgent need to know the inspection result immediately after drawing a model. In addition, once the rationality check begins, it is an overall inspection process that cannot be terminated, which will waste a lot of time and resources. Therefore, it is necessary for those skilled in the art to solve the technical problems of insufficient timeliness and low efficiency in the rationality check of the building model. Summary of the invention
[0003] The purpose of the present invention is to provide a method, device, equipment and storage medium for real-time checking the rationality of a building model, which can utilize the idle time of the processor to timely perform rationality detection on the building model, thereby improving the efficiency of rationality detection.
[0004] According to one aspect of the present invention, a method for checking the rationality of a building model in real time is provided, the method comprising:
[0005] Monitoring a user editing operation on a target building model, and determining a changed primitive corresponding to the user editing operation from the target building model;
[0006] Performing a derivation operation on the changed graphic element according to a preset association rule, wherein the derivation operation is used to determine an associated graphic element associated with the changed graphic element from the target building model;
[0007] When it is detected that the target processor is in an idle state, a rationality check operation is performed on the target processor according to a preset check rule on the changed primitive and the associated primitive;
[0008] Get and store the results of a sanity check operation.
[0009] Optionally, the performing a derivation operation on the changed primitive according to a preset association rule includes:
[0010] When the changed primitive is a parent primitive, setting the child primitive belonging to the parent primitive as an associated primitive;
[0011] Setting other graphics elements that have overlapping positional relationships with the changed graphics element as associated graphics elements; and / or,
[0012] Other graphic elements that have a preset mandatory association relationship with the changed graphic element are set as associated graphic elements.
[0013] Optionally, the performing a derivation operation on the changed primitive according to a preset association rule includes:
[0014] Acquire the changed graphic element from a preset change message queue, and perform a deduction operation on the changed graphic element according to the association rule to determine the associated graphic element; wherein the change message queue is used to store the changed graphic elements corresponding to each user editing operation respectively;
[0015] The changed graphic elements and the associated graphic elements form a graphic element set to be checked, and the graphic element set to be checked is stored in a preset message queue to be checked.
[0016] Optionally, when the target processor is detected to be in an idle state, performing a rationality check operation on the changed primitive and the associated primitive according to a preset check rule on the target processor includes:
[0017] When it is detected that the target processor is in an idle state, acquiring the to-be-checked primitive set from the to-be-checked message queue;
[0018] A rationality check operation is performed on each primitive in the set of primitives to be checked according to the check rule on the target processor.
[0019] Optionally, performing a rationality check operation on each primitive in the set of primitives to be checked according to the check rule on the target processor includes:
[0020] Determine whether the check duration of the rationality check operation is greater than a preset time threshold;
[0021] If so, the rationality check operation is stopped, and the rationality check operation is performed on the target processor again on the remaining primitives in the set of primitives to be checked when the target processor is in an idle state next time.
[0022] Optionally, after determining the changed graphic element corresponding to the user editing operation from the target building model, the method further includes:
[0023] On the target processor, the derivation operation and the rationality check operation are alternately performed by utilizing each opportunity when the target processor is in an idle state.
[0024] Optionally, the obtaining and storing the check result of the rationality check operation includes:
[0025] The inspection result is converted into a text in JSON format and stored in the disk of the specified terminal.
[0026] In order to achieve the above object, the present invention also provides a device for real-time checking the rationality of a building model, the device comprising:
[0027] A monitoring module, used for monitoring a user editing operation on a target building model, and determining a changed primitive corresponding to the user editing operation from the target building model;
[0028] A derivation module, configured to perform a derivation operation on the changed graphic element according to a preset association rule, wherein the derivation operation is used to determine an associated graphic element associated with the changed graphic element from the target building model;
[0029] A checking module, configured to perform a rationality checking operation on the changed primitive and the associated primitive according to a preset checking rule on the target processor when detecting that the target processor is in an idle state;
[0030] The result module is used to obtain and store the check results of the rationality check operation.
[0031] In order to achieve the above-mentioned purpose, the present invention also provides a computer device, which specifically includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the steps of the method for real-time checking the rationality of a building model introduced above are implemented.
[0032] In order to achieve the above object, the present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for real-time checking of rationality of a building model introduced above are implemented.
[0033] In the present invention, users only need to draw the building model normally without any additional operations. By utilizing the idle time of the processor, the rationality check of the building model associated with the current drawing operation is automatically performed without the user's awareness, and the inspection results are permanently saved, which can be queried and processed by the user at any time. The method of automatically performing rationality checks using the idle time of the processor can solve the problem that users need to actively operate to start the inspection, and realize real-time inspection and processing of results. In addition, in the present invention, by deeply analyzing the impact of the user's current operation on the building model, the scope of the building model to be inspected is accurately determined, which solves the problem of having to inspect the entire model, thereby improving the inspection efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0035] Figure 1 An optional flow chart of the method for real-time checking of rationality of a building model provided in the first embodiment;
[0036] Figure 2 Another optional flow chart of the method for checking the rationality of a building model in real time provided in the first embodiment;
[0037] Figure 3 A timing flow chart of a method for real-time checking of rationality of a building model provided in Embodiment 1;
[0038] Figure 4 A schematic diagram of an optional composition structure of the device for real-time checking of rationality of a building model provided in the second embodiment;
[0039] Figure 5 A schematic diagram of an optional hardware architecture of a computer device provided in Example 3. DETAILED DESCRIPTION
[0040] In order to make the purpose, technical scheme and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0041] Embodiment 1
[0042] The embodiment of the present invention provides a method for checking the rationality of a building model in real time, such as Figure 1 As shown, the method specifically comprises the following steps:
[0043] Step S101: monitoring a user editing operation on a target building model, and determining a changed primitive corresponding to the user editing operation from the target building model.
[0044] Among them, the user editing operations include: editing of graphic elements (addition, deletion, modification) and editing of graphic element attributes; among them, graphic elements refer to the smallest unit of the model established in the engineering quantity calculation software, such as: a wall, a door, etc.; graphic element attributes refer to the specific parameters of the graphic elements, such as: the thickness, width, length, etc. of the wall.
[0045] In this embodiment, the user's operations on the model are monitored in real time, and the change data (ie, the changed primitives) caused by the operations are summarized.
[0046] Step S102: performing a derivation operation on the changed graphic element according to a preset association rule, wherein the derivation operation is used to determine an associated graphic element associated with the changed graphic element from the target building model.
[0047] Among them, the changed elements and associated elements are elements that affect each other. For example, if the thickness of a wall is modified, then the door on the wall is the associated element.
[0048] In this embodiment, a plurality of association rules may be set in advance according to building codes and historical experience, and when the changed graphic element is determined, the associated graphic elements that need to be subjected to a rationality check operation may be determined according to one or more association rules.
[0049] It should be noted that the user needs to perform editing operations on each element during the modeling process, and the user will only process one or part of the elements at the same time. Therefore, when checking the rationality of the building model, there is no need to check the entire model. Instead, it is only necessary to check the rationality of the target element involved in the user's current editing operation and the associated elements associated with the target element. Other unaffected elements do not need to be checked for rationality.
[0050] Step S103: when it is detected that the target processor is in an idle state, a rationality check operation is performed on the target processor according to a preset check rule on the changed primitive and the associated primitive.
[0051] The target processor may be a processor on a client terminal running the engineering quantity calculation software, or may be a processor on another designated terminal. In addition, the check rule adopts an existing rule for checking the rationality of modeling.
[0052] It should be noted that the processor in the user terminal running the quantity calculation software is idle most of the time. In this embodiment, the idle time of the processor is utilized to perform the model rationality check operation and output the check result.
[0053] Step S104: Acquire and store the check result of the rationality check operation.
[0054] In this embodiment, the inspection results are stored and displayed to the user in a timely and accurate manner. In addition, when the software is restarted, the display of the inspection results can also be restored.
[0055] It should be noted that the existing overall inspection method has many shortcomings. On the one hand, the overall inspection must be started by the user's active operation. The user needs to remember to perform the inspection in time when drawing and editing the model in order to find the problems in the model and deal with them accordingly. Once the user does not check and continues to edit the model, the problems that may exist in the model itself will accumulate and cannot be discovered; on the other hand, no matter what modifications the user has made to the model, once the inspection starts, it is an overall inspection that cannot be terminated. Not only is the efficiency low, but it also wastes time and resources. For example, the user may only modify the thickness of a wall, and when performing the inspection, all models will be checked, which is completely unnecessary; on the other hand, the results after the user's inspection are only visible at the moment and must be dealt with immediately. Once the user has checked but it is not convenient to deal with it at the moment, then the next time he wants to come back to deal with it, he can only re-execute the inspection, which is time-consuming and labor-intensive, and wastes the user's resources in vain.
[0056] In view of the above problems, the embodiment of the present invention does not require the user to perform any additional operations. It only needs to draw and edit the model normally. The system will automatically give whether the model is reasonable or not without the user's perception, and the inspection results are permanent and can be queried and processed by the user at any time. In this embodiment, by reasonably planning the idle time of the computer processor, the associated impact brought about by the change of the building model is analyzed in real time, and the complex inspection tasks are divided into independent task units. Each task unit is evenly distributed to the various idle times of the computer processor using an algorithm for step-by-step processing, which can greatly shorten the inspection time and reduce the memory and time requirements for each inspection. Through this embodiment, the building model can be drawn and inspected, and the rationality inspection results of the building model can be obtained in real time.
[0057] Specifically, the step S102 includes:
[0058] The associated entities are determined according to at least one of the following relationships:
[0059] Parent-child relationship: when the changed element is a parent element, the child element belonging to the parent element is set as an associated element;
[0060] Overlapping relationship: setting other graphics elements that have overlapping positional relationships with the changed graphics element as associated graphics elements;
[0061] Mandatory relationship: other graphics elements that have a preset mandatory association relationship with the changed graphics element are set as associated graphics elements.
[0062] In this embodiment, the meaning of the derivation operation is to calculate other graphics elements associated with the changed graphics element. The parent-child relationship, overlapping relationship and mandatory relationship used to calculate the associated graphics elements are obtained by summarizing the existing rules in the building rules and the current quantity calculation software. Among them, the mandatory relationship includes the constraint relationship in the specification requirements. For example, when a column is edited, other columns in the same position on the upper and lower floors of the building should be regarded as associated graphics elements and checked together; the mandatory relationship also includes the mandatory constraint relationship in the industry rules. For example, the rationality of the hole core mold depends on the hollow floor slab on which it is located. Therefore, when the hollow floor slab is changed, the hole core mold on it should be regarded as an associated graphics element.
[0063] In practical applications, in order to ensure the comprehensiveness and accuracy of rationality checks, the above-mentioned parent-child relationships, overlapping relationships, and mandatory relationships must be used simultaneously to determine the associated graphics elements, and omissions can be avoided by superimposing the results.
[0064] Furthermore, the step S104 includes:
[0065] The inspection result is converted into a text in JSON format and stored in the disk of the specified terminal.
[0066] In this embodiment, possible future expansion and changes are taken into consideration, and a more common and popular format is used at present. The inspection results are organized in a certain format, saved as text in json format, and saved to disk. The next time the user opens the software, it is loaded back from the disk and displayed to the user. Of course, in actual applications, the inspection results can also be converted into files in other formats, such as: text files txt, binary files, professional database software DataBase, software-defined file formats, etc. The specific form is not limited, and the same purpose can be achieved. In this embodiment, each inspection result is stored and restored through serialization and deserialization operations.
[0067] Furthermore, the method further comprises:
[0068] When the overall check instruction is received, an overall rationality check operation is performed on the target building model, and a complete check result of the overall rationality check operation is acquired and stored.
[0069] Since the rationality check of this embodiment only checks part of the model, it is also necessary to be compatible with the existing overall rationality check operation of the model, and save the results of the overall rationality check together to facilitate unified viewing by users, so that the check results have no errors or omissions.
[0070] like Figure 2 As shown, it is a schematic diagram of the overall process of the embodiment of the present invention, wherein the core process of the embodiment of the present invention is marked by a small sun; it is repeated without the user's perception, and the process input is the user's editing operation. After the derivation operation, the to-be-checked graphic element is obtained, and then the inspection rule of the to-be-checked graphic element is executed at the appropriate time and position to obtain the inspection result, and the inspection result is processed and sorted into a user-recognizable style, and pushed to the result subsystem for display of the result. For the user, operations such as editing the graphic element and modifying the attributes can be normally performed, and these operations will be fed back to the system. The system will obtain the graphic element operated by the user, and deduce and calculate accordingly, analyze the changed graphic element and the associated graphic element and sort them together as the to-be-checked graphic element and wait for the system to be idle for execution. After the system is executed, if there is an unreasonable result, it will remind the user to check it. At this time, the user can view the result information, locate the specific graphic element and the unreasonable rule description, and make adjustments accordingly. If the user does not want to process it at present, it will not affect the user's current operation. The result will always exist until the user processes it.
[0071] In addition, after step S101, the method further includes:
[0072] The relevant information of the changed graphic element is stored in a preset change message queue.
[0073] In this embodiment, the created change message queue is used to store the relevant information of multiple change primitives corresponding to the editing operations of each user; for example, the ID information of each change primitive is stored in the change message queue.
[0074] At this time, the step S102 specifically includes:
[0075] Step A1: obtaining a changed graphic element from the change message queue, and performing a derivation operation on the changed graphic element according to the association rule to determine an associated graphic element;
[0076] Step A2: The changed primitives and the associated primitives form a set of primitives to be checked, and the set of primitives to be checked is stored in a preset message queue to be checked.
[0077] In this embodiment, in order to implement regular rationality checks while performing user operations, a change message queue is used as an intermediate layer to save the changed graphics elements caused by user operations. At the same time, in order to maintain the difference between the changed graphics elements and the graphics elements to be checked, a to-be-checked message queue is used to save the set of graphics elements to be checked corresponding to each changed graphics element.
[0078] like Figure 3 As shown in the figure, the listener-message queue-derivation operation constitutes a producer-consumer model cycle; the listener forms change data by listening to the user's editing operation and stores the change data in the change message queue, which can be regarded as producing a set of data; and the push operation will cyclically read each set of change data from the change queue to perform derivation operations, which can be regarded as consuming a set of data. However, the purpose of the derivation operation consuming the change data is to calculate the elements to be checked, that is, the push operation generates a set of data to be checked (i.e., a set of elements to be checked). For the user, the data to be checked involves the accuracy of the inspection results, so this process is also a producer and is regarded as a production cycle.
[0079] When the deduction operation derives a set of graphics elements to be checked, this set will be placed in the message queue to be checked. At the same time, the rationality check operation will take a set of data from the message queue to be checked to perform the rationality check operation. The check results will be saved and recorded in the result message queue. During this process, the rationality check operation cannot directly obtain data from the message queue to be checked. It needs to rely on the scheduling of the management service. The management service will only wake up to perform the rationality check operation when the processor is idle. When the user is performing an editing operation, no scheduling will occur, thereby ensuring the continuity of the user's editing operation.
[0080] At this time, the step S103 specifically includes:
[0081] Step B1: when it is detected that the target processor is in an idle state, obtaining the to-be-checked primitive set from the to-be-checked message queue;
[0082] Step B2: Performing a rationality check operation on each primitive in the set of primitives to be checked according to the check rule on the target processor.
[0083] Furthermore, the step B2 further includes:
[0084] Determine whether the check duration of the rationality check operation is greater than a preset time threshold;
[0085] If so, the rationality check operation is stopped, and the rationality check operation is performed on the target processor again on the remaining primitives in the set of primitives to be checked when the target processor is in an idle state next time.
[0086] In this embodiment, the original overall inspection rules are directly reused. However, in this embodiment, the overall inspection rules are split into multiple rule units according to the primitive level, and each rule unit corresponds to a primitive. In this way, when performing a rationality check operation, it is only necessary to obtain the rule unit corresponding to each primitive in the set of primitives to be checked, which ensures finer granularity execution and more accurate time slice control. In addition, in this embodiment, an additional layer of control over the checkable time is added, that is, when the time spent on a certain inspection is greater than the threshold, this inspection will be forced to be interrupted. Even if there are primitives to be checked later, this inspection will be stopped, and the remaining primitives will only be able to wait for the next scheduling to continue the inspection. This preset time threshold itself is not fixed, and is controlled by a variable parameter, which can be adjusted externally according to the user's current operation.
[0087] In addition, after step S101, the method further includes:
[0088] On the target processor, the derivation operation and the rationality check operation are alternately performed by utilizing each opportunity when the target processor is in an idle state.
[0089] In practical applications, a management service can be used to schedule the deduction operation and the rationality check operation. The management server can start a timer to monitor the target processor through the timer. When it is monitored that the target processor is in an idle state, the deduction operation and the rationality check operation are scheduled to be executed alternately. For example, the deduction operation is executed during the idle state this time, and the rationality check operation is executed during the next idle state, and the process is repeated alternately.
[0090] In this embodiment, the derivation operation limits the scope of the inspection, while the idle cross-scheduling of the management service and the rule splitting and threshold control triple insurance mechanism of the inspection system limit the time used for the entire inspection process. This ensures the time proportion of the inspection operation in the user operation sequence to the greatest extent, minimizes the impact on the user, and ensures that the user is unaware.
[0091] It should also be noted that the derivation operation and rationality check operation can be executed in the main process of the current quantity calculation software, or can be executed in another process outside the main process, or can be executed on other terminal devices, without specific limitation.
[0092] In this embodiment, by deeply analyzing the user editing operation, the scope of influence and correlation of the user editing operation on the entire model are accurately derived, and the granularity of the rationality check is minimized, so that the inspection itself does not need to perform an overall inspection to obtain the prepared inspection results, which greatly shortens the time required for each rationality check and improves the efficiency of the inspection. In addition, the inspection task is processed during the processor's idle time, which does not affect the user's own operation. The inspection results will not be forcibly displayed to the user, and the user's current editing operation will not be interrupted. The inspection results can be obtained in real time without the user's perception. In addition, the results of each inspection are permanently saved through serialization to ensure that the results that have been inspected will not be lost, and the newly added inspection results will not overwrite the previous ones. Users can view the inspection results and perform corresponding processing anytime and anywhere, without having to process them immediately after each inspection.
[0093] Embodiment 2
[0094] The embodiment of the present invention provides a device for checking the rationality of a building model in real time, such as Figure 4 As shown, the device specifically includes the following components:
[0095] A monitoring module 401 is used to monitor a user editing operation on a target building model, and determine a changed primitive corresponding to the user editing operation from the target building model;
[0096] A derivation module 402, configured to perform a derivation operation on the changed graphic element according to a preset association rule, wherein the derivation operation is used to determine an associated graphic element associated with the changed graphic element from the target building model;
[0097] The checking module 403 is used for performing a rationality checking operation on the changed primitive and the associated primitive according to a preset checking rule on the target processor when it is detected that the target processor is in an idle state;
[0098] The result module 404 is used to obtain and store the check result of the rationality check operation.
[0099] In addition, the device further comprises:
[0100] The compatible module 405 is used to perform an overall rationality check operation on the target building model when receiving an overall check instruction, and to obtain and store a complete check result of the overall rationality check operation.
[0101] Since the rationality check of this embodiment only checks part of the model, it is also necessary to be compatible with the existing overall rationality check operation of the model, and save the results of the overall rationality check together to facilitate unified viewing by users, so that the check results have no errors or omissions.
[0102] Specifically, the derivation module 402 is used to:
[0103] When the changed primitive is a parent primitive, setting the child primitive belonging to the parent primitive as an associated primitive;
[0104] Setting other graphics elements that have overlapping positional relationships with the changed graphics element as associated graphics elements; and / or,
[0105] Other graphic elements that have a preset mandatory association relationship with the changed graphic element are set as associated graphic elements.
[0106] Furthermore, the result module 404 is specifically used for:
[0107] The inspection result is converted into a text in JSON format and stored in the disk of the specified terminal.
[0108] In this embodiment, possible future expansion and changes are taken into consideration, and a more common and popular format is used at present. The inspection results are organized in a certain format, saved as text in json format, and saved to disk. The next time the user opens the software, it is loaded back from the disk and displayed to the user. Of course, in actual applications, the inspection results can also be converted into files in other formats, such as: text files txt, binary files, professional database software DataBase, software-defined file formats, etc. The specific form is not limited, and the same purpose can be achieved. In this embodiment, each inspection result is stored and restored through serialization and deserialization operations.
[0109] In addition, the derivation module 402 is also used for:
[0110] Acquire the changed graphic element from a preset change message queue, and perform a deduction operation on the changed graphic element according to the association rule to determine the associated graphic element; wherein the change message queue is used to store the changed graphic elements corresponding to each user editing operation respectively;
[0111] The changed graphic elements and the associated graphic elements form a graphic element set to be checked, and the graphic element set to be checked is stored in a preset message queue to be checked.
[0112] At this time, the checking module 403 is specifically used to:
[0113] When it is detected that the target processor is in an idle state, acquiring the to-be-checked primitive set from the to-be-checked message queue;
[0114] A rationality check operation is performed on each primitive in the set of primitives to be checked according to the check rule on the target processor.
[0115] In addition, the checking module 403 is also used for:
[0116] Determine whether the check duration of the rationality check operation is greater than a preset time threshold;
[0117] If so, the rationality check operation is stopped, and the rationality check operation is performed on the target processor again on the remaining primitives in the set of primitives to be checked when the target processor is in an idle state next time.
[0118] In addition, the device also includes:
[0119] The control module is used to alternately perform derivation operations and rationality check operations on the target processor by utilizing each opportunity when the target processor is in an idle state.
[0120] In practical applications, a management service can be used to schedule the deduction operation and the rationality check operation. The management server can start a timer to monitor the target processor through the timer. When it is monitored that the target processor is in an idle state, the deduction operation and the rationality check operation are scheduled to be executed alternately. For example, the deduction operation is executed during the idle state this time, and the rationality check operation is executed during the next idle state, and the process is repeated alternately.
[0121] In this embodiment, by deeply analyzing the user editing operation, the scope of influence and correlation of the user editing operation on the entire model are accurately derived, and the granularity of the rationality check is minimized, so that the inspection itself does not need to perform an overall inspection to obtain the prepared inspection results, which greatly shortens the time required for each rationality check and improves the efficiency of the inspection. In addition, the inspection task is processed during the processor's idle time, which does not affect the user's own operation. The inspection results will not be forcibly displayed to the user, and the user's current editing operation will not be interrupted. The inspection results can be obtained in real time without the user's perception. In addition, the results of each inspection are permanently saved through serialization to ensure that the results that have been inspected will not be lost, and the newly added inspection results will not overwrite the previous ones. Users can view the inspection results and perform corresponding processing anytime and anywhere, without having to process them immediately after each inspection.
[0122] Embodiment 3
[0123] This embodiment also provides a computer device, such as a smart phone, tablet computer, laptop computer, desktop computer, rack server, blade server, tower server or cabinet server (including an independent server or a server cluster composed of multiple servers) that can execute programs. Figure 5 As shown, the computer device 50 of this embodiment includes at least but not limited to: a memory 501 and a processor 502 that can communicate with each other via a system bus. It should be noted that Figure 5 Only computer device 50 is shown with components 501 - 502 , but it should be understood that implementing all of the components shown is not a requirement, and more or fewer components may alternatively be implemented.
[0124] In this embodiment, the memory 501 (i.e., a readable storage medium) includes a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., an SD or DX memory, etc.), a random access memory (RAM), a static random access memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the memory 501 may be an internal storage unit of the computer device 50, such as a hard disk or a memory of the computer device 50. In other embodiments, the memory 501 may also be an external storage device of the computer device 50, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card, etc. equipped on the computer device 50. Of course, the memory 501 may also include both the internal storage unit and the external storage device of the computer device 50. In this embodiment, the memory 501 is generally used to store the operating system and various application software installed on the computer device 50. In addition, the memory 501 may also be used to temporarily store various data that have been output or are to be output.
[0125] In some embodiments, the processor 502 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips. The processor 502 is generally used to control the overall operation of the computer device 50 .
[0126] Specifically, in this embodiment, the processor 502 is used to execute the program of the method for checking the rationality of the building model in real time stored in the memory 501. When the program of the method for checking the rationality of the building model in real time is executed, the following steps are implemented:
[0127] Monitoring a user editing operation on a target building model, and determining a changed primitive corresponding to the user editing operation from the target building model;
[0128] Performing a derivation operation on the changed graphic element according to a preset association rule, wherein the derivation operation is used to determine an associated graphic element associated with the changed graphic element from the target building model;
[0129] When it is detected that the target processor is in an idle state, a rationality check operation is performed on the target processor according to a preset check rule on the changed primitive and the associated primitive;
[0130] Get and store the results of a sanity check operation.
[0131] The specific implementation process of the above method steps can be found in Example 1, and this embodiment will not be repeated here.
[0132] Embodiment 4
[0133] This embodiment also provides a computer-readable storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory (for example, an SD or DX memory, etc.), a random access memory (RAM), a static random access memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a disk, an optical disk, a server, an App application store, etc., on which a computer program is stored. When the computer program is executed by a processor, the following method steps are implemented:
[0134] Monitoring a user editing operation on a target building model, and determining a changed primitive corresponding to the user editing operation from the target building model;
[0135] Performing a derivation operation on the changed graphic element according to a preset association rule, wherein the derivation operation is used to determine an associated graphic element associated with the changed graphic element from the target building model;
[0136] When it is detected that the target processor is in an idle state, a rationality check operation is performed on the target processor according to a preset check rule on the changed primitive and the associated primitive;
[0137] Get and store the results of a sanity check operation.
[0138] The specific implementation process of the above method steps can be found in Example 1, and this embodiment will not be repeated here.
[0139] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0140] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0141] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method.
[0142] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for checking the rationality of a building model in real time, characterized in that: The method comprises: Monitoring a user editing operation on a target building model, and determining a changed primitive corresponding to the user editing operation from the target building model; Performing a derivation operation on the changed graphic element according to a preset association rule, wherein the derivation operation is used to determine an associated graphic element associated with the changed graphic element from the target building model; When it is detected that the target processor is in an idle state, a rationality check operation is performed on the target processor according to a preset check rule on the changed primitive and the associated primitive; Get and store the results of a sanity check operation.
2. The method for checking the rationality of a building model in real time according to claim 1, characterized in that: The performing a derivation operation on the changed graphic element according to a preset association rule includes: When the changed primitive is a parent primitive, setting the child primitive belonging to the parent primitive as an associated primitive; Setting other graphics elements that have overlapping positional relationships with the changed graphics element as associated graphics elements; and / or, Other graphic elements that have a preset mandatory association relationship with the changed graphic element are set as associated graphic elements.
3. The method for checking the rationality of a building model in real time according to claim 1, characterized in that: The performing a derivation operation on the changed graphic element according to a preset association rule includes: Acquire the changed graphic element from a preset change message queue, and perform a deduction operation on the changed graphic element according to the association rule to determine the associated graphic element; wherein the change message queue is used to store the changed graphic elements corresponding to each user editing operation respectively; The changed graphic elements and the associated graphic elements form a graphic element set to be checked, and the graphic element set to be checked is stored in a preset message queue to be checked.
4. The method for checking the rationality of a building model in real time according to claim 3, characterized in that: When the target processor is detected to be in an idle state, a rationality check operation is performed on the target processor according to a preset check rule on the changed primitive and the associated primitive, including: When it is detected that the target processor is in an idle state, acquiring the to-be-checked primitive set from the to-be-checked message queue; A rationality check operation is performed on each primitive in the set of primitives to be checked according to the check rule on the target processor.
5. The method for checking the rationality of a building model in real time according to claim 4, characterized in that: The performing a rationality check operation on each primitive in the set of primitives to be checked according to the check rule on the target processor includes: Determine whether the check duration of the rationality check operation is greater than a preset time threshold; If so, the rationality check operation is stopped, and the rationality check operation is performed on the target processor again on the remaining primitives in the set of primitives to be checked when the target processor is in an idle state next time.
6. The method for checking the rationality of a building model in real time according to claim 1, characterized in that: After determining the changed graphic element corresponding to the user editing operation from the target building model, the method further includes: On the target processor, the derivation operation and the rationality check operation are alternately performed by utilizing each opportunity when the target processor is in an idle state.
7. The method for checking the rationality of a building model in real time according to claim 1, characterized in that: The obtaining and storing the check result of the rationality check operation includes: The inspection result is converted into a text in JSON format and stored in the disk of the specified terminal.
8. A device for checking the rationality of a building model in real time, characterized in that: The device comprises: A monitoring module, used for monitoring a user editing operation on a target building model, and determining a changed primitive corresponding to the user editing operation from the target building model; A derivation module, configured to perform a derivation operation on the changed graphic element according to a preset association rule, wherein the derivation operation is used to determine an associated graphic element associated with the changed graphic element from the target building model; A checking module, configured to perform a rationality checking operation on the changed primitive and the associated primitive according to a preset checking rule on the target processor when detecting that the target processor is in an idle state; The result module is used to obtain and store the check results of the rationality check operation.
9. A computer device, comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Time sequence information processing method and system, electronic equipment and storage medium
CN119204228A
Three-dimensional model real-time verification method and system based on engineering drawing
CN121881487A
