Target replacement method, device, computer equipment and storage medium

By receiving the building information model and automatically replacing the simulated components in the online model according to the target parameters, the problem of manual replacement efficiency in traditional technology is solved, efficient and accurate target replacement is achieved, and development efficiency is improved.

CN114327468BActive Publication Date: 2024-11-26BOZHOU JUJIANG INFORMATION TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011062807.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-30
Publication Date
2024-11-26
Estimated Expiration
2040-09-30

AI Technical Summary

Technical Problem

In traditional technology, developers need to manually replace simulated components in online models, which have vulnerabilities and inefficiencies, which increase working time and reduce development efficiency.

Method used

By receiving the building information model, selecting the replacement target, and determining the target to be replaced based on the first target parameters and the second target parameters, obtaining the dependency relationship, replacing the target to be replaced by the replacement target, and adding the dependency relationship to the replaced target, Implement automated replacement.

Benefits of technology

Improve efficiency, reduce the steps of manual replacement, improve the accuracy and efficiency of replacement, and reduce the working hours of developers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114327468B_ABST
    Figure CN114327468B_ABST
Patent Text Reader

Abstract

The present application relates to a target replacement method, device, computer equipment and storage medium. The method comprises: receiving a building information model, the building information model contains multiple targets to be replaced, and the targets to be replaced carry a first target parameter; selecting a replacement target and reading a second target parameter of the replacement target; determining a target to be replaced corresponding to the replacement target according to the first target parameter and the second target parameter; obtaining a dependency relationship of the determined target to be replaced; replacing the target to be replaced by the replacement target, and adding the obtained dependency relationship to the replacement target after replacement. The use of this method can improve efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a target replacement method, apparatus, computer device and storage medium. Background Art

[0002] With the development of computer technology, various online model developers have emerged who can operate in the online model to replace the simulated components in the model with factory-supplied parts.

[0003] In traditional technology, developers first obtain an online model, such as a room model, and select the simulated components that need to be replaced on the model for manual replacement. This may lead to vulnerabilities and low execution efficiency, which will increase the working time of developers and reduce development efficiency. Summary of the invention

[0004] Based on this, it is necessary to provide a target replacement method, device, computer equipment and storage medium that can improve efficiency in response to the above technical problems.

[0005] A target replacement method, the method comprising:

[0006] receiving a building information model, wherein the building information model includes a plurality of objects to be replaced, and the objects to be replaced carry a first object parameter;

[0007] Selecting a replacement target, and reading a second target parameter of the replacement target;

[0008] Determining a target to be replaced corresponding to the replacement target according to the first target parameter and the second target parameter;

[0009] Obtaining the dependency relationship of the determined target to be replaced;

[0010] The target to be replaced is replaced by the replacement target, and the acquired dependency is added to the replaced replacement target.

[0011] In one embodiment, the first target parameter and the second target parameter include codes; and determining the target to be replaced corresponding to the replacement target according to the first target parameter and the second target parameter includes:

[0012] Respectively extracting first encoding information in the first target parameter and second encoding information in the second target parameter;

[0013] Respectively read the first type in the first coding information and the second type in the second coding information;

[0014] A target to be replaced corresponding to the replacement target is determined according to the first type and the second type.

[0015] In one embodiment, after determining the target to be replaced corresponding to the replacement target according to the first type and the second type, the method further includes:

[0016] respectively extracting first size information from the first target parameter and second size information from the second target parameter;

[0017] The determined target to be replaced is screened according to the first size information and the second size information.

[0018] In one embodiment, after determining the target to be replaced corresponding to the replacement target according to the first target parameter and the second target parameter, the method further includes:

[0019] Display the determined target to be replaced;

[0020] A selection instruction for the determined target to be replaced is received, and the target to be replaced is screened according to the selection instruction.

[0021] In one embodiment, replacing the target to be replaced by the replacement target includes:

[0022] Determining the position of the target to be replaced;

[0023] The replacement target is moved to the position.

[0024] In one embodiment, after moving the replacement target to the position, the method further includes:

