Switching method, device and equipment of building model and storage medium
By creating expressions and parameter mapping relationships for architectural models, the problem of engineers being unable to intuitively switch model types during the design process is solved, enabling fast and clear model switching and parameter change display.
Patent Information
- Application Number
- CN202310151289.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-07
- Publication Date
- 2025-12-30
- Estimated Expiration
- 2043-02-07
AI Technical Summary
When designing architectural models, engineers cannot intuitively see model changes, cannot quickly switch model types, and cannot clearly see the impact of data changes on the model.
Create expressions for the building model and establish a mapping relationship between parameters and expressions, and switch models in response to user operation commands.
It enables quick and clear switching between different forms of the same type of model, allowing users to intuitively see the impact of parameter changes on the model.
Smart Images

Figure CN116186855B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a method, apparatus, device and storage medium for switching architectural models. Background Technology
[0002] Currently, when engineers design building models using traditional methods, they cannot intuitively see the corresponding changes in the building model when the model changes. When the selected type of the building changes, the building model cannot quickly change to the type of model that needs to be displayed. Engineers cannot clearly see the impact of their changes on the current building model, nor can they quickly switch between different forms of the same model. Summary of the Invention
[0003] In view of the above, this application provides a method, apparatus, device and storage medium for switching building models, the purpose of which is to solve the above-mentioned technical problems.
[0004] In a first aspect, this application provides a method for switching architectural models, the method comprising:
[0005] Create expressions for each type of building model;
[0006] Establish a mapping relationship between each type of building model, the parameters corresponding to each type of building model, and each of the aforementioned expressions;
[0007] In response to a user's instruction to switch the current building model, the system performs a switching operation on the current building model based on the instruction and the mapping relationship.
[0008] Preferably, the expression for creating each type of building model includes:
[0009] Create expressions for each type of building model based on the expressions entered by the user in the human-computer interaction interface.
[0010] Preferably, the operation instruction includes a switching instruction, and the step of performing a switching operation on the current building model based on the operation instruction and the mapping relationship includes:
[0011] Obtain the target building model to be switched carried in the switching instruction, and read the target parameters corresponding to the target building model;
[0012] Based on the target parameters and the mapping relationship, the current building model is switched to the target building model for display.
[0013] Preferably, the step of switching the current building model to the target building model for display based on the target parameters and the mapping relationship includes:
[0014] Determine the expression corresponding to the target parameter based on the mapping relationship;
[0015] The target parameters are input into an expression to obtain the remaining parameters corresponding to the target building model;
[0016] Based on the target parameters and the remaining parameters, the current building model is switched to the target building model for display.
[0017] Preferably, the operation instruction includes a modification instruction, and the step of performing a switching operation on the current building model based on the operation instruction and the mapping relationship includes:
[0018] Obtain the target modification parameters carried in the modification instruction;
[0019] Update the parameters of the current building model to the target modification parameters;
[0020] Switch the current building model to the building model corresponding to the target modified parameters for display.
[0021] Preferably, the step of switching the current building model to the building model corresponding to the target modified parameters for display includes:
[0022] Based on the target parameter modification, the building model size corresponding to the current building model parameters is switched to the building model size corresponding to the target parameters for display.
[0023] Secondly, this application provides a device for switching architectural models, the device comprising:
[0024] Creation module: Expressions used to create each type of building model;
[0025] The module for creating a model is used to establish the mapping relationship between the parameters of each type of building model and each expression.
[0026] Switching module: Used to respond to user-initiated operation commands to switch the current building model, and to perform switching operations on the current building model based on the operation commands and the mapping relationship.
[0027] Thirdly, this application provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus;
[0028] Memory, used to store computer programs;
[0029] When a processor executes a program stored in memory, it performs the following steps:
[0030] Create expressions for each type of building model;
[0031] Establish a mapping relationship between each type of building model, the parameters corresponding to each type of building model, and each of the aforementioned expressions;
[0032] In response to a user's instruction to switch the current building model, the system performs a switching operation on the current building model based on the instruction and the mapping relationship.
[0033] Preferably, the operation instruction includes a switching instruction, and the step of performing a switching operation on the current building model based on the operation instruction and the mapping relationship includes:
[0034] Obtain the target building model to be switched carried in the switching instruction, and read the target parameters corresponding to the target building model;
[0035] Based on the target parameters and the mapping relationship, the current building model is switched to the target building model for display.
[0036] Fourthly, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the method for switching building models as described in any embodiment of the first aspect.
[0037] The technical solutions provided in this application have the following advantages compared with the prior art:
[0038] This application establishes a mapping relationship between each type of building model, its corresponding parameters, and each expression by creating expressions for each type of building model. After responding to the user's operation command to switch the current building model, the application performs a switching operation on the current building model based on the operation command and the mapping relationship. Since the building model, its corresponding parameters, and its expressions are linked and bound together, it can quickly switch between different forms of the same type of model. Users can clearly see the changes that parameter changes bring to the current building model. Attached Figure Description
[0039] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0040] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0041] Figure 1 This is a flowchart illustrating an embodiment of the building model switching method of this application;
[0042] Figure 2 This is a schematic diagram of type A irregular column in the embodiments of this application;
[0043] Figure 3 This is a schematic diagram of type B irregular column in the embodiments of this application;
[0044] Figure 4 A schematic diagram of a preferred embodiment of the building model switching device of this application;
[0045] Figure 5 This is a schematic diagram of a preferred embodiment of the electronic device of this application;
[0046] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0047] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application. All other embodiments obtained by those skilled in the art based on the embodiments in this application without inventive effort are within the scope of protection of this application.
[0048] It should be noted that the technical solutions of the various embodiments can be combined with each other, but only if they are based on the ability of those skilled in the art to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be considered that such combination of technical solutions does not exist and is not within the scope of protection claimed in this application.
[0049] This application provides a method for switching architectural models. (Refer to...) Figure 1 The diagram shown is a flowchart illustrating an embodiment of the building model switching method of this application. This method can be executed by an electronic device, which can be implemented in software and / or hardware. The building model switching method includes:
[0050] Step S10: Create expressions for each type of building model;
[0051] Step S20: Establish the mapping relationship between each type of building model, the parameters corresponding to each type of building model, and each of the expressions;
[0052] Step S30: Respond to the user's operation command to switch the current building model, and perform a switching operation on the current building model based on the operation command and the mapping relationship.
[0053] In this embodiment, the electronic device is equipped with design software (e.g., architectural design software). It is understood that the design software used in this application scenario can also be design software from other fields. When using the design software, the user can draw and design relevant drawings through the human-computer interaction design interface of the electronic device. Since the user may need to switch the type of building model during drawing and design—for example, switching from type A columns currently displayed to type B columns—it is necessary to ensure that the parameters and expression data types of the building model are consistent with the displayed building model. The building model can refer to the various elements constituting the building, such as buildings, beams, walls, columns, foundations, etc.
[0054] Specifically, first, expressions for each type of building model are created. Each building model has multiple different types; for example, columns of the same height may have different widths. The expressions for building models can be functions of the building model's dimensions. For example, the width-to-height ratio of a beam is generally between 1:3 and 1:2. Therefore, the expression for a certain type of beam could be H = 3W or H = 2.5W, where H represents the height and W represents the width. The expressions for each type of building model can be customized by the user according to actual design specifications and requirements. Users can pre-write the expressions for each type of building model into a data table, import the data table containing the expressions into the system, and complete the creation of the expressions for each type of building model.
[0055] Next, a mapping relationship is established between each type of building model, its corresponding parameters, and each expression. The parameters for each type of building model refer to its dimensional parameters. For example, if a building model is a beam M, its parameters include width and height, and its expression is H = 3W. Therefore, the mapping relationship is between beam M, width and height, and H = 3W. Similarly, if a building model is a beam N, its parameters include width and height, and its expression is H = 2.5W. By establishing this mapping relationship between the building model, its parameters, and its expressions, these three elements are linked and bound together. When a user switches between building models, the parameters and expressions of each building model change uniformly.
[0056] When users create drawings using design software, they can switch between architectural models, for example, changing a column of type A displayed on the current interface to a column of type B. Users can initiate a switch request by clicking the switch button on the design interface with the mouse cursor, or by using a shortcut key, such as requesting to change the parameters of the architectural model. The software responds to the user's command to switch the current architectural model, executing the switch operation according to the command and mapping relationship. Because the architectural model, its corresponding parameters, and its expressions are linked and bound, users can quickly switch between different forms of the same type of model, and clearly see the changes in parameters affecting the current architectural model.
[0057] In one embodiment, the expression for creating each type of building model includes:
[0058] Create expressions for each type of building model based on the expressions entered by the user in the human-computer interaction interface.
[0059] When creating expressions for each type of building model, users can also edit the expressions for each type of building model through the human-computer interaction interface, thereby completing the expression creation. Users can also perform editing operations such as adding, modifying, and deleting expressions through the human-computer interaction interface.
[0060] In one embodiment, the operation instruction includes a switching instruction, and the step of performing a switching operation on the current building model based on the operation instruction and the mapping relationship includes:
[0061] Obtain the target building model to be switched carried in the switching instruction, and read the target parameters corresponding to the target building model;
[0062] Based on the target parameters and the mapping relationship, the current building model is switched to the target building model for display.
[0063] For example, the current building model displayed on the interface is beam M, and the target building model to be switched to in the switching command is beam N. The target parameters corresponding to the target building model are read from the switching command. The target parameters can be the width W of beam N. Based on the target parameters and the mapping relationship, the other parameters corresponding to the target building model can be determined. Thus, the current building model is switched to the target building model for display based on the target parameters and the other parameters.
[0064] Specifically, the step of switching the current building model to the target building model for display based on the target parameters and the mapping relationship includes:
[0065] Determine the expression corresponding to the target parameter based on the mapping relationship;
[0066] The target parameters are input into an expression to obtain the remaining parameters corresponding to the target building model;
[0067] Based on the target parameters and the remaining parameters, the current building model is switched to the target building model for display.
[0068] Because the building model, its corresponding parameters, and its expression are linked and bound together, the expression corresponding to the target parameter can be determined based on this mapping relationship. For example, if the expression for beam N is H = 2.5W, inputting the target parameter into the expression H = 2.5W will yield the remaining parameters corresponding to the target building model, i.e., the height H of the target building model. Based on the target parameter (width W) and the remaining parameters (height H) of the target building model, the current building model is switched to the target building model for display.
[0069] In one embodiment, the operation instruction includes a modification instruction, and the step of performing a switching operation on the current building model based on the operation instruction and the mapping relationship includes:
[0070] Obtain the target modification parameters carried in the modification instruction;
[0071] Update the parameters of the current building model to the target modification parameters;
[0072] Switch the current building model to the building model corresponding to the target modified parameters for display.
[0073] For example, the current building model displayed in the interface is an irregularly shaped column of type A, such as... Figure 2 The diagram shows a type A irregular column in this embodiment. The width and height of the type A irregular column are 600mm and 600mm respectively. If the target modification parameter in the modification instruction indicates that the width should be modified to 300mm, then switching the current building model to the building model corresponding to the target modification parameter includes: according to the target modification parameter, switching the building model size corresponding to the parameter of the current building model to the building model size corresponding to the target parameter, that is, modifying the width of the type A irregular column from 600mm to 300mm, and switching the current building model to the building model corresponding to the target modification parameter (denoted as type B irregular column) for display. Figure 3 The diagram shown is a schematic representation of an irregularly shaped column of type B in this application. Users can clearly see how changes in parameters affect the current building model.
[0074] Reference Figure 4The diagram shown is a functional module schematic of the switching device 100 for the building model of this application.
[0075] The architectural model switching device 100 described in this application can be installed in an electronic device. Depending on the functions implemented, the architectural model switching device 100 may include a creation module 110, a setup module 120, and a switching module 130. The module described in this application can also be called a unit, which refers to a series of computer program segments that can be executed by the processor of an electronic device and can perform a fixed function, and which are stored in the memory of the electronic device.
[0076] In this embodiment, the functions of each module / unit are as follows:
[0077] Create module 110: Expressions used to create each type of building model;
[0078] Module 120: Used to establish the mapping relationship between each type of building model, the parameters corresponding to each type of building model, and each of the expressions;
[0079] Switching module 130: Used to respond to the user's operation command to switch the current building model, and to perform a switching operation on the current building model based on the operation command and the mapping relationship.
[0080] In one embodiment, the expression for creating each type of building model includes:
[0081] Create expressions for each type of building model based on the expressions entered by the user in the human-computer interaction interface.
[0082] In one embodiment, the operation instruction includes a switching instruction, and the step of performing a switching operation on the current building model based on the operation instruction and the mapping relationship includes:
[0083] Obtain the target building model to be switched carried in the switching instruction, and read the target parameters corresponding to the target building model;
[0084] Based on the target parameters and the mapping relationship, the current building model is switched to the target building model for display.
[0085] In one embodiment, switching the current building model to the target building model for display based on the target parameters and the mapping relationship includes:
[0086] Determine the expression corresponding to the target parameter based on the mapping relationship;
[0087] The target parameters are input into an expression to obtain the remaining parameters corresponding to the target building model;
[0088] Based on the target parameters and the remaining parameters, the current building model is switched to the target building model for display.
[0089] In one embodiment, the operation instruction includes a modification instruction, and the step of performing a switching operation on the current building model based on the operation instruction and the mapping relationship includes:
[0090] Obtain the target modification parameters carried in the modification instruction;
[0091] Update the parameters of the current building model to the target modification parameters;
[0092] Switch the current building model to the building model corresponding to the target modified parameters for display.
[0093] In one embodiment, switching the current building model to the building model corresponding to the target modified parameters for display includes:
[0094] Based on the target parameter modification, the building model size corresponding to the current building model parameters is switched to the building model size corresponding to the target parameters for display.
[0095] Reference Figure 5 The diagram shown is a schematic diagram of a preferred embodiment of the electronic device 1 of this application.
[0096] The electronic device 1 includes, but is not limited to, a memory 11, a processor 12, a display 13, and a communication interface 14. The electronic device 1 can connect to a network via the communication interface 14. The network can be an intranet, the Internet, a Global System for Mobile communication (GSM), a Wideband Code Division Multiple Access (WCDMA) network, a 4G network, a 5G network, Bluetooth, Wi-Fi, a voice communication network, or other wireless or wired networks.
[0097] The memory 11 includes at least one type of readable storage medium, including flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 11 may be an internal storage unit of the electronic device 1, such as the hard disk or memory of the electronic device 1. In other embodiments, the memory 11 may also be an external storage device of the electronic device 1, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc. of the electronic device 1. Of course, the memory 11 may include both internal storage units and external storage devices of the electronic device 1. In this embodiment, the memory 11 is typically used to store the operating system and various computer programs installed on the electronic device 1, such as the program code of the building model switching program 10. In addition, the memory 11 can also be used to temporarily store various types of data that have been output or will be output.
[0098] In some embodiments, processor 12 may be a central processing unit (CPU), controller, microcontroller, microprocessor, or other data processing chip. Processor 12 is typically used to control the overall operation of the electronic device 1, such as performing data interaction or communication-related control and processing. In this embodiment, processor 12 is used to run program code stored in memory 11 or process data, such as running the program code of the building model switching program 10.
[0099] The display 13 may be referred to as a display screen or display unit. In some embodiments, the display 13 may be an LED display, a liquid crystal display, a touch liquid crystal display, or an organic light-emitting diode (OLED) touch screen, etc. The display 13 is used to display information processed in the electronic device 1 and to display a visual working interface.
[0100] The communication interface 14 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface), which is typically used to establish a communication connection between the electronic device 1 and other electronic devices.
[0101] Figure 5Only the electronic device 1 with components 11-14 and the switching procedure 10 of the building model is shown. However, it should be understood that it is not required to implement all the components shown, and more or fewer components may be implemented instead.
[0102] In the above embodiments, when the processor 12 executes the building model switching program 10 stored in the memory 11, it can perform the following steps:
[0103] Create expressions for each type of building model;
[0104] Establish a mapping relationship between each type of building model, the parameters corresponding to each type of building model, and each of the aforementioned expressions;
[0105] In response to a user's instruction to switch the current building model, the system performs a switching operation on the current building model based on the instruction and the mapping relationship.
[0106] The storage device can be the memory 11 of the electronic device 1, or it can be other storage devices that are communicatively connected to the electronic device 1.
[0107] For a detailed explanation of the above steps, please refer to the above. Figure 4 Functional block diagram of embodiment 100 of the building model switching device and Figure 1 A flowchart illustrating an embodiment of a method for switching architectural models.
[0108] Furthermore, this application embodiment also proposes a computer-readable storage medium, which can be non-volatile or volatile. This computer-readable storage medium can be any one or any combination of several of the following: hard disk, multimedia card, SD card, flash memory card, SMC, read-only memory (ROM), erasable programmable read-only memory (EPROM), portable compact disc read-only memory (CD-ROM), USB memory, etc. The computer-readable storage medium includes a data storage area and a program storage area. The program storage area stores a building model switching program 10, which, when executed by a processor, performs the following operations:
[0109] Create expressions for each type of building model;
[0110] Establish a mapping relationship between each type of building model, the parameters corresponding to each type of building model, and each of the aforementioned expressions;
[0111] In response to a user's instruction to switch the current building model, the system performs a switching operation on the current building model based on the instruction and the mapping relationship.
[0112] The specific implementation of the computer-readable storage medium in this application is largely the same as the specific implementation of the above-described method for switching building models, and will not be repeated here.
[0113] It should be noted that the sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, apparatus, article, or method. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, apparatus, article, or method that includes that element.
[0114] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware simulation platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes several instructions to cause a terminal device (which may be a mobile phone, computer, electronic device, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0115] The above are merely preferred embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.
Claims
1. A switching method of a building model, characterized by, The method comprises: creating an expression of each type of building model; establishing a mapping relationship between each type of building model, a parameter corresponding to each type of building model, and each expression; in response to a user initiating an operation instruction for switching a current building model, performing a switching operation on the current building model based on the operation instruction and the mapping relationship; the operation instruction comprises a switching instruction, and the performing of the switching operation on the current building model based on the operation instruction and the mapping relationship comprises: obtaining a target building model to be switched carried in the switching instruction and reading a target parameter corresponding to the target building model; switching the current building model to the target building model for display according to the target parameter and the mapping relationship; the switching of the current building model to the target building model for display according to the target parameter and the mapping relationship comprises: determining an expression corresponding to the target parameter according to the mapping relationship; inputting the target parameter into the expression to obtain remaining parameters corresponding to the target building model; switching the current building model to the target building model for display according to the target parameter and the remaining parameters.
2. The switching method of an architectural model according to claim 1, wherein the creating of the expression of each type of building model comprises: creating the expression of each type of building model according to an expression input by a user in a human-computer interaction interface.
3. The switching method of an architectural model according to claim 1, wherein the operation instruction comprises a modification instruction, and the performing of the switching operation on the current building model based on the operation instruction and the mapping relationship comprises: obtaining a target modification parameter carried in the modification instruction; updating a parameter of the current building model to the target modification parameter; switching the current building model to a building model corresponding to the target modification parameter for display.
4. The switching method of an architectural model according to claim 3, wherein the switching of the current building model to the building model corresponding to the target modification parameter for display comprises: switching a building model size corresponding to the parameter of the current building model to a building model size corresponding to the target modification parameter for display according to the target modification parameter.
5. A switching device for architectural models, characterized in that the device comprises: a creating module configured to create an expression of each type of building model; an establishing module configured to establish a mapping relationship between each type of building model, a parameter corresponding to each type of building model, and each expression; a switching module configured to, in response to a user initiating an operation instruction for switching a current building model, perform a switching operation on the current building model based on the operation instruction and the mapping relationship; the operation instruction comprises a switching instruction, and the performing of the switching operation on the current building model based on the operation instruction and the mapping relationship comprises: obtaining a target building model to be switched carried in the switching instruction and reading a target parameter corresponding to the target building model; switching the current building model to the target building model for display according to the target parameter and the mapping relationship; the switching of the current building model to the target building model for display according to the target parameter and the mapping relationship comprises: determining an expression corresponding to the target parameter according to the mapping relationship; inputting the target parameter into the expression to obtain remaining parameters corresponding to the target building model; switching the current building model to the target building model for display according to the target parameter and the remaining parameters. inputting the target parameter into the expression to obtain the rest parameters corresponding to the target building model; switching the current building model to the target building model for display according to the target parameter and the rest parameters.
6. An electronic device, comprising: The computer device comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are in communication with each other through the communication bus; The memory is configured to store a computer program. The processor is configured to execute the program stored in the memory to implement the following steps: creating an expression of each type of building model; establishing a mapping relationship between each type of building model, parameters corresponding to each type of building model and each expression; in response to an operation instruction initiated by a user for switching the current building model, performing a switching operation on the current building model based on the operation instruction and the mapping relationship; The operation instruction comprises a switching instruction, and the switching operation on the current building model based on the operation instruction and the mapping relationship comprises: obtaining a target building model to be switched carried in the switching instruction and reading target parameters corresponding to the target building model; switching the current building model to the target building model for display according to the target parameter and the mapping relationship; The switching of the current building model to the target building model for display according to the target parameter and the mapping relationship comprises: determining an expression corresponding to the target parameter according to the mapping relationship; inputting the target parameter into the expression to obtain the rest parameters corresponding to the target building model; switching the current building model to the target building model for display according to the target parameter and the rest parameters.
7. A computer readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to implement the switching method of the building model according to any one of claims 1 to 4. The computer program is executed by the processor to implement the switching method of the building model according to any one of claims 1 to 4.
Citation Information
Patent Citations
Method and system for UPDATING A CAD MODEL, and readable media
CN104615454A
Building model generation method and device, storage medium and processor
CN112613104A