A method, device, equipment and medium for batch modification of outfitting models
By obtaining and utilizing the identity attribute information and installation information of the modified source model, the target outfit model is replaced, and the problem of low efficiency in modifying the same outfit model in the prior art is solved, batch modification is realized, and efficiency is improved.
Patent Information
- Application Number
- CN202310995975.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-08
- Publication Date
- 2025-02-07
- Estimated Expiration
- 2043-08-08
AI Technical Summary
In the prior art, the modification of the same outfit model needs to be carried out one by one, resulting in large human resources consumption and low modification efficiency.
By obtaining the identity attribute information of the modified source model, determining the target model and its installation information, and replacing the target model based on the modified source model and installation information, batch modification of the same outfit model is achieved.
It improves the modification efficiency of the outfit model, reduces the cost of human resources, and realizes batch modification of the same outfit model.
Smart Images

Figure CN117057036B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of ship design, and specifically relates to a method, device, equipment and medium for batch modification of outfitting models. Background Art
[0002] Outfitting is a type of shipbuilding process, which generally refers to the installation works at various production stages, covering equipment, piping, ventilation, electrical, iron outfitting, interior outfitting, weapons, etc. In the process of ship modeling, after the main structural construction of the hull is completed, the outfitting model needs to be constructed according to the ship design drawings.
[0003] Currently, the outfitting module of the ship modeling software AM (AVEVA Marine, a shipbuilding and offshore design system) is mainly used to model each outfitting model, and each outfitting model is independent. Therefore, when modifying the outfitting model, the ship designer needs to find the model to be modified according to the model modification range, and then modify the model to be modified one by one according to the modification requirements.
[0004] Since a large number of outfitting models need to be constructed in the three-dimensional model of a ship, and the same outfitting model may be set in different areas of the ship, and multiple identical outfitting models may be set in the same area of the ship, and each outfitting model is independent, there are problems such as high human resource consumption and low modification efficiency when modifying the same outfitting models one by one using existing related technologies. Summary of the invention
[0005] The purpose of the embodiments of the present application is to provide a method, device, equipment and medium for batch modification of outfitting models, which solves the problems of high human resource consumption and low modification efficiency in the prior art. By obtaining the identity attribute information of the modified source model to determine the target model and the installation information of the target model, and replacing the target model based on the modified source model and the installation information, the effect of batch modification of the same outfitting models can be achieved, thereby improving the modification efficiency of the outfitting models.
[0006] In a first aspect, an embodiment of the present application provides a method for batch modification of outfitting models, the method comprising:
[0007] If the source model in the pre-built outfitting model component library is modified, the identity attribute information of the modified source model is obtained;
[0008] Identify the identity attribute information of each candidate model in the outfitting model component library, and if the identity attribute information is the same as the modified source model, determine it as the target model;
[0009] Acquire installation information of the target model; wherein the installation information includes location information and / or direction information;
[0010] The target model is replaced based on the modified source model and the installation information.
[0011] Furthermore, before obtaining the identity attribute information of the modified source model, the method further includes:
[0012] Construct model association relationships of the same outfitting model under different directory trees of the outfitting model component library;
[0013] In response to the placement operation of the outfitting model, the outfitting model with the model association relationship is placed to the corresponding position.
[0014] Furthermore, the model association relationship of the same outfitting model under different directory trees of the outfitting model component library is constructed, including:
[0015] Adding identity attribute information to each source model attribute information in the outfitting model component library;
[0016] In response to the copy operation of the source model carrying the identity attribute information, the outfitting models under different directory trees of the outfitting model component library are formed;
[0017] It is identified whether the identity attribute information of the outfitting models under different directory trees of the outfitting model component library is consistent. If consistent, a model association relationship is established with the source model.
[0018] Furthermore, the process of identifying whether the source model has been modified includes:
[0019] Acquire the current parameters of the source model in the outfitting model component library; wherein the current parameters include at least one of shape parameters, material parameters and size parameters;
[0020] If a change operation of the current parameter is received, it is determined that the source model has been modified, and the source model obtained after the change operation is determined as a modified source model.
[0021] Furthermore, the source model identity attribute information is stored in the function field.
[0022] Furthermore, after obtaining the installation information of the target model, the method further includes:
[0023] The installation information of the target model is stored.
[0024] Further, replacing the target model based on the modified source model and the installation information includes:
[0025] Jump to the location of the target model according to the installation information, and delete the model entity under the target model;
[0026] Copying the modified source model to obtain a copied source model;
[0027] The installation information is assigned to the copy source model, so that the copy source model is installed at the location of the target model and adjusted to have the same direction information as that of the target model.
[0028] In a second aspect, an embodiment of the present application provides a device for batch modification of outfitting models, the device comprising:
[0029] The identity attribute information acquisition module is used to obtain the identity attribute information of the modified source model when the source model in the pre-built outfitting model component library is modified;
[0030] A target model determination module is used to identify the identity attribute information of each candidate model in the outfitting model component library, and if the identity attribute information is the same as the modified source model, it is determined as the target model;
[0031] An installation information acquisition module, used to acquire installation information of the target model; wherein the installation information includes location information and / or direction information;
[0032] A replacement module is used to replace the target model based on the modified source model and the installation information.
[0033] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the first aspect.
[0034] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0035] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.
[0036] In an embodiment of the present application, if the source model in the pre-built outfitting model component library has been modified, the identity attribute information of the modified source model is obtained; the identity attribute information of each candidate model in the outfitting model component library is identified, and if it is the same as the identity attribute information of the modified source model, it is determined to be the target model; the installation information of the target model is obtained; wherein the installation information includes position information and / or direction information; and the target model is replaced based on the modified source model and the installation information. The above-mentioned method for batch modification of outfitting models solves the problems of high human resource consumption and low modification efficiency in the prior art. By obtaining the identity attribute information of the modified source model to determine the target model and the installation information of the target model, and replacing the target model based on the modified source model and the installation information, the effect of batch modification of the same outfitting models can be achieved, thereby improving the modification efficiency of outfitting models. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 It is a flow chart of a method for batch modification of outfitting models provided in an embodiment of the present application;
[0038] Figure 2 It is a flow chart of the outfitting model placement method provided in the embodiment of the present application;
[0039] Figure 3 It is a flow chart of a method for constructing an outfitting model association relationship provided in an embodiment of the present application;
[0040] Figure 4 is a flowchart of a target model replacement method provided in an embodiment of the present application;
[0041] Figure 5 It is a structural schematic diagram of an outfitting model batch modification device provided in an embodiment of the present application;
[0042] Figure 6 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0043] In order to make the purpose, technical scheme and advantages of the present application clearer, the specific embodiments of the present application are further described in detail below in conjunction with the accompanying drawings. It is understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for the convenience of description, only the part related to the present application but not all the contents are shown in the accompanying drawings. Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow chart describes each operation (or step) as a sequential process, many of the operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of each operation can be rearranged. The process can be terminated when its operation is completed, but it can also have additional steps not included in the accompanying drawings. The process can correspond to a method, a function, a procedure, a subroutine, a subprogram, etc.
[0044] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0045] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0046] In conjunction with the accompanying drawings, the method, device, equipment and medium for batch modification of outfitting models provided in the embodiments of the present application are described in detail through specific embodiments and their application scenarios.
[0047] Figure 1 is a flow chart of a method for batch modification of outfitting models provided in an embodiment of the present application. Figure 1 As shown, the specific steps include:
[0048] S101, if the source model in the pre-built outfitting model component library has been modified, then obtaining identity attribute information of the modified source model;
[0049] Firstly, the application scenario of this solution can be a scenario of modifying a ship outfitting model, especially a scenario of batch modification of the same outfitting model.
[0050] Based on the above usage scenarios, it can be understood that the executor of this solution can be an intelligent terminal with the functions of outfitting model information reading and model replacement, and no excessive restrictions are made here.
[0051] Among them, outfitting can be the process of installing all ship equipment and ship devices in the ship except the hull and ship power plant after the main structural construction of the ship is completed, including equipment, piping, ventilation, electrical, iron outfitting, internal outfitting, weapons and other aspects. The outfitting is divided into ship internal outfitting and ship external outfitting. The ship internal outfitting mainly refers to the ship interior decoration and renovation project, which is generally referred to as ship interior decoration; the ship external outfitting mainly refers to the installation of ladders, handrails, fairleads, mooring piles, various brackets, etc. on the hull (deck, superstructure and other areas). The outfitting model can be a model with three-dimensional properties obtained by modeling the outfitting parts according to the ship design drawings using the ship modeling software AM (AVEVA Marine, shipbuilding and marine engineering design system). The shape of the outfitting model is consistent with the actual shape of the ship outfitting parts, and the outfitting model can store information such as the material, attributes and parameters of the ship outfitting parts corresponding to the model. The outfitting parts may be parts used for ship outfitting, such as parts of equipment and devices such as anchors, masts, ladders, pipelines, circuits, etc. The outfitting model component library may be a database for storing outfitting models. The outfitting models stored in the outfitting model component library may be models modeled using the outfitting module in the ship modeling software, or may be models directly copied from the outfitting models that have been modeled.
[0052] The source model may be a model obtained by modeling different outfitting parts according to the ship design drawings. The source model may be multiple, and at least one of the materials, sizes and shapes of the multiple source models is not exactly the same. Since the same outfitting model may be set in different areas of the same ship, and multiple identical outfitting models may also be set in the same area of the same ship, multiple models that are completely consistent with the source model can be obtained by directly copying the source model. The outfitting model component library can store the outfitting model in the form of a directory tree, and the source model is stored under the same directory tree, and the model copied from the source model can be stored in the corresponding directory tree according to the model location. The directory tree may be a structure containing multiple files or directories, and in this solution, it may be a structure containing multiple outfitting models or outfitting model directories. The directory may be a container that can store multiple files together, and in this solution, multiple identical or different outfitting models can be stored under the same directory. Identity attribute information may be a unique identifier for distinguishing different outfitting models, such as an identity ID, a QR code, and an identity code. The identity attribute information of different outfitting models is different, and the identity attribute information of the models copied from the source model is the same.
[0053] In one embodiment, different identity attribute information can be set for different source models during the process of constructing the attribute information of the source model, and the identity attribute information can be added to the attribute information of the corresponding source model. By copying the source model, an outfitting model that is completely consistent with the identity attribute information of the source model can be obtained; by identifying the identity attribute information, different source models can be distinguished.
[0054] In one embodiment, the modification of the source model can be identified by reading the parameter changes of the source model in the pre-built outfitting model component library, and the modification of the source model can also be determined by identifying whether a source model modification instruction or modification operation is received, which is not limited here. If the source model in the pre-built outfitting model component library is modified, the identity attribute information of the modified source model can be obtained by reading the attribute information of the modified source model.
[0055] In this embodiment, optionally, the process of identifying whether the source model has been modified includes:
[0056] Acquire the current parameters of the source model in the outfitting model component library; wherein the current parameters include at least one of shape parameters, material parameters and size parameters;
[0057] If a change operation of the current parameter is received, it is determined that the source model has been modified, and the source model obtained after the change operation is determined as a modified source model.
[0058] In one embodiment, the current parameters of the source model can be obtained by reading the configuration parameters of each source model in the outfitting model component library. The current parameters include at least one of shape parameters, material parameters, and size parameters. If an operation to change the current parameters is received, the source model that modifies the current parameters can be determined as having been modified, and the source model obtained after the change operation is performed can be determined as a modified source model.
[0059] In the embodiment of the present application, by identifying whether a change operation of the current parameter is received, the modification status of the source model and the modified source model are determined, thereby improving the reliability of identifying the modification of the source model.
[0060] In this embodiment, optionally, the source model identity attribute information is stored in the function field.
[0061] In one embodiment, the identity attribute information of the source model can be stored in the function field. The function field can be the name of the function to be created, which is used to make the function pointer point to the function with the same parameter type and the same return value type. In this solution, the function field can be used to point to the function pointer with the same identity attribute information. The identity attribute information of the source model can be read by the following code:
[0062] Do! j index! scrModel
[0063] ! Name=Function of$! scrModel[$! j]
[0064] Among them, j represents the number of source models; scrModel represents the source model; Function represents the function field; Name represents the identity attribute information of the source model stored in the function field.
[0065] In the embodiment of the present application, by storing the source model identity attribute information in the function field, the reliability of searching for models storing the same identity attribute information is improved.
[0066] S102, identifying the identity attribute information of each candidate model in the outfitting model component library, and if the identity attribute information of each candidate model is the same as the identity attribute information of the modified source model, determining it as the target model;
[0067] The candidate model may be a model copied from the source model, and the candidate model is stored in a directory tree other than the directory tree where the source model is located. The target model may be a model whose identity attribute information is completely the same as that of the modified source model.
[0068] In one embodiment, the identity attribute information corresponding to each candidate model can be obtained by reading the attribute information of each candidate model in the outfitting model component library, and it can be identified whether the identity attribute information of each candidate model is the same as the identity attribute information of the modified source model. If they are the same, the candidate model with the same identity attribute information can be determined as the target model.
[0069] In one embodiment, since the modification of the same ship outfitting model can be a model modification within the entire ship or a model modification within a specified range, the modification range of the candidate models can be determined by receiving and reading the model modification instructions, and then the identity attribute information of each candidate model within the modification range can be identified and the target model within the range can be determined.
[0070] S103, obtaining installation information of the target model; wherein the installation information includes location information and / or direction information;
[0071] The installation information of the target model may be the position information and placement information of the target model, including position information and / or direction information. The position information may be the three-dimensional coordinates of the target model. The direction information may be the deflection angle of the target model.
[0072] In one embodiment, after determining the target model, the installation information of the target model can be obtained by establishing a three-dimensional coordinate system for the entire ship; the installation information of the target model can also be obtained through coding, which is not limited here.
[0073] S104: Replace the target model based on the modified source model and the installation information.
[0074] In one embodiment, the location and placement of the target model can be determined according to the installation information of the target model. The model entity at the location of the target model is located and deleted according to the location, and the modified source model with the same identity attribute as the target model is copied to the location to replace the target model, and then the copied model at the location is placed according to the placement method. The model entity can be an outfitting model at the location of the target model.
[0075] In one embodiment, the installation information of different target models is different, so all target models within a preset modification range can be replaced based on the modified source model and the installation information through a loop program code. The loop program code can be the following code:
[0076]
[0077] Among them, do is a loop statement, which is used to read the identity attribute information of the target model within the modification range and the identity attribute information of the modified source model in sequence; objModel is the target model; scrModel is the modified source model; function is a field used to store the model identity attribute information; position is the coordinate of the target model; ori is the direction of the target model; type is the type of the target model; delete is a delete operation used to delete the model entity at the position of the target model; pos is a field for storing model coordinate information; ori is a field for storing model direction information. By assigning the coordinate information and direction information of the target model to the model copied from the modified source model, the copied model can be placed in the same position and direction as the target model.
[0078] In a feasible embodiment, optionally, after obtaining the installation information of the target model, the method further includes:
[0079] The installation information of the target model is stored.
[0080] In one embodiment, after the installation information of the target model is obtained, the installation information of the target model may be stored by encoding. The installation information may be stored in the directory where the target model is located, or may be stored in a preset installation information storage field.
[0081] In the embodiment of the present application, after the installation information of the target model is acquired, the accuracy of the target model replacement can be improved by storing the installation information of the target model, and the reliability of batch modification of the same outfitting models can be further improved.
[0082] The technical solution provided in the embodiment of the present application is as follows: if the source model in the pre-built outfitting model component library has been modified, the identity attribute information of the modified source model is obtained; the identity attribute information of each candidate model in the outfitting model component library is identified, and if it is the same as the identity attribute information of the modified source model, it is determined to be the target model; the installation information of the target model is obtained; wherein the installation information includes position information and / or direction information; and the target model is replaced based on the modified source model and the installation information. The above-mentioned method for batch modification of outfitting models solves the problems of high human resource consumption and low modification efficiency in the prior art. By obtaining the identity attribute information of the modified source model to determine the target model and the installation information of the target model, and replacing the target model based on the modified source model and the installation information, the effect of batch modification of the same outfitting models can be achieved, thereby improving the modification efficiency of outfitting models.
[0083] Figure 2Schematic diagram of the process of placing the outfitting model provided in the embodiment of the present application. Figure 2 As shown, the specific steps include:
[0084] S201, constructing model association relationships of the same outfitting model under different directory trees of the outfitting model component library;
[0085] Among them, the directory tree can be a structure containing multiple files or directories. In this solution, it can be a structure containing multiple outfitting models or outfitting model directories. The outfitting models in the same directory tree can represent the models set in the same area; the outfitting models in different directory trees can represent the outfitting models in different areas. The directory can be a container that can store multiple files together. In this solution, multiple identical or different outfitting models can be stored in the same directory. The model association relationship can be a relationship with the same identity attribute information.
[0086] In one embodiment, the same outfitting model can be a plurality of models copied from the same source model, and the parameters and attribute information of each of the same outfitting models are exactly the same. Therefore, the model association relationship with the same outfitting model under different directory trees of the outfitting model component library can be constructed according to one or more of the parameters and attribute information of the model. For example, identity attribute information is added to the attribute information of the source outfitting model to copy the same outfitting model with the same identity attribute information.
[0087] S202, in response to the placement operation of the outfitting model, the outfitting model having the model association relationship is placed at a corresponding position.
[0088] The placement operation of the outfitting model may be the placement angle or placement orientation achieved when the outfitting model is placed at a corresponding position. The placement operation of the outfitting model may be determined by the ship designer according to the ship design drawings.
[0089] In one embodiment, after constructing the model association relationship of the same outfitting model, multiple identical outfitting models may be obtained. In response to the placement operation of the outfitting model, the outfitting model with the model association relationship is copied and the obtained outfitting model is placed at the corresponding position.
[0090] The technical solution provided in the embodiment of the present application can achieve the effect of having an association relationship for the same outfitting models by constructing model association relationships for the same outfitting models under different directory trees of the outfitting model component library, and placing the outfitting models with model association relationships at corresponding positions in response to the placement operation of the outfitting models, which is conducive to batch modification of outfitting models.
[0091] Figure 3 FIG. 1 is a flow chart of a method for constructing an outfitting model association relationship provided in an embodiment of the present application. Figure 3 As shown, the specific steps include:
[0092] S301, adding identity attribute information to each source model attribute information in the outfitting model component library;
[0093] The identity attribute information may be a unique identifier for distinguishing different outfitting models, such as an identity ID, a QR code, and an identity code, etc. The identity attribute information of different outfitting models is different, and the identity attribute information of the models copied from the source model is the same.
[0094] In one embodiment, different identity attribute information may be set for each source model in the outfitting model component library, and the identity attribute information may be added to the source model attribute information by encoding.
[0095] S302, in response to the copy operation of the source model carrying the identity attribute information, forming outfitting models under different directory trees of the outfitting model component library;
[0096] In one embodiment, in response to a copy operation of a source model carrying the identity attribute information, the source model is copied to obtain multiple models that are exactly the same as the source model. The directory tree where the copied models are located can be determined according to the ship design drawings, and then the copied models are stored in the corresponding directory tree to form outfitting models under different directory trees of the outfitting model component library.
[0097] S303, identifying whether the identity attribute information of the outfitting models under different directory trees of the outfitting model component library is consistent, and if consistent, establishing a model association relationship with the source model.
[0098] In one embodiment, the identity attribute information corresponding to each outfitting model can be obtained by respectively reading the attribute information of the outfitting models under different directory trees of the outfitting model component library, and identifying whether the identity attribute information of the outfitting models is consistent. If they are consistent, it means that the outfitting model is copied from the source model. At this time, the association relationship between the outfitting model and the source model can be established.
[0099] The technical solution provided in the embodiment of the present application adds identity attribute information to the attribute information of each source model in the outfitting model component library, responds to the copy operation of the source model carrying the identity attribute information, forms outfitting models under different directory trees of the outfitting model component library, identifies whether the identity attribute information of the outfitting models under different directory trees of the outfitting model component library is consistent, and establishes a model association relationship between the outfitting model with consistent identity attribute information and the source model, thereby improving the reliability of outfitting model association relationship construction.
[0100] Figure 4is a flow chart of the target model replacement method provided in the embodiment of the present application. Figure 4 As shown, the specific steps include:
[0101] S401, jumping to the location of the target model according to the installation information, and deleting the model entity under the target model;
[0102] The model entity may be an outfitting model at the target model location.
[0103] In one embodiment, the position coordinates of the target model may be determined according to the installation information, the location of the target model may be jumped to according to the position coordinates, and the model entity under the target model may be deleted.
[0104] S402, copying the modified source model to obtain a copy source model;
[0105] In one embodiment, after deleting the model entity under the target model, the modified source model may be copied to obtain a copy source model, and the copy source model may be used to replace the model entity.
[0106] S403: assign the installation information to the copy source model, so that the copy source model is installed at the location of the target model and adjusted to have the same direction information as that of the target model.
[0107] In one embodiment, since the installation information stored in the duplicate source model obtained by copying the modified source model is the installation information of the modified source model, and the installation information of the target model is not completely the same as the installation information of the modified source model, the installation information of the target model can be assigned to the duplicate source model by deleting the installation information of the duplicate source model and storing the installation information of the target model in the duplicate source model. According to the installation information of the target model, the duplicate source model can be installed to the location of the target model and adjusted to the same direction as the target model.
[0108] The technical solution provided in the embodiment of the present application jumps to the position of the target model according to the installation information, deletes the model entity under the target model, copies the modified source model to obtain a copied source model, and assigns the installation information to the copied source model so that the copied source model is installed to the position of the target model and adjusted to the same direction information as the target model, so as to achieve the effect that the position and direction of the replaced model are completely consistent with the target model, thereby improving the accuracy of the target model replacement and further improving the reliability of batch modification of the same outfitting models.
[0109] Figure 5 Schematic diagram of the structure of the equipment model batch modification device provided in the embodiment of the present application. Figure 5 As shown, specifically including the following:
[0110] The identity attribute information acquisition module 501 is used to acquire the identity attribute information of the modified source model when the source model in the pre-built outfitting model component library is modified;
[0111] The target model determination module 502 is used to identify the identity attribute information of each candidate model in the outfitting model component library, and if the identity attribute information is the same as the modified source model, it is determined as the target model;
[0112] An installation information acquisition module 503 is used to acquire installation information of the target model; wherein the installation information includes location information and / or direction information;
[0113] The replacement module 504 is configured to replace the target model based on the modified source model and the installation information.
[0114] Furthermore, the device further comprises an association relationship building module; the association relationship building module is used to:
[0115] Construct model association relationships of the same outfitting model under different directory trees of the outfitting model component library;
[0116] In response to the placement operation of the outfitting model, the outfitting model with the model association relationship is placed to the corresponding position.
[0117] Furthermore, the association relationship building module is specifically used to:
[0118] Adding identity attribute information to each source model attribute information in the outfitting model component library;
[0119] In response to the copy operation of the source model carrying the identity attribute information, the outfitting models under different directory trees of the outfitting model component library are formed;
[0120] It is identified whether the identity attribute information of the outfitting models under different directory trees of the outfitting model component library is consistent. If consistent, a model association relationship is established with the source model.
[0121] Furthermore, the identity attribute information acquisition module 501 is specifically used to:
[0122] Acquire the current parameters of the source model in the outfitting model component library; wherein the current parameters include at least one of shape parameters, material parameters and size parameters;
[0123] If a change operation of the current parameter is received, it is determined that the source model has been modified, and the source model obtained after the change operation is determined as a modified source model.
[0124] Furthermore, the source model identity attribute information is stored in the function field.
[0125] Furthermore, the installation information acquisition module 503 is also used for:
[0126] The installation information of the target model is stored.
[0127] Furthermore, the replacement module 504 is specifically used for:
[0128] Jump to the location of the target model according to the installation information, and delete the model entity under the target model;
[0129] Copying the modified source model to obtain a copied source model;
[0130] The installation information is assigned to the copy source model, so that the copy source model is installed at the location of the target model and adjusted to have the same direction information as that of the target model.
[0131] The technical solution provided by the embodiment of the present application includes an identity attribute information acquisition module, which is used to obtain the identity attribute information of the modified source model when the source model in the pre-built outfitting model component library is modified; a target model determination module, which is used to identify the identity attribute information of each candidate model in the outfitting model component library, and if it is the same as the identity attribute information of the modified source model, it is determined as the target model; an installation information acquisition module, which is used to obtain the installation information of the target model; wherein the installation information includes location information and / or direction information; a replacement module, which is used to replace the target model based on the modified source model and the installation information. The above-mentioned outfitting model batch modification device solves the problems of high human resource consumption and low modification efficiency in the prior art. By obtaining the identity attribute information of the modified source model to determine the target model and the installation information of the target model, and replacing the target model based on the modified source model and the installation information, the effect of batch modification of the same outfitting model can be achieved, thereby improving the modification efficiency of the outfitting model.
[0132] The outfitting model batch modification device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0133] The outfitting model batch modification device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0134] The equipment model batch modification device provided in the embodiment of the present application can realize each process realized by the above-mentioned method embodiments. To avoid repetition, it will not be described again here.
[0135] like Figure 6 As shown, an embodiment of the present application also provides an electronic device 600, including a processor 601, a memory 602, and a program or instruction stored in the memory 602 and executable on the processor 601. When the program or instruction is executed by the processor 601, each process of the above-mentioned outfitting model batch modification device embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0136] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0137] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned outfitting model batch modification device embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0138] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0139] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned outfitting model batch modification device embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0140] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0141] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0142] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0143] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
[0144] The above are only preferred embodiments of the present application and the technical principles used. The present application is not limited to the specific embodiments described herein, and various obvious changes, readjustments and substitutions that can be made by those skilled in the art will not deviate from the scope of protection of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the claims.
Claims
1. A method for batch modification of outfitting models, applied to an intelligent terminal with outfitting model information reading and model replacement functions, characterized in that: The method comprises: If the source model in the pre-built outfitting model component library is modified, a model association relationship with the same outfitting model under different directory trees of the outfitting model component library is constructed, which includes: adding identity attribute information to the attribute information of each source model in the outfitting model component library; forming outfitting models under different directory trees of the outfitting model component library in response to a copy operation of the source model carrying the identity attribute information; identifying whether the identity attribute information of the outfitting models under different directory trees of the outfitting model component library is consistent, and if consistent, constructing a model association relationship with the source model; obtaining the identity attribute information of the modified source model; Identify the identity attribute information of each candidate model in the outfitting model component library, and if the identity attribute information is the same as the modified source model, determine it as the target model, and the candidate model is copied from the source model; Acquire installation information of the target model; wherein the installation information includes location information and / or direction information; The target model is replaced based on the modified source model and the installation information, including: jumping to the location of the target model according to the installation information, and deleting the model entity under the target model, copying the modified source model to obtain a copy source model, assigning the installation information to the copy source model, so that the copy source model is installed to the location of the target model and adjusted to the same direction information as the target model.
2. The method for batch modification of outfitting models according to claim 1, characterized in that: Before obtaining the identity attribute information of the modified source model, the method further includes: In response to the placement operation of the outfitting model, the outfitting model with the model association relationship is placed to the corresponding position.
3. The method for batch modification of outfitting models according to claim 1, characterized in that: The process of identifying modifications to the source model includes: Acquire the current parameters of the source model in the outfitting model component library; wherein the current parameters include at least one of shape parameters, material parameters and size parameters; If a change operation of the current parameter is received, it is determined that the source model has been modified, and the source model obtained after the change operation is determined as a modified source model.
4. The method for batch modification of outfitting models according to claim 1, characterized in that: The source model identity attribute information is stored in the function field.
5. The method for batch modification of outfitting models according to claim 1, characterized in that: After obtaining the installation information of the target model, the method further includes: The installation information of the target model is stored.
6. A device for batch modification of outfitting models, configured on an intelligent terminal with outfitting model information reading and model replacement functions, characterized in that: The device comprises: The identity attribute information acquisition module is used to construct a model association relationship with the same outfitting model under different directory trees of the outfitting model component library when there is a modification to the source model in the pre-constructed outfitting model component library, which includes: adding identity attribute information to the attribute information of each source model in the outfitting model component library; forming outfitting models under different directory trees of the outfitting model component library in response to the copy operation of the source model carrying the identity attribute information; identifying whether the identity attribute information of the outfitting models under different directory trees of the outfitting model component library is consistent, and if consistent, constructing a model association relationship with the source model; and obtaining the identity attribute information of the modified source model; A target model determination module is used to identify the identity attribute information of each candidate model in the outfitting model component library, and if the identity attribute information is the same as the modified source model, it is determined as the target model, and the candidate model is copied from the source model; An installation information acquisition module, used to acquire installation information of the target model; wherein the installation information includes location information and / or direction information; A replacement module is used to replace the target model based on the modified source model and the installation information, which includes: jumping to the location of the target model according to the installation information, and deleting the model entity under the target model, copying the modified source model to obtain a copied source model, assigning the installation information to the copied source model, so that the copied source model is installed to the location of the target model and adjusted to the same direction information as the target model.
7. An electronic device, characterized in that: The method comprises a processor, a memory and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method for batch modification of outfitting models as described in any one of claims 1 to 5.
8. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the method for batch modification of outfitting models as described in any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Regional design structure tree generation method and system
CN114329932A