Geometric model data calculation method and device, storage medium and electronic device
By splitting and storing the calculation formulas of building models, the two-way linkage between data and model is achieved, which solves the problem of data and model association and reuse in architectural design, improves the computing efficiency and flexibility of data management, and improves the accuracy of the design process degree and efficiency.
Patent Information
- Application Number
- CN202411164221.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-23
- Publication Date
- 2024-11-29
AI Technical Summary
In the prior art, data and models cannot be truly re-aligned during architectural design, resulting in data and models being unable to be effectively associated, and batch extraction and calculation under custom requirements cannot be realized, resulting in inefficient data management and computing.
By responding to the data calculation instructions of the target object collection, the objective function and conditional parameters are obtained, the calculation formula is split based on the operation rules, and sub-results are obtained from the repository using the second-layer storage logic to realize the display and storage of the target calculation results, and improve the calculation efficiency And realize the two-way linkage between data and model.
It realizes users to flexibly extract multiple model data according to their needs, improves the flexibility and computing efficiency of data management, solves the problem that data and models cannot be reconciled and reused, and improves data processing capabilities and accuracy in the architectural design process.
Smart Images

Figure CN119047045A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computers, and in particular to a method, device, storage medium and electronic device for calculating geometric model data. Background Art
[0002] BIM is the abbreviation of Building Information Modeling, which is an advanced digital technology applied to the construction industry. It is based on a single three-dimensional model and uses digital technology to process and present information of the building model, providing a comprehensive management and collaboration platform for construction projects.
[0003] In the actual architectural design workflow, data is not truly associated with the working model or drawings, but is created, managed, and transmitted in the form of independent files. Existing data information is scattered in the geometry and attributes of the model. Individual geometric model data can only be obtained by viewing the property panel, annotation, using measurement tools, etc., and then pasted into Excel, or temporarily stored in other external software, and then further processed and summarized in the external software. Batch extraction and calculation based on custom requirements cannot be achieved, that is, it is impossible to establish a truly real-time association and reuse between data and models. There is a technical problem that data and models cannot be associated and reused.
[0004] In summary, in the prior art, when data extraction and calculation of multiple building geometries are required, there is a problem that data and models cannot be associated and reused. Currently, no effective solution has been proposed to the above problem. Summary of the invention
[0005] The embodiments of the present invention provide a method, device, storage medium and electronic device for calculating geometric model data, so as to at least solve the technical problem that data and models cannot be associated and reused.
[0006] According to one aspect of an embodiment of the present invention, a method for calculating geometric model data is provided, comprising: responding to a data calculation instruction of a target object set, obtaining an objective function and conditional parameters, wherein the objective function is a mathematical property corresponding to the geometric model, the conditional parameters are engineering properties corresponding to the geometric model, and the target object set includes a plurality of target object monomers; determining a target calculation formula based on the objective function and the conditional parameters, and splitting the target calculation formula into a plurality of target sub-formulas based on an operation rule, wherein the plurality of target sub-formulas constitute a target formula set; obtaining a first sub-result corresponding to the target object monomer from a first repository, and obtaining a second sub-result corresponding to the second target sub-formula from a second repository, wherein the first sub-result is calculated by the first target sub-formula, and the second sub-result is calculated by the second target sub-formula; performing calculations based on the first sub-result, the second sub-result and the target calculation formula to obtain a target calculation result of the target object set, wherein the target calculation formula and the target calculation result are displayed on a display panel.
[0007] According to another aspect of an embodiment of the present invention, a geometric model data calculation device is also provided, including: a first acquisition unit, used to respond to a data calculation instruction of a target object set, and obtain an objective function and a conditional parameter, wherein the objective function is a mathematical property corresponding to the geometric model, the conditional parameter is an engineering property corresponding to the geometric model, and the target object set includes multiple target object monomers; a first determination unit, used to determine a target calculation formula based on the objective function and the conditional parameter, and split the target calculation formula into multiple target sub-formulas based on an operation rule, wherein the multiple target sub-formulas constitute a target formula set; a second acquisition unit, used to obtain a first sub-result corresponding to the target object monomer from a first repository, and to obtain a second sub-result corresponding to the second target sub-formula from a second repository, wherein the first sub-result is calculated by the first target sub-formula, and the second sub-result is calculated by the second target sub-formula; a first calculation unit, used to perform calculations based on the first sub-result, the second sub-result and the target calculation formula to obtain a target calculation result of the target object set, wherein the target calculation formula and the target calculation result are displayed on a display panel.
[0008] As an optional solution, before the second obtaining unit, the method further includes:
[0009] The first splitting unit is used to split the above-mentioned target calculation formula into M first target sub-formulas with the above-mentioned target object monomer as the minimum calculation unit, wherein the above-mentioned M is a positive integer; the first calculation module is used to calculate the above-mentioned M first target sub-formulas to obtain M first sub-results, wherein each of the above-mentioned first sub-results corresponds to one of the above-mentioned target object monomers; the first storage unit stores the above-mentioned M first sub-results in the above-mentioned first storage library.
[0010] As an optional solution, before the second obtaining unit, the method further includes:
[0011] A first acquisition module is used to acquire the multiple target calculation formulas in the display panel and the reference relationship between the target calculation formulas; a first determination module is used to determine the target calculation formula whose number of citations is greater than a preset citation number threshold as the N second target sub-formulas, wherein the N is a positive integer; a second calculation module is used to calculate the N second target sub-formulas to obtain N second sub-results; and a second storage unit is used to store the N second sub-results in the second storage library.
[0012] As an optional solution, after the first calculation unit, the method further includes:
[0013] The second acquisition module is used to obtain the above-mentioned target calculation formula of the above-mentioned target object monomer when receiving the above-mentioned target object monomer modification instruction; the calling module is used to call the historical calculation formula of the above-mentioned target object monomer calculation in the above-mentioned first repository, and recalculate based on the modified above-mentioned target function and the above-mentioned conditional parameters to obtain the third sub-result; the third storage unit is used to replace the above-mentioned first sub-result with the above-mentioned third sub-result and store it in the above-mentioned first repository.
[0014] As an optional solution, the first determining unit further includes:
[0015] A detection unit is used to perform syntax detection and reference detection on the above-mentioned target calculation formula generated by the above-mentioned target function and the above-mentioned conditional parameters; a warning unit is used to send the above-mentioned target calculation formula and warning information to the above-mentioned display panel when the syntax detection result is not met; a reminder unit is used to send the above-mentioned target calculation formula and reminder information to the above-mentioned display panel when the reference detection result is not met.
[0016] As an optional solution, the first obtaining unit includes:
[0017] The second determination module is used to determine the objective function in the preset function according to the objective function selection instruction; the third determination module is used to determine the above-mentioned conditional parameters among the first type of parameters, the second type of parameters and the third type of parameters according to the conditional selection instruction, wherein the above-mentioned first type of parameters are conditional styles, the above-mentioned second type of parameters are specific labels, and the above-mentioned third type of parameters are building materials.
[0018] As an optional solution, the above device also includes:
[0019] The export unit is used to obtain the target file export format when receiving the data export instruction, and export the target calculation result according to the target file export format;
[0020] The reverse query unit is used to determine the above-mentioned target object set according to the above-mentioned target calculation result and the above-mentioned target calculation formula when receiving the data reverse query instruction, and display the above-mentioned target object set on the above-mentioned display panel in a target visualization manner.
[0021] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned geometric model data calculation method when running.
[0022] According to another aspect of an embodiment of the present invention, there is provided an electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor executes the geometric model data calculation method through the computer program.
[0023] In an embodiment of the present invention, in response to a data calculation instruction of a target object set, an objective function and conditional parameters are obtained, wherein the objective function is a mathematical property corresponding to a geometric model, the conditional parameters are engineering properties corresponding to the geometric model, and the target object set includes a plurality of target object monomers; a target calculation formula is determined based on the objective function and the conditional parameters, and the target calculation formula is split into a plurality of target sub-formulas based on an operation rule, wherein the plurality of target sub-formulas constitute a target formula set; a first sub-result corresponding to the target object monomer is obtained from a first repository, and a second sub-result corresponding to the second target sub-formula is obtained from a second repository, wherein the first sub-result is calculated by the first target sub-formula, and the second sub-result is obtained by calculating the first target sub-formula. The result is calculated by the above-mentioned second target sub-formula; the target calculation result of the above-mentioned target object set is obtained based on the above-mentioned first sub-result, the above-mentioned second sub-result and the above-mentioned target calculation formula, wherein the above-mentioned target calculation formula and the above-mentioned target calculation result are displayed on the display panel, and then the data is pre-saved through the second-layer storage logic, thereby achieving the purpose of improving the calculation efficiency, and the calculation formula is determined by customizing the objective function and conditional parameters, so that the user can flexibly extract multiple model data according to needs, thereby achieving the purpose of improving the flexibility of data management, and the user can flexibly and quickly calculate the model information, thereby truly realizing the technical effect of two-way linkage between data and model, and then solving the technical problem that data and model cannot be associated and reused. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0025] Figure 1 is a schematic diagram of a flow chart of an optional method for calculating geometric model data according to an embodiment of the present invention;
[0026] Figure 2 is a schematic diagram of a flow chart of an optional method for calculating geometric model data according to an embodiment of the present invention;
[0027] Figure 3 is a schematic diagram of an optional geometric model data calculation method according to an embodiment of the present invention;
[0028] Figure 4 is a schematic diagram of another optional method for calculating geometric model data according to an embodiment of the present invention;
[0029] Figure 5 is a schematic diagram of another optional method for calculating geometric model data according to an embodiment of the present invention;
[0030] Figure 6 is a schematic diagram of another optional method for calculating geometric model data according to an embodiment of the present invention;
[0031] Figure 7 is a schematic diagram of another optional method for calculating geometric model data according to an embodiment of the present invention;
[0032] FIG8 is a schematic diagram of another optional method for calculating geometric model data according to an embodiment of the present invention;
[0033] Fig. 9 is a schematic diagram of another optional method for calculating geometric model data according to an embodiment of the present invention;
[0034] Fig.10 is a schematic diagram of another optional method for calculating geometric model data according to an embodiment of the present invention;
[0035] Fig.11 is a schematic diagram of an optional geometric model data calculation device according to an embodiment of the present invention;
[0036] Fig.12 is a schematic diagram of another optional geometric model data calculation device according to an embodiment of the present invention;
[0037] Fig.13 is a schematic structural diagram of an optional electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0038] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0039] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0040] Optionally, as an optional implementation, as Figure 1 As shown, the geometric model data calculation method includes:
[0041] S102, responding to the data calculation instruction of the target object set, obtaining the objective function and condition parameters, wherein the objective function is the mathematical property corresponding to the geometric model, the condition parameters are the engineering properties corresponding to the geometric model, and the target object set includes multiple target object monomers;
[0042] S104, determining a target calculation formula based on the target function and the conditional parameters, and splitting the target calculation formula into multiple target sub-formulas based on an operation rule, wherein the multiple target sub-formulas constitute a target formula set;
[0043] S106, obtaining a first sub-result corresponding to the target object monomer from the first repository, and obtaining a second sub-result corresponding to the second target sub-formula from the second repository, wherein the first sub-result is calculated by the first target sub-formula, and the second sub-result is calculated by the second target sub-formula;
[0044] S108, performing calculation based on the first sub-result, the second sub-result and the target calculation formula to obtain a target calculation result of the target object set, wherein the target calculation formula and the target calculation result are displayed on a display panel.
[0045] Optionally, in this embodiment, the above-mentioned geometric model data calculation method can be but is not limited to being applied in the scenario of batch extraction of building geometric body information. Specifically, this embodiment belongs to the field of architectural design and describes the architectural geometric model data calculation method.
[0046] Optionally, in this embodiment, step S102 can be understood as initiating a data calculation instruction corresponding to the model when the user needs to extract data from multiple models, wherein multiple models of data to be extracted are determined as a target object set, and each model corresponds to a target object monomer; before data calculation, some functions will be preset, referred to as preset functions, which may include but are not limited to mathematical properties corresponding to geometric models such as area, height, and volume, and users can select target functions from preset functions according to needs; conditional parameters are engineering properties, which can be divided into three different categories of parameters according to classification. The first category of parameters is conditional styles, such as surfaces, entities, etc. The second category of parameters is specific labels, such as hotel, apartment, toilet and other labels. The third category of parameters is building materials, such as steel, concrete, wood boards, etc., wherein the three different categories of parameters can be arbitrarily combined to meet actual needs, and the relationship between the conditions can include "and" and "or".
[0047] Optionally, in this embodiment, step S104 can be understood as automatically forming different target calculation formulas based on functions and conditional parameters, and the formulas can be split according to but not limited to the four arithmetic operations of addition, subtraction, multiplication and division, where the formulas can be split according to the target object monomer as the smallest calculation unit to facilitate subsequent data storage.
[0048] Optionally, in this embodiment, steps S106-S108 can be understood as, after the formula is split, obtaining the results of historical calculations from the first repository and the second repository respectively, without the need to recalculate based on condition selection and function matching, thereby improving the calculation efficiency. If there are no relevant calculation results in the first repository and the second repository, additional calculations are performed and the data results corresponding to the target object monomer are saved to facilitate future formula calculations.
[0049] As an optional embodiment 1, for example Figure 2 As shown, the engineer wants to calculate the area of the three hotel surfaces in the geometric model. When receiving the data calculation instruction, the target object set to be calculated is selected according to the user set conditions. The user's condition selection instruction is received, including: surface, hotel, and steel. The user can also select the target object set to be calculated by operating the display page. The user's function selection instruction is received to calculate the area, and the target function is determined to be area, and the condition parameters are surface, hotel, and steel.
[0050] The target calculation formula is determined according to the target function and conditional parameters: calculate the surface areas of three steel surfaces in the hotel, where m1 represents the target object monomer of the first steel surface, m2 represents the target object monomer of the second steel surface, and m3 represents the target object monomer of the third steel surface. The target calculation formula is split into the first sub-formula A=calculate the area of m1 according to the four arithmetic operations, the second sub-formula B=calculate the area of m2, the third sub-formula C=calculate the area of m3, and the fourth sub-formula D=A+B+C, and A1, B1, C1, and D1 are obtained respectively, where D1 is the target calculation result. Since A, B, and C are the first target sub-formulas corresponding to the splitting with the target object monomer as the minimum calculation unit, the corresponding first sub-results A1, B1, and C1 are stored in the first storage library respectively, and D1 is displayed on the display panel.
[0051] In this way, when the next calculation is performed, the result corresponding to the target object monomer can be directly called in the first storage library, such as the calculation results of A1, B1, and C1, thereby improving the calculation efficiency.
[0052] As an optional embodiment 2, for example Figure 3As shown above, multiple calculation formulas can be displayed on the display panel, such as (A+B+C)*0.8; (A+B+C)*0.4; (A+B+C)*0.6. It can be seen that the above target calculation formulas all use A+B+C, that is, the number of times the formula is cited is 3, which exceeds the preset reference number threshold of 2. Therefore, the formula is determined as the second target sub-formula, and the calculation result is calculated, that is, the second sub-result D1 is obtained, and the second sub-result D1 is stored in the second repository.
[0053] In this way, when the target calculation formula is (A+B+C)*0.5 again, the second sub-result D1 can be used directly, thereby further improving the calculation efficiency.
[0054] As an optional embodiment 3, for example Figure 4 As shown above, the target calculation formula is (A+B+C)*0.6+D. The target calculation formula is split into multiple sub-formulas. Since the sub-formula (A+B+C) is referenced multiple times on the display panel, the calculation result corresponding to the formula has been stored in the second repository. D is the sub-formula corresponding to the split with the target object monomer as the minimum calculation unit, and its corresponding sub-result has been stored in the first repository. It is only necessary to retrieve the first sub-result and the second sub-result from the first repository and the second repository respectively for calculation to obtain the target calculation result, thereby avoiding repeated calculations and improving calculation efficiency.
[0055] In an embodiment of the present invention, in response to a data calculation instruction of a target object set, an objective function and conditional parameters are obtained, wherein the objective function is a mathematical property corresponding to a geometric model, the conditional parameters are engineering properties corresponding to the geometric model, and the target object set includes multiple target object monomers; a target calculation formula is determined based on the objective function and the conditional parameters, and the target calculation formula is split into multiple target sub-formulas based on an operation rule, wherein the multiple target sub-formulas constitute a target formula set; a first sub-result corresponding to the target object monomer is obtained from a first repository, and a second sub-result corresponding to the second target sub-formula is obtained from a second repository, wherein the first sub-result is calculated by the first target sub-formula, and the second sub-result is calculated by the second target sub-formula. The result is calculated by the second target sub-formula; the target calculation result of the target object set is calculated based on the first sub-result, the second sub-result and the target calculation formula, wherein the target calculation formula and the target calculation result are displayed on the display panel, and then the data is pre-saved through the second-layer storage logic, thereby achieving the purpose of improving the calculation efficiency, and the calculation formula is determined by customizing the objective function and conditional parameters, so that the user can flexibly extract multiple model data according to needs, thereby achieving the purpose of improving the flexibility of data management, and the user can flexibly and quickly calculate the model information, thereby truly realizing the technical purpose of two-way linkage between data and model, and achieving the technical effect of improving data calculation efficiency.
[0056] As an optional solution, before obtaining the first sub-result corresponding to the single target object from the first repository, the method further includes:
[0057] S1, split the target calculation formula into M first target sub-formulas with the target object monomer as the minimum calculation unit, where M is a positive integer;
[0058] S2, calculating M first target sub-formulas to obtain M first sub-results, wherein each first sub-result corresponds to a target object monomer;
[0059] S3, store the M first sub-results in a first storage repository.
[0060] It can be understood, but is not limited to, as splitting the target calculation formula with the target object monomer as the smallest calculation unit, such as calculating the area of entity 1, calculating the height of entity 2, etc., calculating the above-split sub-formulas, obtaining sub-results and storing them, avoiding repeated calculations, and the next time the same calculation formula is encountered, the corresponding results can be directly obtained from the storage library, thereby improving calculation efficiency.
[0061] As an optional solution, before obtaining the second sub-result corresponding to the second sub-formula from the second storage repository, the method further includes:
[0062] S1, obtaining multiple target calculation formulas in the display panel and reference relationships between the target calculation formulas;
[0063] S2, determining the target calculation formula whose number of citations is greater than a preset citation number threshold as N second target sub-formulas, where N is a positive integer;
[0064] S3, calculating N second target sub-formulas to obtain N second sub-results;
[0065] S4, storing the N second sub-results in a second storage repository.
[0066] It can be understood, but not limited to, that there may be dozens of formulas in the display panel. For example, formula 1 can reference formula 2, and formula 3 can reference formula 2, but there will be no circular reference. Therefore, for this scenario of referencing formulas, if the same formula items exist in the data panel, storing the results will improve the calculation efficiency. For example, formula 1 and formula 3 both reference formula 2, so the result of formula 2 is stored. When calculating formula 1 and formula 3, the result of formula 2 can be used directly without re-matching and calculating from the view area according to the conditional rules. In addition, the reference count threshold can be set according to different situations, and the sub-results will be stored when the reference count is greater than or equal to the threshold.
[0067] As an optional solution, after obtaining the target calculation result of the target object set, it also includes:
[0068] S1, when receiving a target object monomer modification instruction, obtaining a target calculation formula of the target object monomer;
[0069] S2, calling the historical calculation formula of the target object monomer calculation in the first repository, recalculating based on the modified objective function and condition parameters, and obtaining a third sub-result;
[0070] S3, replacing the first sub-result with the third sub-result and storing it in the first storage repository.
[0071] As an optional embodiment 4, in the case of modifying the target object monomer, the target calculation formula corresponding to the target object monomer in the first repository and the second repository can be obtained in real time, recalculated based on the modified data, and saved in the first repository and the second repository instead of the data before modification, that is, by editing the model, the calculation results in the repository can be automatically refreshed to improve the calculation accuracy; as an optional solution, the expression can also be edited and modified to achieve data update of the calculation results and related reference formulas; as an optional solution, the submitted function parameters can be edited and modified, such as changing the material wood to steel, deleting one entity model from five entity models, and thus outputting the updated results, truly realizing the linkage between data and models.
[0072] As an optional solution, the target calculation formula is determined based on the target function and the conditional parameters, and also includes:
[0073] S1, perform syntax detection and reference detection on the target calculation formula generated by the target function and conditional parameters;
[0074] S2, when the syntax detection result is not met, sending the target calculation formula and warning information to the display panel;
[0075] S3, when the reference detection result is not met, the target calculation formula and reminder information are sent to the display panel.
[0076] S4, the accuracy of the calculation formula can be improved through the above-mentioned syntax detection and reference detection.
[0077] As an optional solution, obtaining the objective function and condition parameters includes:
[0078] S1, determining the target function in the preset function according to the target function selection instruction;
[0079] S2, determining conditional parameters from the first type of parameters, the second type of parameters, and the third type of parameters according to the conditional selection instruction, wherein the first type of parameters are conditional styles, the second type of parameters are specific labels, and the third type of parameters are building materials.
[0080] As an optional solution, after obtaining the target calculation result of the target object set, it also includes:
[0081] S1, upon receiving a data export instruction, obtaining a target file export format, and exporting a target calculation result according to the target file export format;
[0082] S2, when receiving the data reverse query instruction, determining the target object set according to the target calculation result and the target calculation formula, and displaying the target object set on the display panel in a target visualization manner.
[0083] It should be noted that in the prior art, the data flow in the architectural design is Figure 5 As shown in Figure 1, modeling is the creation of data, and data flow runs through the entire process of the construction project. In the current architectural design process, data is not really associated with the working model or drawings, but is created, managed and transmitted in the form of independent files. The relationship between digital and model drawings needs to be manually built and maintained, which brings about the problem of "digital-model separation". In the traditional architectural design workflow, data and models are usually separated, resulting in inefficient information transmission and data processing.
[0084] In the early stage of scheme design, designers need to consider various scheme forms and combination modes according to the area index requirements of the task book. Under the existing working mode, the efficiency and accuracy of data verification at this stage are very low. The indicator data information of the evaluation scheme is scattered in the geometry and attributes of the model, which can be obtained by viewing the attribute panel, marking, using measurement tools, etc., but it cannot be extracted uniformly; and there are many models in a building project, and it takes many steps to filter out the required models; even if the first two steps are completed, the calculated data can only be temporarily stored in another location, such as pasting it into Excel for secondary processing and summary calculation, and it cannot be associated with the model for reuse.
[0085] During the scheme delivery phase, economic and technical indicators are one of the important deliverables and are also the key verification content of the design. Under the current model, scheme design data is separated from drawings and models. During the calculation process, it is necessary to manually check the data repeatedly and do a good job of version management. It is also difficult to trace the statistical caliber of the indicator results.
[0086] There are the following technical problems
[0087] 1) Inconvenient model information extraction and processing: Currently, most tools require users to manually select models and extract information by copying values. In this way, the information collected from the model is not accurate enough. Some software has built-in functions for obtaining geometric information, but the operation steps are cumbersome.
[0088] 2) Formula calculation is not flexible enough to meet business needs: Some software provides functional modules such as indicator calculation and expression definition, but some only provide pre-made formulas with many restrictions; while others support custom expressions, and the interaction is very complex.
[0089] 3) The efficiency of synchronous updating of data and models is low, and it is impossible to reversely check the data source model: During the design, users cannot view data changes in real time; after the design, a one-time extraction and export is performed based on the model, and it is impossible to trace the statistical caliber based on the data results.
[0090] That is, the existing technology for extracting geometric information lacks automated tools; the formula calculation functions have too many presets and the user interaction interface is complex; and the synchronization and update mechanism of data and models is not efficient enough.
[0091] As an optional embodiment 5, in order to solve the above technical problem, the specific embodiment is as follows, for example Figure 6 As shown:
[0092] S501, obtain information from the model through prefabricated functions: a batch of functions for obtaining geometric information and some business data, including area, length, volume, height, quantity, etc., are built in to extract corresponding information, such as Figure 7 As shown, such as: area, length, volume, etc.;
[0093] By setting conditions (e.g., object type, material, label, etc.), and selecting the relationship (and, or) between conditions, as shown in Figure 8(a), or manually picking the model whose information needs to be extracted, as shown in Figure 8(b), as the function parameter. In the expression editor, the user can select the function corresponding to the information to be extracted (function list), and obtain information from the model by interactively picking or setting conditions (condition selection);
[0094] It should be noted that the conditional formula does not depend on the creation time of the model. For the function that has been created, the changes in the drawing area after creation can be automatically synchronized, and the results are kept dynamically updated. In addition, the function that has been edited can be edited again to modify the condition of the function.
[0095] S502, in the expression editor, complete the customization of the expression: the user inserts the function and selects the parameter, enters the operator, and inserts the reference data on the visual interface to define the expression, for example Fig. 9As shown in the figure, multiple functions can be placed in an expression, or operators, numbers, or existing data can be input; it also includes lexical detection and result prompts, expression error detection and prompts to ensure that the calculation expression entered by the user is lexically correct and the reference is legal; the "no data (null)" result prompt helps users understand whether the placed functions and references have valid value objects;
[0096] After completing the customization of the expression, you need to parse and calculate the expression: use the antlr4 tool to perform lexical analysis on the input formula and generate a syntax tree; analyze the function part and its parameter information in the formula; combine all objects in the model with the built-in condition information of the function and the condition information entered by the user, filter out the information that meets the conditions and perform calculations; calculate the result of a single function, and calculate the result of the entire formula through arithmetic operations; data update and storage are also required: use dynamic programming methods to optimize the performance of referenced formulas and functions in formulas, and use caching technology to optimize the calculation processing of single object attributes.
[0097] S503, for example Fig.10 As shown, the data results are displayed in the result preview, which also includes the visual interaction of the expression and model linkage, allowing users to reversely locate the specific geometric model through the expression, such as Fig.11 As shown in the figure, check the parameters of the created function and highlight the corresponding model.
[0098] It should be noted that linkage updates include: editing models, refreshing data modules, and updating results; editing expressions, updating calculation results and related referenced data; editing submitted function parameters (modifying conditions or selection sets), and updating output results;
[0099] S504, the formula can be exported to Excel with metadata information attached.
[0100] The above method and system improve the efficiency and accuracy of obtaining information and calculating data from the model. By providing flexible custom formula calculation functions and real-time data and model linkage mechanisms, users can quickly extract and process model information, reducing the possibility of manual operations and human errors. It improves the ability of data management and calculation in the architectural design process, and improves design efficiency and accuracy. It helps to change the existing business workflow of separation of digital and model. In traditional architectural design workflows, data and models are usually separated, resulting in inefficient information transmission and data processing. By realizing two-way linkage between data and three-dimensional models, this way of working may be changed.
[0101] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described order of actions, because according to the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
[0102] According to another aspect of the embodiments of the present invention, a target geometric model data calculation device for implementing the above-mentioned geometric model data calculation method is also provided. Fig.12 As shown, the device comprises:
[0103] The first acquisition unit 1202 is used to respond to the data calculation instruction of the target object set, and acquire the objective function and condition parameters, wherein the objective function is the mathematical property corresponding to the geometric model, the condition parameters are the engineering properties corresponding to the geometric model, and the target object set includes multiple target object monomers;
[0104] A first determining unit 1204 is used to determine a target calculation formula based on the target function and the conditional parameters, and split the target calculation formula into multiple target sub-formulas based on an operation rule, wherein the multiple target sub-formulas constitute a target formula set;
[0105] A second acquisition unit 1206 is used to acquire a first sub-result corresponding to the target object monomer from the first repository, and acquire a second sub-result corresponding to the second target sub-formula from the second repository, wherein the first sub-result is calculated by the first target sub-formula, and the second sub-result is calculated by the second target sub-formula;
[0106] The first calculation unit 1208 is used to perform calculation based on the first sub-result, the second sub-result and the target calculation formula to obtain a target calculation result of the target object set, wherein the target calculation formula and the target calculation result are displayed on the display panel.
[0107] According to another aspect of the embodiments of the present invention, an electronic device for implementing the above-mentioned geometric model data calculation method is also provided. Fig.13 As shown, the electronic device includes a memory 1302 and a processor 1304. The memory 1302 stores a computer program, and the processor 1304 is configured to execute the steps in any of the above method embodiments through the computer program.
[0108] Optionally, in this embodiment, the electronic device may be located in at least one network device among a plurality of network devices of a computer network.
[0109] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:
[0110] S1, responding to the data calculation instruction of the target object set, obtaining the objective function and conditional parameters, wherein the objective function is the mathematical property corresponding to the geometric model, the conditional parameters are the engineering properties corresponding to the geometric model, and the target object set includes multiple target object monomers;
[0111] S2, determining a target calculation formula based on the target function and the conditional parameters, and splitting the target calculation formula into multiple target sub-formulas based on an operation rule, wherein the multiple target sub-formulas constitute a target formula set;
[0112] S3, obtaining a first sub-result corresponding to the target object monomer from the first repository, and obtaining a second sub-result corresponding to the second target sub-formula from the second repository, wherein the first sub-result is calculated by the first target sub-formula, and the second sub-result is calculated by the second target sub-formula;
[0113] S4, performing calculation based on the first sub-result, the second sub-result and the target calculation formula to obtain a target calculation result of the target object set, wherein the target calculation formula and the target calculation result are displayed on the display panel.
[0114] Alternatively, a person skilled in the art may understand that: Fig.13 The structure shown is for illustration only, and the electronic device may also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (MID), a PAD, or other terminal devices. Fig.13 The structure of the electronic device is not limited. Fig.13 More or fewer components (such as network interfaces, etc.) as shown in, or with Fig.13 Different configurations shown.
[0115] Among them, the memory 1302 can be used to store software programs and modules, such as the program instructions / modules corresponding to the geometric model data calculation method and device in the embodiment of the present invention. The processor 1304 executes various functional applications and data processing by running the software programs and modules stored in the memory 1302, that is, realizing the above-mentioned geometric model data calculation method. The memory 1302 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 1302 may further include a memory remotely arranged relative to the processor 1304, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Among them, the memory 1302 can be specifically, but not limited to, used to store information such as target sub-results and target sub-formulas. As an example, such as Fig.13 As shown, the memory 1302 may include, but is not limited to, the first acquisition unit 1202, the first determination unit 1204, the second acquisition unit 1206, and the first calculation unit 1208 in the target model data calculation device. In addition, other module units in the target model data calculation acquisition device may also be included but are not limited to, which will not be repeated in this example.
[0116] Optionally, the transmission device 1306 is used to receive or send data via a network. Specific examples of the network may include a wired network and a wireless network. In one example, the transmission device 1306 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers via a network cable so as to communicate with the Internet or a local area network. In one example, the transmission device 1306 is a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0117] In addition, the electronic device further includes: a display 1308 for displaying information such as target calculation results of the building geometry; and a connection bus 1310 for connecting various module components in the electronic device.
[0118] According to another aspect of the embodiments of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when run.
[0119] Optionally, in this embodiment, the computer-readable storage medium may be configured to store a computer program for performing the following steps:
[0120] S1, responding to the data calculation instruction of the target object set, obtaining the objective function and conditional parameters, wherein the objective function is the mathematical property corresponding to the geometric model, the conditional parameters are the engineering properties corresponding to the geometric model, and the target object set includes multiple target object monomers;
[0121] S2, determining a target calculation formula based on the target function and the conditional parameters, and splitting the target calculation formula into multiple target sub-formulas based on an operation rule, wherein the multiple target sub-formulas constitute a target formula set;
[0122] S3, obtaining a first sub-result corresponding to the target object monomer from the first repository, and obtaining a second sub-result corresponding to the second target sub-formula from the second repository, wherein the first sub-result is calculated by the first target sub-formula, and the second sub-result is calculated by the second target sub-formula;
[0123] S4, performing calculation based on the first sub-result, the second sub-result and the target calculation formula to obtain a target calculation result of the target object set, wherein the target calculation formula and the target calculation result are displayed on the display panel.
[0124] Optionally, in this embodiment, a person of ordinary skill in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by instructing hardware related to the terminal device through a program, and the program may be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.
[0125] 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.
[0126] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling one or more computer devices (which can be personal computers, servers or network devices, etc.) to perform all or part of the steps of the methods of various embodiments of the present invention.
[0127] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0128] In the several embodiments provided in the present application, it should be understood that the disclosed client can be implemented in other ways. Among them, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0129] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0130] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0131] The above are only preferred embodiments of the present invention. It should be pointed out that, for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for calculating geometric model data, It is characterized in that include: In response to the data calculation instruction of the target object set, an objective function and a condition parameter are obtained, wherein the objective function is a mathematical property corresponding to the geometric model, the condition parameter is an engineering property corresponding to the geometric model, and the target object set includes a plurality of target object monomers; Determine a target calculation formula based on the target function and the conditional parameters, and split the target calculation formula into multiple target sub-formulas based on an operation rule, wherein the multiple target sub-formulas constitute a target formula set; Obtaining a first sub-result corresponding to the target object monomer from a first repository, and obtaining a second sub-result corresponding to a second target sub-formula from a second repository, wherein the first sub-result is calculated by the first target sub-formula, and the second sub-result is calculated by the second target sub-formula; A calculation is performed based on the first sub-result, the second sub-result and the target calculation formula to obtain a target calculation result of the target object set, wherein the target calculation formula and the target calculation result are displayed on a display panel.
2. The method according to claim 1, It is characterized in that Before obtaining the first sub-result corresponding to the single target object from the first repository, the method further includes: The target calculation formula is split into M first target sub-formulas with the target object monomer as the minimum calculation unit, where M is a positive integer; Calculate the M first target sub-formulas to obtain M first sub-results, wherein each first sub-result corresponds to one target object monomer; The M first sub-results are stored in the first storage repository.
3. The method according to claim 1, It is characterized in that Before acquiring the second sub-result corresponding to the second sub-formula from the second storage repository, the method further includes: Acquire a plurality of the target calculation formulas in the display panel and reference relationships between the target calculation formulas; Determine the target calculation formula whose number of citations is greater than a preset citation number threshold as the N second target sub-formulas, where N is a positive integer; Calculating the N second target sub-formulas to obtain N second sub-results; The N second sub-results are stored in the second storage repository.
4. The method according to claim 1, It is characterized in that After obtaining the target calculation result of the target object set, the method further includes: Upon receiving the target object monomer modification instruction, obtaining the target calculation formula of the target object monomer; Retrieving a historical calculation formula for the target object monomer calculation in the first repository, and recalculating based on the modified objective function and the conditional parameter to obtain a third sub-result; The third sub-result replaces the first sub-result and is stored in the first repository.
5. The method according to claim 1, It is characterized in that The determining of the target calculation formula based on the target function and the conditional parameters also includes: Performing syntax detection and reference detection on the target calculation formula generated by the target function and the conditional parameters; In the case of not meeting the grammar detection result, sending the target calculation formula and warning information to the display panel; In the case of not meeting the reference detection result, the target calculation formula and reminder information are sent to the display panel.
6. The method according to claim 1, It is characterized in that The obtaining of the objective function and conditional parameters comprises: Determine the target function in the preset function according to the target function selection instruction; The conditional parameters are determined from the first type of parameters, the second type of parameters, and the third type of parameters according to the conditional selection instruction, wherein the first type of parameters are conditional styles, the second type of parameters are specific labels, and the third type of parameters are building materials.
7. The method according to any one of claims 1 to 6, It is characterized in that After obtaining the target calculation result of the target object set, the method further includes: When receiving a data export instruction, obtaining a target file export format, and exporting the target calculation result according to the target file export format; When a data reverse query instruction is received, the target object set is determined according to the target calculation result and the target calculation formula, and the target object set is displayed on the display panel in a target visualization manner.
8. A geometric model data calculation device, It is characterized in that include: A first acquisition unit is used to respond to a data calculation instruction of a target object set, acquire an objective function and a condition parameter, wherein the objective function is a mathematical property corresponding to a geometric model, the condition parameter is an engineering property corresponding to the geometric model, and the target object set includes a plurality of target object monomers; A first determining unit is used to determine a target calculation formula based on the target function and the condition parameter, and split the target calculation formula into a plurality of target sub-formulas based on an operation rule, wherein the plurality of target sub-formulas constitute a target formula set; A second acquisition unit is used to acquire a first sub-result corresponding to the target object monomer from the first repository, and acquire a second sub-result corresponding to the second target sub-formula from the second repository, wherein the first sub-result is calculated by the first target sub-formula, and the second sub-result is calculated by the second target sub-formula; The first calculation unit is used to perform calculation based on the first sub-result, the second sub-result and the target calculation formula to obtain a target calculation result of the target object set, wherein the target calculation formula and the target calculation result are displayed on a display panel.
Citation Information
Cited By
Geometric structure evaluation method and device, storage medium and electronic equipment
CN119903202A
