A component model updating method and device and electronic equipment
By automatically updating the component list and relationships, the problem of low component update efficiency in existing technologies is solved, enabling efficient, flexible, and secure updates to the component model, thereby improving modeling efficiency and accuracy.
Patent Information
- Application Number
- CN202210764527.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-29
- Publication Date
- 2025-11-18
- Estimated Expiration
- 2042-06-29
AI Technical Summary
Existing methods for updating components after creation or shape changes increase computational complexity, reduce program efficiency, and fail to effectively improve the flexibility and adaptability of updates between components.
This paper presents a component model-based update method that automatically updates the component list and relationships after the component shape changes, thereby reducing the number of data updates and improving modeling efficiency. Furthermore, it ensures the correctness and security of the component model through legality checks and business rule judgments.
It reduces computational complexity and workload, improves the flexibility and adaptability of component model updates, enhances modeling efficiency and accuracy, and ensures the legality and security of component models.
Smart Images

Figure CN115238338B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer-aided design technology, and in particular to a method, apparatus, and electronic device for updating component models. Background Technology
[0002] During the creation or secondary editing of Building Information Modeling (BIM) for engineering projects, it is necessary to address the creation, deletion, and updating of relationships between components. For example, when making general edits to a sump, such as translation, rotation, alignment, copying, and arraying, the relationships between components need to be updated. For instance, the relationship between the non-shaded area of a constraint edge and walls / columns; after moving a wall / column, if the non-referenced area of the constraint edge is invalid, the user will be prompted whether to continue updating. Establishing a suitable construction BIM model based on construction technology and BIM project requirements, defining the necessary attributes and characteristics of the construction BIM model, and establishing corresponding creation methods and systems can save workload for modelers and reduce costs for enterprises. This helps to facilitate the application of BIM in project construction, ensuring that the industry and enterprises' expectations for the value of BIM are truly realized in the model application of BIM engineering.
[0003] The existing method for updating components after creation or shape changes involves first actively updating the components after general editing, and then updating the relationships between the components. This method increases computational complexity and reduces program efficiency. Summary of the Invention
[0004] To address the aforementioned technical problems and improve the flexibility and adaptability of updating components, this invention discloses an updating method, apparatus, and electronic device based on a component model. More specifically, the following technical solutions are disclosed:
[0005] In a first aspect, embodiments of the present invention provide an update method based on changes in graphic shape, which can be applied to the simulation modeling process of building component models. Specifically, the method includes the following steps:
[0006] After general editing based on simulation modeling, a first component list is obtained. The first component list includes at least a first component and a second component. The combined forms of the first component and the second component have a first correspondence relationship. After any one or more components in the first component list change shape, the first component list is updated to obtain a second component list. A second correspondence relationship between all components in the second component list is also obtained. The second correspondence relationship is different from the first correspondence relationship. A component model is generated based on the second component list and the second correspondence relationship.
[0007] The method provided in this paper automatically updates the component list and the relationships between each component based on the shape changes of the components in the original component list. That is, while updating the component list, the corresponding relationships of the combined shapes of each component in the component list are also updated. This method can flexibly and adaptively adjust the relationships based on the components in the component list that have undergone shape changes. Compared with the existing method of updating all components after general editing and then updating the data again after preparing to commit the transaction, this method reduces the number of data updates, thereby reducing computational complexity and workload, and improving modeling efficiency.
[0008] In conjunction with the first aspect, in one possible implementation of the first aspect, after any one or more components in the first component list change shape, the first component list is updated to obtain a second component list. Specifically, this includes: after the shape of any one or more components changes, a third component is added; if the third component is not a temporary component, it is determined whether the third component conforms to business rules; if so, the second component list is obtained including the third component, as well as new first and second components, wherein the new first and second components are generated based on the first and second components in the first component list adapted to the change of the third component.
[0009] In this embodiment, after a component is created or edited in general, any change to a component can be performed on the component itself based on its current state for legality checks and updates, thereby improving the accuracy of modeling.
[0010] In conjunction with the first aspect, in another possible implementation of the first aspect, the method further includes: if it is determined that the third component is a temporary component, adding the third component to the list to be deleted and waiting for transaction submission processing.
[0011] In conjunction with the first aspect, in another possible implementation of the first aspect, the method further includes: determining whether the third component is a temporary component based on the content of a preset field in the third component; if the preset field includes first indication information, then determining that the third component is a temporary component; if the preset field includes second indication information, then determining that the third component is not a temporary component.
[0012] In conjunction with the first aspect, in another possible implementation of the first aspect, the method further includes: if the third component does not conform to the business rules, then adding the third component to the list to be deleted and waiting for transaction commit processing.
[0013] In this embodiment, when a third component that has undergone a shape change is found to be invalid and does not conform to the business rules, the component is added to the list to be deleted. The components in the list to be deleted are then deleted in the transaction post-processor, thereby ensuring that all remaining components are valid. A new component model is then reconstructed and generated, ensuring the correctness and security of the newly generated component model.
[0014] In conjunction with the first aspect, in another possible implementation of the first aspect, obtaining the second correspondence relationship between all components in the second component list includes: obtaining a list to be updated and / or a list to be deleted; after the transaction is committed, adding or deleting at least one component in the list to be updated and / or the list to be deleted to obtain the second correspondence relationship; the combination form between the components in the second correspondence relationship has at least one of the following relationships: punching, deduction, attachment, etc.
[0015] In conjunction with the first aspect, in another possible implementation of the first aspect, after any one or more components in the first component list change shape, the first component list is updated to obtain a second component list, including: after the combined form of the first component and the second component in the first component list is disassembled or separated, a prompt message is displayed asking whether to delete the first component or the second component; in response to the user's feedback on the prompt message, the first component or the second component is added to the list to be deleted or the list to be updated, and the transaction is awaited for submission.
[0016] In this implementation, when a component is to be deleted, a prompt message is displayed to the user asking if they wish to delete it. The deletion operation is only performed after the user confirms or provides a deletion instruction, thus preventing accidental deletion of a component by user error. Furthermore, this solution interacts with the user, improving the user experience.
[0017] Secondly, embodiments of the present invention also provide an apparatus corresponding to the first aspect and the methods in various implementations of the first aspect. This apparatus is applied to the simulation modeling process of a building component model. Specifically, the apparatus includes:
[0018] The acquisition module is used to obtain a first component list after general editing based on simulation modeling. The first component list includes at least a first component and a second component, and the combination forms of the first component and the second component have a first correspondence relationship.
[0019] The update module is used to update the first component list after any one or more components in the first component list change shape, obtain a second component list, and obtain a second correspondence relationship between all components in the second component list, wherein the second correspondence relationship is different from the first correspondence relationship.
[0020] The generation module is used to generate component models based on the second component list and the second correspondence.
[0021] In addition, the aforementioned acquisition module, update module, and generation module are also used to implement other method steps in various embodiments of the first aspect.
[0022] Thirdly, embodiments of the present invention also provide an electronic device, including: at least one processor; and a memory communicatively connected to the at least one processor.
[0023] The memory stores computer-readable program instructions that, when executed by the at least one processor, can implement the method described in the first aspect or various embodiments thereof.
[0024] Fourthly, embodiments of the present invention also provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the methods described in the first aspect or various embodiments of the first aspect.
[0025] It should be noted that the beneficial effects of the various implementation methods of the second to fourth aspects mentioned above are the same as those of the first aspect and the various implementation methods of the first aspect mentioned above. For details, please refer to the description of the beneficial effects in the first aspect and the various implementation methods of the first aspect mentioned above, and will not be repeated here. Attached Figure Description
[0026] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0027] Figure 1 A flowchart for updating a component model is provided as an embodiment of the present invention;
[0028] Figure 2 A flowchart illustrating a method for updating a component model according to an embodiment of the present invention;
[0029] Figure 3 A flowchart of another component model update method provided in an embodiment of the present invention;
[0030] Figure 4 This is a schematic diagram of a component before updating, provided in an embodiment of the present invention;
[0031] Figure 5 A schematic diagram of an updated component provided in an embodiment of the present invention;
[0032] Figure 6 A flowchart of another component model update method provided in an embodiment of the present invention;
[0033] Figure 7 A structural diagram of a component model updating device provided in an embodiment of the present invention;
[0034] Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0035] The technical solution of the present invention will now be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0036] The technical solutions provided in this invention can be applied to BIM modeling software, such as BIMMAKE software, to solve the technical problems arising from the creation, deletion, and updating of components in the modeling environment. For ease of description below, the terms involved in the embodiments of this application will first be explained and described.
[0037] (1) Graphical element: A graphic element is the smallest operable display unit in graphic information engineering. For example, a column is displayed as a cuboid in graphic software and described as a graphic element; the length, width, height, and reinforcement information of this graphic element can be adjusted.
[0038] (2) Component: A component is a physical object generated based on a family or category. It can be associated with a certain part of a building. In modeling software, a component can generate multiple primitives. When most of the core characteristics of a group of primitives are the same, in order to avoid redefining, this group of primitives is merged into a component, and the common feature data is defined in the component.
[0039] (3) Family: refers to the various elements that make up a building, mainly including walls, beams, slabs, columns, etc. In this embodiment of the invention, the "family" is defined as an abstract concept, which can be understood as a template of a specific object.
[0040] (4) Shear wall: also known as wind-resistant wall, earthquake-resistant wall, or structural wall. A wall in a building or structure that primarily bears horizontal and vertical loads caused by wind or earthquakes, preventing structural shear failure. Generally, shear walls are made of reinforced concrete.
[0041] (5) Shaded and Unshaded Zones of Constrained Edge Members: In shear wall structures, the portion set at the vertical edge of the shear wall to enhance its tensile, bending, and shear resistance is called the shaded zone of the constrained edge member. In a region where the shear wall and the shaded zone intersect, the reinforcement is typically different. A member is used to represent this model and the reinforcement; this member is called the unshaded zone of the constrained edge member.
[0042] (6) Subtraction: The subtraction body of component A performs a Boolean subtraction on the shape of component B, which can be called A subtracting B.
[0043] (7) Drilling holes: The hole-drilling shape of component A is subtracted from the shape of component B by Boolean, which can be called A drilling holes in B.
[0044] (8) Attachment: When a surface of component A is attached to a surface of component B that conforms to the attachment rules, it can be said that A is attached to B.
[0045] The Boolean subtraction mentioned above is a branch of Boolean operations. Boolean operations are a logical deduction method based on numerical symbols, including union, intersection, and subtraction; logical operations are used in graphics processing to generate new shapes from simple basic graphic combinations.
[0046] See Figure 1 This document provides a flowchart for updating a component model, as illustrated in an embodiment of this application. The model update process includes the following stages: General editing, where one or more building components are designed and edited; and "preparing for transaction commit," which involves preparing to delete, add, and update inter-component relationships for at least one component after general compilation. The data update stage records components with changed shapes in the component shape calculator and submits them to the transaction post-processor. In the transaction post-processor, the changed components are categorized and identified for component customization, completing the transaction. The component customization process in the transaction post-processor includes deletion, creation of component relationships, and updating operations.
[0047] It should be noted that all method steps provided in the embodiments of the present invention can be executed in a computer or computer system, such as a set of computer-executable instructions. The methods provided in the embodiments of the present invention will be described in detail below.
[0048] This invention discloses an update method based on changes in graphic shape. The various steps of this method can be executed by an electronic device, such as... Figure 2 As shown, the method includes:
[0049] Step 101: After general editing based on simulation modeling, a first component list is obtained. The first component list includes at least a first component and a second component, and there is a first correspondence between the combination forms of the first component and the second component.
[0050] The first component list can be a list of component IDs, used to record the component IDs of each component, such as the component ID of the first component and the component ID of the second component. Each ID is used to uniquely identify the component. Additionally, the first component list may also include component IDs of other components.
[0051] Furthermore, the first correspondence between the first component and the second component can be various combinations such as subtraction, drilling, or attachment, meaning that the two components are connected or intersecting. Optionally, in one case, the first component and the second component can also be unconnected, in which case the first correspondence is that the first component and the second component do not intersect.
[0052] After general editing of the components, the computer or computer system obtains the first component list. For example, after performing general editing operations, the general editing software reports the component IDs of each current component to the computer, so that the computer can generate the first component list after receiving these component IDs. Alternatively, the general editing software can generate the first component list based on the component IDs of each current component and then send it to the computer.
[0053] Step 102: After any one or more components in the first component list change shape, update the first component list, obtain the second component list, and obtain the second correspondence between all components in the second component list. The second correspondence is different from the first correspondence.
[0054] The first component list includes the first component and the second component, or it can be other components in the first component list, such as a newly added third component. Changes in shape include changes in position, structure, and connection relationships. A change in connection relationship refers to a change in the correspondence between two components. For example, when the connection position between the second component and the first component changes, the first correspondence also changes, and the connection relationship between the two components after the change can be called the second correspondence.
[0055] It should be noted that if the shape of other components in the first component list changes, such as by adding a third component, a new connection relationship is formed between the third component and the original first and second components. In this case, a second correspondence relationship exists between the third component and the first and second components. Optionally, the second correspondence relationship also includes relationships such as drilling, deduction, and attachment between components.
[0056] The second component list includes the updated component IDs. For example, if a third component is added, the second component list will include the component ID of the third component, as well as the component IDs of the original first and second components. Then, this second component list and the updated second correspondence are reported to the transaction post-processor.
[0057] Optionally, the transaction post-processor can be a processing unit or processing module, or it can be an instruction function module with transaction post-processing capabilities. Additionally, the aforementioned updated correspondence and the main body of the component list can be another functional module or unit, such as a component shape calculator or calculation module.
[0058] Step 103: Generate a component model based on the second component list and the second correspondence.
[0059] After submission to the transaction post-processor, the transaction post-processor obtains and performs completion and submission operations based on the currently updated second component list and the second correspondence containing the relationships between each component, thus forming a component model. More specifically, the component model can be automatically generated by BIM modeling software; this embodiment does not limit the specific process of generating the component model.
[0060] The method provided in this embodiment automatically updates the component list and the relationships between each component based on the shape changes of the components in the original component list. That is, while updating the component list, the corresponding relationships of the combined forms of each component in the component list are also updated. This method can flexibly and adaptively adjust the relationships based on the components in the component list that have undergone shape changes. Compared with the existing method that updates all components after general editing and then updates the data again after preparing to commit the transaction, this method reduces the number of data updates, thereby reducing computational complexity and workload, and improving modeling efficiency.
[0061] In addition, after a component is created or edited in general, this method can perform compliance checks and updates on the component itself based on its current state for any non-shaded area where the component changes, thereby improving the accuracy of modeling.
[0062] Optionally, in one embodiment, such as Figure 3 As shown, in step 101 of the "data update" phase: after any one or more components in the first component list change shape, update the first component list to obtain the second component list, specifically including:
[0063] Step 1011: After the shape of any one or more components changes, add a third component.
[0064] Specifically, one possibility is that after the first or second component changes, the third component is the first or second component after its shape has changed. Another possibility is that when a new component is created, the newly created component is the third component.
[0065] Step 1012: Determine whether the third component is a temporary component.
[0066] Specifically, temporary components are understood as components created temporarily. These components are not used to form the final updated model. They may be temporary components added by the designers during the software simulation process, serving as intermediate components for simulating and combining models.
[0067] One method for determining whether a third component is a temporary component is as follows: During the model design phase, each component has preset fields. The content of the preset fields in the third component is used to determine whether it is a temporary component. If the preset fields include a first indication, the third component is determined to be a temporary component; if the preset fields include a second indication, the third component is determined not to be a temporary component.
[0068] Optionally, the first indication information can be "1" and the second indication information can be "0". In addition, other content can be set as indication information, which is not limited in this embodiment.
[0069] It should be noted that before step 1012, each component in the first component list, as well as the newly added third component, are pre-registered in the computer, so that the computer can determine whether the third component is a temporary component.
[0070] Step 1013: If it is not a temporary component, then determine whether the third component conforms to the business rules.
[0071] The business rules can be determined based on the business of the component. Specifically, the business rules of the component can be a general processing method for components to be deleted. For example, in the design of components with "columns" and "beams", it is usually necessary to set component "leaf corners" to fix the "columns" and "beams". Therefore, when the shape of the components "columns" and "beams" changes, such as the structure of the "column" and "beam" separating, the existence of the original component "leaf corners" is meaningless. Therefore, the existence of "leaf corners" does not conform to the business rules at this time.
[0072] Furthermore, business rules may also include others. For example, in a combined model with components such as "walls" and "columns," it typically includes the shaded or unshaded areas of the edge components. In this case, it is further determined whether the shaded or unshaded area formed by the current component is appropriate. It should be understood that in the specific modeling process, the business rules can also be set according to the actual situation of the building project. Therefore, this embodiment does not limit the specific requirements of the business rules.
[0073] Step 1014: If yes, that is, if the business rules are met, then the second component list includes the third component, as well as the new first component and the second component.
[0074] The new first and second components are generated based on the first and second components in the original list of first components, adapted to the changes in the third component.
[0075] Step 1015: If the third component is a temporary component, add the third component to the list to be deleted and wait for the transaction to be committed.
[0076] In a specific example, such as Figure 4 and Figure 5 As shown, assume that the newly added third component is component A, the first component is component B, and the second component is component C. The first component list includes {component A, component B, component C}, and the combination relationship between component A and component B, and between component B and component C, is the first correspondence relationship.
[0077] like Figure 4 As shown in this example, component A and component B are attached to each other, while component B and component C are not connected. When the shapes of components B and C change, the component shape calculator is triggered, creating a new component A that depends on the shape changes of components B and C.
[0078] At this point, it is necessary to update the association relationship between component A and other components, that is, update the association relationship list, which contains the second correspondence relationship of each component. Specifically, execute the aforementioned steps 1011 to 1015. If it is determined that component A is not a temporary component but a real component, and further determined that component A conforms to the business rules, i.e., it is legal; then execute step 1104, add component A to the association relationship list, and update the association relationship between the original components B and C.
[0079] At the same time, the original components B and C were also adapted, such as... Figure 5As shown, the newly added component A becomes component A' after the update. Correspondingly, components B and C are also adaptively adjusted to components B' and C'. The generated second component list includes {component A', component B', component C'}, at which point the original first correspondence becomes the second correspondence. In this example, in the updated association, there is an attachment relationship between component A' and component C', and component B' and component C' are connected through component A'.
[0080] Optionally, step 1013 above also includes: if it is determined that the third component (component A) does not conform to the business rules, then the third component is added to the list to be deleted and awaits transaction commit processing.
[0081] For example, in the aforementioned embodiment, the third component is a "leaf corner". After the shape of the first component "beam" and the second component "column" changes, that is, after separation, the setting of the third component "leaf corner" is a non-essential component, or other components may be generated, such as the shadow area component. In this case, it is determined that the existence of the "leaf corner" does not comply with the business rules, and the component ID corresponding to the third component "leaf corner" is added to the list to be deleted.
[0082] As an optional embodiment of the present invention, step 102: after any one or more components in the first component list change shape, update the first component list to obtain a second component list, specifically including:
[0083] After the combination of the first and second components in the first component list is disassembled or separated, a prompt message is displayed asking whether to delete the first or second component. In response to the user's feedback on the prompt message, the first or second component is added to the list to be deleted or the list to be updated, awaiting transaction submission.
[0084] For example, if component A and component B disassemble or separate in their combined form, the system will pop up or display a prompt window asking whether to delete component A or component B. For instance, the prompt might ask whether to delete the current component A or component B. If the user responds with "yes" to this prompt, component A or component B will be deleted from the current modeling environment, and its ID will be added to the list of components to be deleted. If the user responds with "no," the corresponding component will not be deleted, and it will remain in the current modeling environment.
[0085] The method provided in this embodiment judges the legality of non-temporary components, i.e., real components, when updating the association relationship between components, that is, whether they comply with business specifications. This ensures that after a component is created or generally edited, any component that changes its non-shaded area can always perform compliance checks and updates based on the current state, thereby improving the adaptability of the updated component.
[0086] Furthermore, as another optional embodiment of the present invention, such as Figure 6 As shown, updating the component shape also includes updating the association relationships. Specifically, it determines whether the current component is a temporary component. If not, i.e., it is not a temporary component but a real component, the component ID of the current component is added to the association relationship list, and the component ID of the component is recorded. Otherwise, if it is a temporary component, it is added to the list to be deleted, waiting for the transaction post-processor to execute subsequent operations.
[0087] Meanwhile, after determining whether the component conforms to the business specifications, the components in the list to be deleted are updated. For the specific process, please refer to steps 1011 to 1015 above, which will not be repeated here.
[0088] After performing the "data update" operation, the computer or calculator submits the updated list of relationships and the list of items to be deleted to the transaction post-processor, initiating the transaction post-processing flow. Specifically, each component at the product layer is pre-registered with the transaction post-processor. The transaction post-processor receives the updated data, including the list of items to be deleted and the list of relationships, deletes the components in the list of items to be deleted, and simultaneously updates the list of relationships to obtain a second correspondence. The update process includes one or more of the following: punching, deduction, and attachment.
[0089] Furthermore, the transaction post-processor receives the list of items to be deleted. After the transaction is committed, it displays a prompt as needed: whether to delete. If the user selects "yes", the deletion action is performed (deleting all components in the list of items to be deleted). If the user selects "no", the transaction is rolled back.
[0090] Additionally, the post-transaction processor receives a list of callback functions for components to be created, also known as a list of components to be created or a list of components to be updated. After the transaction is committed, it calls the creation function and clears the list. Different callback functions are marked with different flags for subsequent deletion. The post-transaction processor receives a list of components to be updated and, after the transaction is committed, updates the relationships such as punching, deduction, and attachment for the components in the list.
[0091] Optionally, the system can update the status of components in real time after changes in their shape according to different business attributes, so as to quickly assign business requirements to the BIM model and refine the geometric position of the components, thereby improving the positioning accuracy of the components.
[0092] The method provided in this embodiment breaks away from the inherent component design logic. Based on changes in component shape, it simultaneously updates the component relationships and the list of temporary components to be deleted, and submits the updated data to the transaction post-processor. This allows the post-processor to perform corresponding operations such as linking and deleting components, thereby achieving rapid and automatic linking and updating of the construction BIM model. Furthermore, after component creation or general editing changes, supporting processing mechanisms can be added to enhance scalability.
[0093] It should be noted that the components in the above-mentioned component shape change and model update method in this embodiment can also be smaller units, such as including but not limited to changes in a certain graphic element. For example, if one or more graphic elements in a component change, the various steps of this method embodiment are also applicable.
[0094] The following describes the apparatus embodiments corresponding to the method embodiments of the present invention.
[0095] See Figure 7 The present invention provides a structural schematic diagram of a component model updating device, which is applied to the simulation modeling process of building component models. The device includes: an acquisition module 701, an update module 702, and a generation module 703. In addition, it may include other more or fewer modules, such as a storage module, a sending module, etc.
[0096] The acquisition module 701 is used to obtain a first component list after general editing based on simulation modeling. The first component list includes at least a first component and a second component, and the combination forms of the first component and the second component have a first correspondence relationship.
[0097] The update module 702 is used to update the first component list after any one or more components in the first component list change shape, obtain a second component list, and obtain a second correspondence relationship between all components in the second component list, wherein the second correspondence relationship is different from the first correspondence relationship.
[0098] The generation module 703 is used to generate a component model based on the second component list and the second correspondence.
[0099] Optionally, in one specific implementation of this embodiment, the update module 702 is specifically used to add a third component after the shape of any one or more components changes; if the third component is not a temporary component, determine whether the third component conforms to business rules; if so, obtain the second component list including the third component, as well as a new first component and a second component, wherein the new first component and the second component are generated based on the first component and the second component in the first component list adapted to the change of the third component.
[0100] Optionally, in another specific implementation of this embodiment, the update module 702 is further configured to add the third component to the list to be deleted and wait for transaction submission processing if the third component is a temporary component.
[0101] Optionally, in another specific implementation of this embodiment, the device further includes a determining module, which determines... Figure 7 The determination module is used to determine whether the third component is a temporary component based on the content of a preset field in the third component; if the preset field includes first indication information, the third component is determined to be a temporary component; if the preset field includes second indication information, the third component is determined not to be a temporary component.
[0102] Optionally, in another specific implementation of this embodiment, the device further includes an adding module, which adds... Figure 7 The following is not shown: An add module is used to add the third component to the deletion list when the determining module determines that the third component does not conform to the business rules, awaiting transaction commit processing.
[0103] Optionally, in another specific implementation of this embodiment, the update module 702 is specifically used to obtain the list to be updated and / or the list to be deleted. After the transaction is committed, at least one component in the list to be updated and / or the list to be deleted is added or deleted to obtain the second correspondence. The combination form between the components in the second correspondence has at least one of the following relationships: punching, deduction, and attachment.
[0104] Optionally, in another specific implementation of this embodiment, the device further includes a display module, used to display a prompt message indicating whether to delete the first component or the second component after the combination of the first component and the second component in the first component list is disassembled or separated; the adding module is also used to add the first component or the second component to the list to be deleted or the list to be updated in response to the user's feedback on the prompt message, and wait for the transaction to be submitted for processing.
[0105] In addition, embodiments of the present invention also provide an electronic device, such as... Figure 8 As shown, the electronic device may include a processor 801 and a memory 802, wherein the processor 801 and the memory 802 may be connected via a bus or other means. Figure 8 Taking a bus connection as an example. Furthermore, the electronic device also includes at least one interface 803, which can be a communication interface or other interface; this embodiment does not impose any limitations on this.
[0106] The processor 801 can be a central processing unit (CPU). Alternatively, the processor 801 can be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or combinations thereof.
[0107] The memory 802, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer-executable programs, and modules, such as the program instructions / modules corresponding to the component model update method in the embodiments of the present invention. The processor 801 executes various functional applications and data processing of the processor by running the non-transitory software programs, instructions, and modules stored in the memory 802, thereby implementing the component model update method in the above method embodiments.
[0108] Furthermore, memory 802 may include a program storage area and a data storage area, wherein the program storage area may store the operating system and applications required for at least one function; the data storage area may store data created by processor 801, etc. Additionally, memory 802 may include high-speed random access memory and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory 802 may optionally include memory remotely located relative to processor 801, and these remote memories may be connected to processor 801 via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0109] In addition, at least one interface 803 is used for communication between the electronic device and external devices, such as communication with a server. Optionally, at least one interface 803 can also be used to connect peripheral input / output devices, such as a keyboard or display screen.
[0110] The non-transitory computer-readable storage medium stores computer program instructions, which, when executed by the processor 801, can implement the model update method in the foregoing embodiments.
[0111] It should be noted that the aforementioned calculators, such as component shape calculators and transaction post-processors, can all serve as functional modules of processor 801, thereby realizing the aforementioned processor functions.
[0112] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), random access memory (RAM), flash memory, hard disk drive (HDD), or solid-state drive (SSD), etc.; the storage medium can also include combinations of the above types of memory.
[0113] Although embodiments of the invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations all fall within the scope defined by the appended claims.
Claims
1. A method for updating a component model, characterized in that, The simulation modeling process applied to building component models includes the following methods: After general editing based on simulation modeling, a first component list is obtained. The first component list includes at least a first component and a second component, and the combination forms of the first component and the second component have a first correspondence relationship. After any one or more components in the first component list change shape, update the first component list to obtain a second component list, and obtain a second correspondence relationship between all components in the second component list, wherein the second correspondence relationship is different from the first correspondence relationship; Generate a component model based on the second component list and the second correspondence; After any one or more components in the first component list undergo a change in shape, the first component list is updated to obtain a second component list, including: After the shape of any one or more of the aforementioned components changes, a third component is added. If the third component is not a temporary component, determine whether the third component conforms to the business rules; If so, the second component list includes the third component, as well as new first and second components, wherein the new first and second components are generated based on the first and second components in the first component list adapted to the changes of the third component.
2. The method according to claim 1, characterized in that, The method further includes: If the third component is a temporary component, add the third component to the list to be deleted and wait for the transaction to be committed.
3. The method according to claim 2, characterized in that, The method further includes: Determine whether the third component is a temporary component based on the content of the preset field in the third component; If the preset field includes the first indication information, then the third component is determined to be a temporary component; If the preset field includes the second indication information, then the third component is determined not to be a temporary component.
4. The method according to claim 1, characterized in that, The method further includes: If the third component does not conform to the business rules, then the third component is added to the list to be deleted and awaits transaction commit processing.
5. The method according to claim 1, characterized in that, Obtain the second correspondence between all components in the second component list, including: Obtain the list to be updated and / or the list to be deleted. After the transaction is committed, add or delete at least one component in the list to be updated and / or the list to be deleted to obtain the second correspondence relationship. The combination form between the components in the second correspondence relationship has at least one of the following relationships: punching, deducting, and attaching.
6. The method according to claim 1, characterized in that, After any one or more components in the first component list undergo a change in shape, the first component list is updated to obtain a second component list, including: After the combination of the first component and the second component in the first component list is disassembled or separated, a prompt message is displayed asking whether to delete the first component or the second component. In response to user feedback on the prompt information, the first component or the second component is added to the list to be deleted or the list to be updated, and the transaction is awaited for submission.
7. A device for updating a component model, characterized in that, The device, used in the simulation modeling process of building component models, includes: The acquisition module is used to obtain a first component list after general editing based on simulation modeling. The first component list includes at least a first component and a second component, and the combination forms of the first component and the second component have a first correspondence relationship. The update module is used to update the first component list after any one or more components in the first component list change shape, obtain a second component list, and obtain a second correspondence relationship between all components in the second component list, wherein the second correspondence relationship is different from the first correspondence relationship. The generation module is used to generate component models based on the second component list and the second correspondence relationship; The update module is further configured to add a third component after any one or more components change shape; if the third component is not a temporary component, determine whether the third component conforms to business rules; if so, obtain the second component list including the third component, as well as a new first component and a second component, wherein the new first component and the second component are generated based on the first component and the second component in the first component list adapted to the change of the third component.
8. An electronic device, characterized in that, It includes a processor and a memory, the processor and the memory being coupled together, the memory storing computer-readable program instructions; When the processor reads instructions from the memory, it executes the method as described in any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Data updating method and device and electronic equipment
CN113419762A
Component adjustment method and device in BIM model, computer equipment and storage medium
CN113919027A