[0025] receiving a reset instruction for the replacement target, and acquiring a target to be replaced corresponding to the replacement target according to the reset instruction;

[0026] The replacement target is replaced by the target to be replaced to complete the reset.

[0027] A target replacement device, the device comprising:

[0028] A receiving module, configured to receive a building information model, wherein the building information model includes a plurality of objects to be replaced, and the objects to be replaced carry a first object parameter;

[0029] A selection module, used for selecting a replacement target and reading a second target parameter of the replacement target;

[0030] a determination module, configured to determine a target to be replaced corresponding to the replacement target according to the first target parameter and the second target parameter;

[0031] A dependency relationship acquisition module, used to acquire the dependency relationship of the determined target to be replaced;

[0032] The replacement module is used to replace the target to be replaced with the replacement target, and add the obtained dependency relationship to the replaced replacement target.

[0033] In one embodiment, the determining module includes:

[0034] A first extraction unit, used to extract first encoding information in the first target parameter and second encoding information in the second target parameter respectively;

[0035] a reading unit, configured to read the first type in the first coding information and the second type in the second coding information respectively;

[0036] The first determining unit is configured to determine a target to be replaced corresponding to the replacement target according to the first type and the second type.

[0037] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.

[0038] A computer-readable storage medium stores a computer program, which implements the steps of the above method when executed by a processor.

[0039] The above-mentioned target replacement method, apparatus, computer device and storage medium first obtain all the targets to be replaced, then select the replacement target, and then determine the corresponding target to be replaced according to the replacement target, so that the target to be replaced can be replaced by the replacement target, and the dependency relationship of the replaced replacement target can be updated, without the need for manual replacement one by one, thereby improving efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 A diagram of an application environment of a target replacement method in an embodiment;

[0041] Figure 2 A schematic diagram of a target replacement method in one embodiment;

[0042] Figure 3 This is a model effect diagram before replacement in an embodiment;

[0043] Figure 4 A model effect diagram after a single platform window is selected and replaced in one embodiment;

[0044] Figure 5 A model effect diagram after selecting a double-leaf casement window for replacement in one embodiment;

[0045] Figure 6 is a structural block diagram of a target replacement device in one embodiment;

[0046] Figure 7 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0047] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0048] The target replacement method provided in this application can be applied to Figure 1 In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. Specifically, the server 104 can provide a library file for the terminal 102 to download, so that the terminal 102 has the function of target replacement. In other embodiments, the library file can be directly installed in the terminal. After the library file is installed (it can be understood as being installed as the mapping software itself), the terminal 102 receives the input target to be replaced and can select the replacement target. In this way, the corresponding target to be replaced is determined according to the replacement target, so that the target to be replaced can be replaced by the replacement target, and the dependency relationship of the replacement target after replacement is updated, without the need for manual replacement one by one, thereby improving efficiency. Among them, the terminal 102 can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers and portable wearable devices, and the server 104 can be implemented with an independent server or a server cluster composed of multiple servers.

[0049] In one embodiment, Figure 2 As shown, a target replacement method is provided, which is applied to Figure 1 The terminal in is used as an example to illustrate, including the following steps:

[0050] S202: Receive a building information model, where the building information model includes multiple objects to be replaced, and the objects to be replaced carry first object parameters.

[0051] Specifically, for example, the building information model includes multiple objects to be replaced, such as simulated windows and doors; the object to be replaced may refer to an object that needs to be replaced in the building model, and for convenience, the user may select or input the building model as a method of inputting the object to be replaced. That is, the user may first select the building model that needs to be replaced.

[0052] The first target parameter refers to the dependency relationship between various targets in the building model. Generally, when drawing a building model, the components are all simulated components, with only positional relationships and dependencies on surrounding components. After drawing the project, the designer needs to replace the original simulated components, which do not contain construction information, with simulated windows with industrial end products with material information and industrial end information. If the designer replaces them manually, the designer needs to repeatedly adjust and determine the position, and errors are inevitable. In a project, there are many simulated components, and it takes a lot of time to replace them one by one. This application is to solve this problem. Through operation, the specified simulated components can be directly replaced with industrial end products with one click. The construction information specifically refers to "suppliers and specific practices and scenarios". The practices can be: the installation nodes of the door-and-window are: including window frame fixing components, window frame mortar and aluminum alloy door-and-window, and foaming agent. The scene is the surrounding wall beams, slabs and columns. The dependency relationship is the relationship between two components. For example, the window is attached to the wall, and the wall is the host of the window.

[0053] S204: Select a replacement target and read a second target parameter of the replacement target.

[0054] Specifically, the replacement target refers to an industrial end product model with information such as material, and the second target parameter may include but is not limited to the size and type of the replacement target.

[0055] Specifically, a variety of components may be provided in the software library file, and the user may retrieve a target component by inputting a keyword or a code, and then select the target component as a replacement target.

[0056] In addition, the display order of each component can be optionally set in the library file. For example, components with a later storage time will be displayed earlier to facilitate user selection.

[0057] S206: Determine a target to be replaced corresponding to the replacement target according to the first target parameter and the second target parameter.

[0058] Specifically, there are parameters of the same dimension in the first target parameter and the second target parameter, and the same dimension may include but is not limited to at least one of the following: size and encoding. In this way, the terminal can obtain the target to be replaced corresponding to the replacement target by matching the parameters of the same dimension. For example, the terminal first determines the same dimension in the first target parameter and the second target parameter, and then obtains the dimension priority of these same dimensions, and matches the parameter values ​​of the current dimension of the first target parameter and the second target parameter in sequence according to the priority. If they are the same, continue to match the parameter value of the dimension of the next priority, otherwise, output a matching result of no related target to be replaced.

[0059] Optionally, when both the replacement target and the target to be replaced include at least one target, the terminal may receive the replacement target selection instruction input first, and read the second target parameter of the replacement target, so as to match the first target parameter according to the second target parameter, thereby determining the target to be replaced corresponding to the replacement target. In addition, the terminal may also receive the target to be replaced selection instruction input first, and read the first target parameter of the target to be replaced, so as to match the second target parameter according to the first target parameter, thereby determining the replacement target corresponding to the target to be replaced.

[0060] In actual applications, after opening a building model, the terminal determines the selection range of the target to be replaced, and can also receive the user's selection instructions for the replacement target, thereby determining the selection range of the replacement target. In this way, in the subsequent replacement process, the terminal can determine based on the user's input whether the user first selects the replacement target, that is, the component, or first selects the target to be replaced, that is, the simulated component. After determining the type of user input, the parameters of the type not input are matched according to the parameters of the input type, and then the corresponding replacement target or target to be replaced is queried.

[0061] S208: Obtain the dependency relationship of the determined target to be replaced.

[0062] Specifically, a dependency relationship refers to a relationship between two components. For example, a window is attached to a wall, and the wall is the host of the window. The dependency relationship is directly stored in the property file of the target to be replaced, so the terminal can directly read the property file of the target to be replaced to obtain it. After recording the dependency relationship of the target to be replaced, the terminal deletes the target to be replaced so that the replacement target can be moved to the corresponding position of the target to be replaced later.

[0063] S210: Replace the target to be replaced with the replacement target, and add the obtained dependency relationship to the replaced replacement target.

[0064] Specifically, replacing the target to be replaced with the replacement target mainly involves moving the replacement target to the location of the target to be replaced, for example, first extracting the location information of the replacement target from the property file of the target to be replaced, and then moving the replacement target to the location corresponding to the location information, which does not require manual adjustment by the user and has high accuracy. After the terminal moves the replacement target to the location of the target to be replaced, it adds the acquired dependency relationship to the replaced replacement target, thereby retaining the original dependency relationship.

[0065] The above target replacement method first obtains all the targets to be replaced, then selects the replacement target, and then determines the corresponding target to be replaced according to the replacement target, so that the target to be replaced can be replaced by the replacement target, and the dependency relationship of the replaced replacement target is updated, without the need for manual replacement one by one, thereby improving efficiency.

[0066] In one of the embodiments, the first target parameter and the second target parameter include encoding; according to the first target parameter and the second target parameter, determining the target to be replaced corresponding to the replacement target, including: respectively extracting the first encoding information in the first target parameter and the second encoding information in the second target parameter; respectively reading the first type in the first encoding information and the second type in the second encoding information; and determining the target to be replaced corresponding to the replacement target according to the first type and the second type.

[0067] Specifically, each component in the Revit project has a unique code (UID), and the type information can be obtained based on the code. The terminal can filter and obtain component models of the same type in the project file based on the type information.

[0068] In actual applications, the terminal extracts the first coding information in the first target parameter and the second coding information in the second target parameter, respectively, and then reads the value of the first coding information, that is, the first type, and the value of the second coding information, that is, the second type. The preset bit in the coding information can represent the type, so the terminal only needs to read the preset bit in the first coding information and the second coding information, and then the terminal compares the values ​​of the preset bits in the read first coding information and the second coding information, so as to determine the target to be replaced corresponding to the replacement target, that is, first select the replaceable target to be replaced by type, so as to reduce the number of targets to be replaced.

[0069] The first target parameter and the second target parameter also include other information, such as size information, etc. (which can be understood as any information that can be associated and sufficient to perform replacement), and different types of simulation components have different sizes. Therefore, it is better to directly adapt simulation components of the same type and size according to the size information, etc.

[0070] In addition, after the terminal determines the number of targets to be replaced, it can replace the targets to be replaced in a multi-threaded manner. For example, it can obtain the hardware information of the current terminal, and then determine the number of concurrent threads that can be supported based on the hardware information. Then, the number of targets to be replaced that each thread needs to process is calculated by the ratio of the number of targets to be replaced to the number of concurrent threads supported, and then each target to be replaced is assigned to the corresponding thread for replacement operation.

[0071] In the above embodiment, the targets to be replaced are firstly filtered by type, thereby reducing the number of targets to be replaced, improving the processing efficiency, and avoiding the occurrence of replacement failure.

[0072] In one of the embodiments, after determining the target to be replaced corresponding to the replacement target according to the first type and the second type, it also includes: extracting the first size information in the first target parameter and the second size information in the second target parameter respectively; and screening the determined target to be replaced according to the first size information and the second size information.

[0073] Among them, after determining the target to be replaced by type, the terminal can further filter the target to be replaced by size information. For example, the terminal extracts the first size information in the first target parameter and the second size information in the second target parameter, and then reads the value of the first size information and the value of the second size information, so as to determine the target to be replaced corresponding to the replacement target, that is, first select the replaceable target to be replaced by type, and then filter the target to be replaced by size, so as to reduce the number of targets to be replaced.

[0074] In addition, after the terminal determines the number of targets to be replaced, it can replace the targets to be replaced in a multi-threaded manner. For example, it can obtain the hardware information of the current terminal, and then determine the number of concurrent threads that can be supported based on the hardware information. Then, the number of targets to be replaced that each thread needs to process is calculated by the ratio of the number of targets to be replaced to the number of concurrent threads supported, and then each target to be replaced is assigned to the corresponding thread for replacement operation.

[0075] In the above embodiment, the targets to be replaced are first filtered by type and then filtered by size, which reduces the number of targets to be replaced, improves processing efficiency, and avoids replacement failure.

[0076] In one of the embodiments, after determining the target to be replaced corresponding to the replacement target according to the first target parameter and the second target parameter, the method further includes: displaying the determined target to be replaced; receiving a selection instruction for the determined target to be replaced, and screening the target to be replaced according to the selection instruction.

[0077] Specifically, in this embodiment, after the targets to be replaced are determined by the terminal, the terminal can display the targets to be replaced, for example, by highlighting, and display the total number of the targets to be replaced. In addition, the terminal can also display the targets to be replaced in a list, so that the user can have a global grasp of the targets to be replaced. The terminal can receive selection instructions input by the user for the determined targets to be replaced, such as full selection or partial selection, so that the terminal can replace the selected targets to be replaced only through the selection instructions.

[0078] In actual applications, there are replacement targets, that is, industrial end products. One type of replacement target can be replaced by multiple parts of the same type. Therefore, the terminal can set the priority of the replacement target, so that a part of the targets to be replaced are first replaced by the replacement targets with high priority, and then the replacement targets with the next priority are obtained in turn to replace the remaining targets to be replaced until all the targets to be replaced are replaced.

[0079] In one embodiment, replacing the target to be replaced by the replacement target includes: determining the position of the target to be replaced; and moving the replacement target to the position.

[0080] Specifically, the location of the target to be replaced can be extracted from the property file of the target to be replaced, so that the replacement target can be directly moved there according to the location information. The current replacement strategy is to delete the original and place the new one in the same position. Then the dependency relationship must be recorded and reattached to the new one to achieve the purpose of replacement.

[0081] In one embodiment, the user first inputs the target to be replaced through the terminal, and then the terminal performs calculation to obtain the replacement target after replacement.

[0082] Specifically, first filter the replaceable types by part code. The current version only supports the replacement of parts of the same type, so the first step is to filter the replaceable types according to the component type that needs to be replaced. The currently selected method of identifying types is by part code. Figure 3 As shown, Figure 3 is a model effect diagram before replacement in an embodiment, Figure 4 This is a model effect diagram after a single platform window is replaced in one embodiment. Figure 5 This is a model effect diagram after selecting a double-leaf casement window for replacement in one embodiment.

[0083] Secondly, filter out parts of different sizes. Support replacement of parts of the same size, so after filtering out parts of the same type, filter out parts of different sizes. This allows designers to choose which part to use to replace the current part.

[0084] Third, remember the dependencies of the original parts and delete them. The original parts may depend on a wall or a component, and are generated based on other components. The current replacement strategy is to delete the original and place the new one in the same position. Then the dependencies must be recorded and reattached to the new one to achieve the purpose of replacement.

[0085] Fourth, add new parts in the position of the original parts.

[0086] Fifth, restore the dependencies of the original component to the new component, that is, directly set the host of the component to the host of the original component (through Revit API).

[0087] Finally, the original architectural design components were replaced with industrial end products, achieving the effect of architectural design and industrial interconnection.

[0088] In one embodiment, after the replacement target is moved to the position, the method further includes: receiving a reset instruction for the replacement target, and acquiring a target to be replaced corresponding to the replacement target according to the reset instruction; and replacing the replacement target with the target to be replaced to complete the reset.

[0089] Specifically, in this embodiment, after the terminal replaces the target to be replaced with the replacement target, if the replacement does not meet the requirements or it is necessary to obtain the effect of replacing it with other industrial end products, in this embodiment, a one-key reset can be performed, that is, the replacement target to be reset is selected, and then the target to be replaced corresponding to the replacement target is obtained, that is, the target to be replaced before replacement, so that the reset is completed by replacing the replacement target with the target to be replaced.

[0090] It should be understood that although Figure 2 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2 At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.

[0091] In one embodiment, Figure 6 As shown, a target replacement device is provided, comprising: a receiving module 100, a selecting module 200, a determining module 300, a dependency acquiring module 400 and a replacing module 500, wherein:

[0092] A receiving module 100 is used to receive a building information model, wherein the building information model includes a plurality of objects to be replaced, and the objects to be replaced carry a first object parameter;

[0093] A selection module 200, configured to select a replacement target and read a second target parameter of the replacement target;

[0094] A determination module 300, configured to determine a target to be replaced corresponding to the replacement target according to the first target parameter and the second target parameter;

[0095] A dependency relationship acquisition module 400 is used to acquire the dependency relationship of the determined target to be replaced;

[0096] The replacement module 500 is used to replace the target to be replaced with the replacement target, and add the obtained dependency relationship to the replaced replacement target.

[0097] In one embodiment, the determination module 300 includes:

[0098] A first extraction unit, used to extract first coding information from the first target parameter and second coding information from the second target parameter respectively;

[0099] A reading unit, used to read the first type in the first coded information and the second type in the second coded information respectively;

[0100] The first determining unit is used to determine a to-be-replaced target corresponding to the replacement target according to the first type and the second type.

[0101] In one embodiment, the determination module 300 further includes:

[0102] A second extraction unit, used to extract first size information from the first target parameter and second size information from the second target parameter respectively;

[0103] The second determining unit is used to screen the determined target to be replaced according to the first size information and the second size information.

[0104] In one embodiment, the target replacement device may further include:

[0105] A display module, used for displaying the determined target to be replaced;

[0106] The screening module is used to receive a selection instruction for the determined target to be replaced, and screen the target to be replaced according to the selection instruction.

[0107] In one embodiment, the replacement module 500 includes:

[0108] A third determining unit, used to determine the position of the target to be replaced;

[0109] A moving unit is used to move the replacement target to the location.

[0110] In one embodiment, the replacement module 500 may further include:

[0111] The reset unit is used to receive a reset instruction for the replacement target, and obtain a target to be replaced corresponding to the replacement target according to the reset instruction; and replace the replacement target with the target to be replaced to complete the reset.

[0112] For the specific definition of the target replacement device, please refer to the definition of the target replacement method above, which will not be repeated here. Each module in the above target replacement device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.

[0113] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 7 As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a target replacement method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.

[0114] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0115] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the following steps when executing the computer program: receiving a building information model, wherein the building information model includes multiple targets to be replaced, and the targets to be replaced carry a first target parameter; selecting a replacement target, and reading a second target parameter of the replacement target; determining a target to be replaced corresponding to the replacement target based on the first target parameter and the second target parameter; obtaining a dependency relationship of the determined target to be replaced; replacing the target to be replaced by the replacement target, and adding the obtained dependency relationship to the replaced replacement target.

[0116] In one embodiment, the first target parameter and the second target parameter implemented when the processor executes the computer program include encoding; according to the first target parameter and the second target parameter, determining the target to be replaced corresponding to the replacement target, including: extracting the first encoding information in the first target parameter and the second encoding information in the second target parameter respectively; reading the first type in the first encoding information and the second type in the second encoding information respectively; determining the target to be replaced corresponding to the replacement target according to the first type and the second type.

[0117] In one embodiment, after determining the target to be replaced corresponding to the replacement target according to the first type and the second type when the processor executes the computer program, the method also includes: extracting the first size information in the first target parameter and the second size information in the second target parameter respectively; and screening the determined target to be replaced according to the first size information and the second size information.

[0118] In one embodiment, after determining the target to be replaced corresponding to the replacement target based on the first target parameter and the second target parameter when the processor executes the computer program, the method further includes: displaying the determined target to be replaced; receiving a selection instruction for the determined target to be replaced, and screening the target to be replaced according to the selection instruction.

[0119] In one embodiment, the replacement of the target to be replaced by the replacement target implemented by the processor when executing the computer program includes: determining the position of the target to be replaced; and moving the replacement target to the position.

[0120] In one embodiment, after the processor executes the computer program to move the replacement target to the position, it also includes: receiving a reset instruction for the replacement target, and obtaining a target to be replaced corresponding to the replacement target according to the reset instruction; and replacing the replacement target with the target to be replaced to complete the reset.

[0121] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: receiving a building information model, the building information model including multiple targets to be replaced, the targets to be replaced carrying a first target parameter; selecting a replacement target, and reading a second target parameter of the replacement target; determining a target to be replaced corresponding to the replacement target based on the first target parameter and the second target parameter; obtaining a dependency relationship of the determined target to be replaced; replacing the target to be replaced by the replacement target, and adding the obtained dependency relationship to the replaced replacement target.

[0122] In one embodiment, the first target parameter and the second target parameter implemented when the computer program is executed by the processor include encoding; according to the first target parameter and the second target parameter, determining the target to be replaced corresponding to the replacement target, including: extracting the first encoding information in the first target parameter and the second encoding information in the second target parameter respectively; reading the first type in the first encoding information and the second type in the second encoding information respectively; determining the target to be replaced corresponding to the replacement target according to the first type and the second type.

[0123] In one embodiment, after determining the target to be replaced corresponding to the replacement target according to the first type and the second type, the computer program implemented when executed by the processor also includes: extracting the first size information in the first target parameter and the second size information in the second target parameter respectively; and screening the determined target to be replaced according to the first size information and the second size information.

[0124] In one embodiment, the computer program implemented when executed by the processor determines the target to be replaced corresponding to the replacement target based on the first target parameter and the second target parameter, and also includes: displaying the determined target to be replaced; receiving a selection instruction for the determined target to be replaced, and screening the target to be replaced according to the selection instruction.

[0125] In one embodiment, when a computer program is executed by a processor, replacing a target to be replaced by a replacement target includes: determining a position of the target to be replaced; and moving the replacement target to the position.

[0126] In one embodiment, after the computer program is executed by the processor and the replacement target is moved to the position, it also includes: receiving a reset instruction for the replacement target, and obtaining a target to be replaced corresponding to the replacement target according to the reset instruction; replacing the replacement target with the target to be replaced to complete the reset.

[0127] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0128] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0129] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A target replacement method, characterized in that: The method comprises: receiving a building information model, wherein the building information model includes a plurality of objects to be replaced, and the objects to be replaced carry a first object parameter; Selecting a replacement target, and reading a second target parameter of the replacement target; Determining a target to be replaced corresponding to the replacement target according to the first target parameter and the second target parameter; Obtaining the dependency relationship of the determined target to be replaced; Replacing the target to be replaced with the replacement target, and adding the acquired dependency to the replaced replacement target; The first target parameter and the second target parameter include codes; and determining the target to be replaced corresponding to the replacement target according to the first target parameter and the second target parameter includes: Respectively extracting first encoding information in the first target parameter and second encoding information in the second target parameter; Respectively read the first type in the first coding information and the second type in the second coding information; A target to be replaced corresponding to the replacement target is determined according to the first type and the second type.

2. The method according to claim 1, characterized in that After determining the target to be replaced corresponding to the replacement target according to the first type and the second type, the method further includes: respectively extracting first size information from the first target parameter and second size information from the second target parameter; The determined target to be replaced is screened according to the first size information and the second size information.

3. The method according to claim 1 or 2, characterized in that: After determining the target to be replaced corresponding to the replacement target according to the first target parameter and the second target parameter, the method further includes: Display the determined target to be replaced; A selection instruction for the determined target to be replaced is received, and the target to be replaced is screened according to the selection instruction.

4. The method according to claim 1 or 2, characterized in that: The replacing the target to be replaced by the replacement target includes: Determining the position of the target to be replaced; The replacement target is moved to the position.

5. The method according to claim 4, characterized in that After the replacement target is moved to the position, the method further includes: receiving a reset instruction for the replacement target, and acquiring a target to be replaced corresponding to the replacement target according to the reset instruction; The replacement target is replaced by the target to be replaced to complete the reset.

6. A target replacement device, characterized in that: The device comprises: A receiving module, configured to receive a building information model, wherein the building information model includes a plurality of objects to be replaced, and the objects to be replaced carry a first object parameter; A selection module, used for selecting a replacement target and reading a second target parameter of the replacement target; A determination module, configured to determine a target to be replaced corresponding to the replacement target according to the first target parameter and the second target parameter; A dependency relationship acquisition module, used to acquire the dependency relationship of the determined target to be replaced; A replacement module, used for replacing the target to be replaced by the replacement target, and adding the acquired dependency to the replacement target after replacement; The first target parameter and the second target parameter include codes; and the determination module includes: A first extraction unit, used to extract first encoding information in the first target parameter and second encoding information in the second target parameter respectively; a reading unit, configured to read the first type in the first coding information and the second type in the second coding information respectively; The first determining unit is configured to determine a target to be replaced corresponding to the replacement target according to the first type and the second type.

7. The device according to claim 6, characterized in that The determination module also includes: a second extraction unit, configured to extract first size information from the first target parameter and second size information from the second target parameter respectively; The second determining unit is used to screen the determined target to be replaced according to the first size information and the second size information.

8. The device according to claim 6 or 7, characterized in that The device also includes: A display module, used for displaying the determined target to be replaced; The screening module is used to receive a selection instruction for the determined target to be replaced, and screen the target to be replaced according to the selection instruction.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.