Ship model establishment method and device, electronic equipment and readable storage medium
By acquiring and modifying the sub-model attributes and names of ship models in Intergraph Smart3D software, and using preset names for unified modification, the problems of difficult sub-model searching and tedious editing are solved, thus improving modeling and data processing efficiency.
Patent Information
- Application Number
- CN202311406771.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-26
- Publication Date
- 2026-08-25
- Estimated Expiration
- 2043-10-26
AI Technical Summary
In Intergraph Smart3D software, finding sub-models of ship models is difficult, editing is cumbersome, and synchronization efficiency is low, resulting in low efficiency in modeling and data processing.
By acquiring multiple sub-models, modifying their attributes and names according to their type information, uniformly modifying them using preset names, and combining them in Intergraph Smart3D software to generate a ship model.
It enables rapid modification and updating of sub-model attributes and names of ship models, improving modeling and data processing efficiency, and solving the problems of difficult sub-model searching and tedious editing.
Smart Images

Figure CN117235898B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of software development technology, and in particular to a method for creating a ship model, a device for creating a ship model, an electronic device, and a readable storage medium. Background Technology
[0002] Currently, shipbuilding is a complex system engineering project. Outfitting design involves high technical content, a large workload, and a high volume of data. At present, ship outfitting production design employs comprehensive design based on various design inputs and process requirements. In the S3D environment, this includes lofting various professional models, coordinating and balancing, and outputting model-based drawings. Model attribute sets and data flows play a crucial role in the design process. Intergraph Smart3D software is widely used in the power and chemical industries, but its application in the shipbuilding industry is limited. Therefore, ship models can be built using Intergraph Smart3D software. Summary of the Invention
[0003] In view of this, the present invention provides a method for creating a ship model, a device for creating a ship model, an electronic device, and a readable storage medium.
[0004] Specifically, the present invention is achieved through the following technical solution:
[0005] According to a first aspect of the present invention, a method for establishing a ship model is provided, comprising: acquiring a plurality of first sub-models. The first sub-models are sub-models of the ship model; determining the first type information to which each first sub-model belongs; modifying the attribute information of the corresponding first sub-model according to the first type information to which each first sub-model belongs, thereby obtaining a plurality of second sub-models; modifying the name of the corresponding second sub-model according to each of a plurality of preset names, thereby obtaining a plurality of third sub-models; and combining the plurality of third sub-models to generate a ship model.
[0006] The ship model creation method provided by this invention is mainly used for constructing ship models in IntergraphSmart3D software. Multiple first sub-models for building the ship model are obtained; these first sub-models are models included in the software. Based on the selected first sub-models, the first type information to which each first sub-model belongs is determined. The first type information can be, for example, Equipment Furnishing (in-cabin living facilities). Using the first type information to which each first sub-model belongs, the attribute information under each first sub-model is obtained. Then, the attribute information under the first sub-model corresponding to the first type information is modified, thereby obtaining multiple second sub-models. By using the first type information to which the first sub-model belongs to convert the first sub-model into a second sub-model, the effect of quickly modifying or updating the attributes of sub-models in the ship model is achieved. Furthermore, multiple preset names are pre-set according to the requirements of construction stage, type, etc. Then, the names of the corresponding second sub-models are modified according to each of the multiple preset names to obtain multiple third sub-models. By using preset names to replace the original names in the sub-models, it is easier to find the sub-models and to combine multiple third sub-models to obtain the ship model. This achieves the technical effect of building ship models in Intergraph Smart3D software. At the same time, by uniformly modifying the attributes and names of multiple sub-models used to build the ship model, the problems of difficult sub-model finding, cumbersome editing, and low synchronization efficiency during the ship model building process are solved, thus improving the efficiency of modeling and data processing.
[0007] In some embodiments, the step of modifying the attribute information of the corresponding first sub-model according to the first type information to which each first sub-model belongs to obtain multiple second sub-models includes: determining multiple key attribute sets of the first type according to the first type information; determining the attribute information of the corresponding first sub-model according to the multiple key attribute sets; and modifying the attribute information of the multiple first sub-models to obtain multiple second sub-models.
[0008] In this embodiment, the step of modifying the attribute information of the first sub-model includes: since the first type of information represents the position of the first sub-model in the ship model, there are multiple key attribute sets under the first type of information. These key attribute sets represent all the attribute information of the current first sub-model, including attribute names and attribute values. The attribute names can be the name of the first sub-model, its Chinese name, its weight, or the cabin it is located in. The current attribute information of the corresponding first sub-model is then determined from these multiple key attribute sets, and modified to obtain the second sub-model. By obtaining multiple key attribute sets, the attribute information of the current first sub-model can be viewed intuitively, and its attributes can be directly modified, thus enabling rapid modification of commonly used attributes of the first sub-model.
[0009] In some embodiments, the step of determining the attribute information of the corresponding first sub-model based on multiple key attribute sets includes: determining the second type information to which each first sub-model belongs based on each first sub-model; determining the key attribute set corresponding to the second type in multiple key attribute sets based on the second type information, wherein the key attribute set corresponding to the second type is the attribute information of the corresponding first sub-model.
[0010] In this embodiment, the first sub-model can belong to both the first type of information and the second type of information. The second type of information represents the role of the first sub-model in the ship model. In other words, the first type of information and the second type of information have an intersection relationship. That is, the multiple key attribute sets obtained through the first type of information are also the key attribute sets of multiple second type of information. Therefore, by using the second type of information to which each first sub-model belongs, the key attribute set corresponding to the second type of information to which each first sub-model belongs can be determined from the multiple key attribute sets under the first type of information to which each first sub-model belongs. The data information in this key attribute set is the attribute information of the first sub-model. Thus, the key attribute set, i.e., the attribute information of the first sub-model, can be directly modified, thereby achieving rapid modification of the attributes of first sub-models belonging to the same first type of information and the same second type of information.
[0011] In some embodiments, the step of modifying the attribute information of the corresponding first sub-model according to the first type information to which each first sub-model belongs to obtain multiple second sub-models includes: determining the second type information to which each first sub-model belongs according to each first sub-model; dividing the multiple first sub-models into multiple first sub-model sets according to the first type information and the second type information; outputting the association attributes of the multiple first sub-models in each first sub-model set to a preset table to modify the multiple association attributes in the preset table; and inputting the multiple modified association attributes into the corresponding first sub-models to obtain multiple second sub-models.
[0012] In this embodiment, the step of modifying the attribute information of the corresponding first sub-model according to the first type information to which each first sub-model belongs to obtain multiple second sub-models can also be as follows: First, determine the second type information to which each first sub-model belongs; then, divide the multiple first sub-models into multiple first sub-model sets according to the first type information and the second type information. That is, by selecting the first type information and the second type information, multiple first sub-models with the same first type information and the same second type information are grouped into a first sub-model set. Then, the associated attributes of the multiple first sub-models in each first sub-model set are output to a preset table. The required data, i.e., the attributes of the first sub-models, can then be changed in the preset table. After closing the preset table, the modified associated attributes are input into the corresponding first sub-models to obtain multiple second sub-models. Alternatively, by dividing multiple first sub-models according to the same first type information and second type information to obtain multiple first sub-model sets, and then outputting the associated attributes of the first sub-model sets to an Excel spreadsheet, the required data can then be changed in the Excel spreadsheet. After closing the Excel spreadsheet, the modified attributes are written back to the corresponding first sub-models, thereby achieving batch updates of multiple first sub-models.
[0013] In some embodiments, the attribute information includes one or more combinations of the following: the type of outfitting components of the first sub-model, the Chinese description of the first sub-model, the unit weight of the first sub-model, and the compartments of the first sub-model.
[0014] In this embodiment, the attribute information in the first sub-model may include: the type of outfitting components of the first sub-model, the Chinese description of the first sub-model, the compartments of the first sub-model, etc.
[0015] In some embodiments, the second type of information includes one or more combinations of interior, engine equipment, engine base, electrical, and external outfitting.
[0016] In this embodiment, the second type of information refers to the equipment that the first sub-model plays a role in the ship cabin model, which may include: interior, engine equipment, engine base, electrical, and external outfitting, etc.
[0017] In some embodiments, the step of modifying the name of a corresponding second sub-model according to each of a plurality of preset names to obtain a plurality of third sub-models includes: generating a set of second sub-models according to the plurality of second sub-models; outputting the names of the plurality of second sub-models in the set of second sub-models to a preset table, so as to modify the name of the corresponding second sub-model in the preset table according to each of the plurality of preset names; and inputting the names of the plurality of modified second sub-models into each corresponding second sub-model to obtain a plurality of third sub-models.
[0018] In this embodiment, the step of modifying the name of the second sub-model includes: collecting multiple second sub-models, wherein the first type information and the second type information of the multiple second sub-models can be different, thus obtaining a set of second sub-models; outputting the names of the multiple second sub-models in the set to a preset table; then modifying the names of the corresponding second sub-models in the preset table according to preset names, wherein the preset names are named according to requirements such as construction stage and type, thus completing the modification of the names of the second sub-models; and then re-entering the modified names of the second sub-models into the corresponding second sub-models, thereby obtaining multiple third sub-models. By outputting the names of multiple second sub-models to an Excel file, entering the required new names in the Excel file, and then closing the Excel file to write the modified names back to the corresponding second sub-models, the technical effect of batch modifying sub-model names through Excel is achieved, thereby facilitating user search and improving modeling efficiency.
[0019] According to a second aspect of the present invention, a device for creating a ship model is provided. The device includes: an acquisition module for acquiring a plurality of first sub-models, wherein the first sub-models are sub-models of a ship model; a determination module for determining first type information to which each first sub-model belongs; an attribute modification module for modifying the attribute information of the corresponding first sub-model according to the first type information to which each first sub-model belongs, thereby obtaining a plurality of second sub-models; a name modification module for modifying the name of the corresponding second sub-model according to each of a plurality of preset names, thereby obtaining a plurality of third sub-models; and a combination module for combining the plurality of third sub-models to generate a ship model.
[0020] The ship model creation apparatus provided by this invention mainly includes: an acquisition module, a determination module, an attribute modification module, a name modification module, and a combination module. The acquisition module acquires multiple first sub-models for creating the ship model. These first sub-models are models built into the software. The determination module determines the first type information of each selected first sub-model, which can be, for example, Equipment Furnishing (in-cabin living facilities). The attribute modification module uses the first type information of each first sub-model to obtain the attribute information of each first sub-model, and then modifies the attribute information of the first sub-model corresponding to the first type information, thereby obtaining multiple second sub-models. By using the first type information of the first sub-model to convert the first sub-model into a second sub-model, the effect of quickly modifying or updating the attributes of the sub-models in the ship model is achieved. Furthermore, multiple preset names are pre-set according to the requirements of construction stage, type, etc. Then, the name modification module modifies the name of the corresponding second sub-model according to each of the multiple preset names to obtain multiple third sub-models. By using preset names to replace the original names in the sub-models, it is easier to find the sub-models and facilitates the combination module to combine multiple third sub-models to obtain the ship model. This achieves the technical effect of building ship models in IntergraphSmart3D software. At the same time, by uniformly modifying the attributes and names of multiple sub-models used to build the ship model, the problems of difficult sub-model searching, cumbersome editing, and low synchronization efficiency during the ship model building process are solved, thus improving the efficiency of modeling and data processing.
[0021] According to a third aspect of the present invention, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the steps of the method for building a ship model in the first aspect or any possible implementation thereof.
[0022] According to a fourth aspect of the present invention, a readable storage medium is provided having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the method for establishing a ship model in the first aspect or any possible implementation thereof.
[0023] The technical solution provided by this invention brings at least the following beneficial effects:
[0024] This invention provides a multi-dimensional method for creating outfitting models based on Smart3D. By modifying the attributes and names of sub-models, the model dataset can be efficiently extracted and visualized, greatly improving data flow and execution efficiency. This enhances design quality and efficiency, significantly saves design time, and better ensures the accuracy of design data. Attached Figure Description
[0025] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0026] To more clearly illustrate the technical solutions in the embodiments of the present invention or related technologies, the drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, those skilled in the art can obtain other drawings based on these drawings without creative effort.
[0027] Figure 1 One of the flowcharts illustrating the method for establishing a ship model provided in an embodiment of the present invention;
[0028] Figure 2 The second schematic flowchart of the method for establishing a ship model provided in the embodiments of the present invention;
[0029] Figure 3 The third schematic flowchart of the method for establishing a ship model provided in the embodiments of the present invention;
[0030] Figure 4 The fourth flowchart illustrating the method for establishing a ship model provided in this embodiment of the invention;
[0031] Figure 5 This is one of the schematic diagrams illustrating the modification of the attributes of the first sub-model according to an embodiment of the present invention;
[0032] Figure 6 Fifth schematic flowchart of the method for establishing a ship model provided in the embodiments of the present invention;
[0033] Figure 7 A schematic flowchart of the method for establishing a ship model provided in an embodiment of the present invention (number six);
[0034] Figure 8 This is a second schematic diagram illustrating the modification of the attributes of the first sub-model according to an embodiment of the present invention.
[0035] Figure 9 The seventh flowchart illustrating the method for establishing a ship model provided in this embodiment of the invention;
[0036] Figure 10This is the eighth flowchart illustrating the method for establishing a ship model provided in this embodiment of the invention.
[0037] Figure 11 A schematic diagram of a ship model provided in an embodiment of the present invention;
[0038] Figure 12 This is the third schematic diagram illustrating the modification of the attributes of the first sub-model according to an embodiment of the present invention;
[0039] Figure 13 A schematic block diagram of a device for creating a ship model provided in an embodiment of the present invention. Detailed Implementation
[0040] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0041] Figure 1 This is one of the flowcharts illustrating a method for creating a ship model according to an embodiment of the present invention. The method may include the following steps:
[0042] S102: Obtain multiple first sub-models, where the first sub-model is a sub-model of the ship model;
[0043] S104: Determine the first type of information for each first sub-model;
[0044] S106: Modify the attribute information of the corresponding first sub-model according to the first type information of each first sub-model to obtain multiple second sub-models;
[0045] S108: Modify the name of the corresponding second sub-model according to each of the multiple preset names to obtain multiple third sub-models;
[0046] S110: Combine multiple third sub-models to generate a ship model.
[0047] The ship model creation method provided by this invention is mainly used for constructing ship models in IntergraphSmart3D software. Multiple first sub-models for building the ship model are obtained; these first sub-models are models included in the software. Based on the selected first sub-models, the first type information to which each first sub-model belongs is determined. The first type information can be, for example, EquipmentFurnishing. Using the first type information to which each first sub-model belongs, the attribute information under each first sub-model is obtained. Then, the attribute information under the first sub-model corresponding to the first type information is modified, thereby obtaining multiple second sub-models. By using the first type information to which the first sub-model belongs to convert the first sub-model into a second sub-model, the effect of quickly modifying or updating the attributes of sub-models in the ship model is achieved. Furthermore, multiple preset names are pre-set according to the requirements of construction stage, type, etc. Then, the names of the corresponding second sub-models are modified according to each of the multiple preset names to obtain multiple third sub-models. By using preset names to replace the original names in the sub-models, it is easier to find the sub-models and to combine multiple third sub-models to obtain the ship model. This achieves the technical effect of building ship models in IntergraphSmart3D software. At the same time, by uniformly modifying the attributes and names of multiple sub-models used to build the ship model, the problems of difficult sub-model finding, cumbersome editing, and low synchronization efficiency during the ship model building process are solved, thus improving the efficiency of modeling and data processing.
[0048] Figure 2 The second flowchart illustrates the method for establishing a ship model according to an embodiment of the present invention; wherein the step of modifying the attribute information of the corresponding first sub-model according to the first type information to which each first sub-model belongs to obtain multiple second sub-models includes:
[0049] S202: Determine multiple key attribute sets of the first type based on the first type of information;
[0050] S204: Determine the attribute information of the corresponding first sub-model based on multiple key attribute sets;
[0051] S206: Modify the attribute information of multiple first sub-models to obtain multiple second sub-models.
[0052] In this embodiment, the step of modifying the attribute information of the first sub-model includes: since the first type of information represents the position of the first sub-model in the ship model, there are multiple key attribute sets under the first type of information. These key attribute sets represent all the attribute information of the current first sub-model, including attribute names and attribute values. The attribute names can be the name of the first sub-model, its Chinese name, its weight, or the cabin it is located in. The current attribute information of the corresponding first sub-model is then determined from these multiple key attribute sets, and modified to obtain the second sub-model. By obtaining multiple key attribute sets, the attribute information of the current first sub-model can be viewed intuitively, and its attributes can be directly modified, thus enabling rapid modification of commonly used attributes of the first sub-model.
[0053] Figure 3 The third flowchart illustrates the method for establishing a ship model according to an embodiment of the present invention; wherein the step of determining the attribute information of the corresponding first sub-model based on multiple key attribute sets includes:
[0054] S302: Determine the second type of information to which each first sub-model belongs based on each first sub-model;
[0055] S304: Based on the second type of information, determine the key attribute set corresponding to the second type from multiple key attribute sets, wherein the key attribute set corresponding to the second type is the attribute information of the corresponding first sub-model.
[0056] In this embodiment, the first sub-model can belong to both the first type of information and the second type of information. The second type of information represents the role of the first sub-model in the ship model. In other words, the first type of information and the second type of information have an intersection relationship. That is, the multiple key attribute sets obtained through the first type of information are also the key attribute sets of multiple second type of information. Therefore, by using the second type of information to which each first sub-model belongs, the key attribute set corresponding to the second type of information to which each first sub-model belongs can be determined from the multiple key attribute sets under the first type of information to which each first sub-model belongs. The data information in this key attribute set is the attribute information of the first sub-model. Thus, the key attribute set, i.e., the attribute information of the first sub-model, can be directly modified, thereby achieving rapid modification of the attributes of first sub-models belonging to the same first type of information and the same second type of information.
[0057] For example, Figure 4 The fourth flowchart illustrates the method for establishing a ship model according to an embodiment of the present invention, wherein the method includes:
[0058] S402: Select one or more objects of the same type;
[0059] S404: Automatically determine the object type;
[0060] S406: Output displays the key attribute sets of each professional model under the current object;
[0061] S408: Switch the display of a single major attribute set;
[0062] S410: Single object property editing or batch reuse.
[0063] In this embodiment, firstly, select one or more first sub-models (objects) of the same type to be modified. When assigning values to content with different attributes, do not select too many objects, otherwise the data will be too large to display and difficult to find. If only a single piece of data is reused synchronously, the number of objects is not limited. Then, automatically determine the object's type (first type information), and output the key attribute sets of various specialties (second type information) under that object. Next, determine the specialties (second type information) of the first sub-model, and identify the key attribute set corresponding to the object's second type information from the key attribute sets of various specialties. This corresponding key attribute set is the current attribute information of the first sub-model. Then, edit or batch reuse the current attribute information of the first sub-model, i.e., the corresponding key attribute set, thereby completing the rapid modification of commonly used attributes of the first sub-model. Figure 5 As shown, the first type of information is Equipment Furnishing, and the second type of information can be interior furnishings, engine room equipment, engine pier, electrical systems, or exterior outfitting. Attributes that need to be modified include Chinese name, weight, compartment, and outfitting component code. When quickly modifying commonly used attributes of the first sub-model, the key attributes of the selected object are displayed in a dialog box. Editing the corresponding values or reusing values in the dialog box completes the quick modification of the first sub-model's attributes.
[0064] Figure 6 The fifth flowchart illustrating the method for establishing a ship model according to an embodiment of the present invention further includes the step of modifying the attribute information of the corresponding first sub-model according to the first type information to which each first sub-model belongs, to obtain multiple second sub-models:
[0065] S602: Determine the second type of information to which each first sub-model belongs based on each first sub-model;
[0066] S604: Divide multiple first sub-models into multiple first sub-model sets based on first type information and second type information;
[0067] S606: Output the associated attributes of multiple first sub-models in each first sub-model set to a preset table, so that multiple associated attributes can be modified in the preset table;
[0068] S608: Input multiple modified association attributes into the corresponding first sub-model to obtain multiple second sub-models.
[0069] In this embodiment, the step of modifying the attribute information of the corresponding first sub-model according to the first type information to which each first sub-model belongs to obtain multiple second sub-models can also be as follows: First, determine the second type information to which each first sub-model belongs; then, divide the multiple first sub-models into multiple first sub-model sets according to the first type information and the second type information. That is, by selecting the first type information and the second type information, multiple first sub-models with the same first type information and the same second type information are grouped into a first sub-model set. Then, the associated attributes of the multiple first sub-models in each first sub-model set are output to a preset table. The required data, i.e., the attributes of the first sub-models, can then be changed in the preset table. After closing the preset table, the modified associated attributes are input into the corresponding first sub-models to obtain multiple second sub-models. Alternatively, by dividing multiple first sub-models according to the same first type information and second type information to obtain multiple first sub-model sets, and then outputting the associated attributes of the first sub-model sets to an Excel spreadsheet, the required data can then be changed in the Excel spreadsheet. After closing the Excel spreadsheet, the modified attributes are written back to the corresponding first sub-models, thereby achieving batch updates of multiple first sub-models.
[0070] Furthermore, the attribute information includes: the types of outfitting components of the first sub-model, the Chinese description of the first sub-model, the unit weight of the first sub-model, and one or more combinations of the compartments of the first sub-model.
[0071] In this embodiment, the attribute information in the first sub-model may include: the type of outfitting components of the first sub-model, the Chinese description of the first sub-model, the compartments of the first sub-model, etc.
[0072] Furthermore, the second type of information includes one or more combinations of interior, engine equipment, engine base, electrical, and external outfitting.
[0073] In this embodiment, the second type of information refers to the equipment that the first sub-model plays a role in the ship cabin model, which may include: interior, engine equipment, engine base, electrical, and external outfitting, etc.
[0074] For example, Figure 7 A flowchart illustrating the method for establishing a ship model provided in this embodiment of the invention is shown in Figure 6; wherein the method includes:
[0075] S702: Select one or more objects of the same type;
[0076] S704: Manually define major and type;
[0077] S706: Output an Excel table containing key attribute sets of data;
[0078] S708: Edit the corresponding information in Excel;
[0079] S710: Change the attribute and return to the model.
[0080] In this embodiment, the same type of model to be modified is selected, and then as follows: Figure 8 As shown, select the profession and model type. The profession can be electrical and the type can be Equipment. Then output the associated data to Excel, as shown in Table 1. Change the requirement data in Excel and close Excel to write the modified attributes back to the model.
[0081] Table 1
[0082]
[0083] Figure 9 The seventh flowchart illustrating the method for establishing a ship model provided in this embodiment of the invention includes the step of modifying the name of the corresponding second sub-model according to each of a plurality of preset names to obtain a plurality of third sub-models, comprising:
[0084] S902: Generate a set of second sub-models based on multiple second sub-models;
[0085] S904: Output the names of multiple second sub-models in the second sub-model set to a preset table, so that the name of the corresponding second sub-model can be modified in the preset table according to each preset name among multiple preset names;
[0086] S906: Input the names of multiple modified second sub-models into each corresponding second sub-model to obtain multiple third sub-models.
[0087] In this embodiment, the step of modifying the name of the second sub-model includes: collecting multiple second sub-models, wherein the first type information and the second type information of the multiple second sub-models can be different, thus obtaining a set of second sub-models; outputting the names of the multiple second sub-models in the set to a preset table; then modifying the names of the corresponding second sub-models in the preset table according to preset names, wherein the preset names are named according to requirements such as construction stage and type, thus completing the modification of the names of the second sub-models; and then re-entering the modified names of the second sub-models into the corresponding second sub-models, thereby obtaining multiple third sub-models. By outputting the names of multiple second sub-models to an Excel file, entering the required new names in the Excel file, and then closing the Excel file to write the modified names back to the corresponding second sub-models, the technical effect of batch modifying sub-model names through Excel is achieved, thereby facilitating user search and improving modeling efficiency.
[0088] For example, Figure 10 This is the eighth flowchart illustrating the method for establishing a ship model provided in this embodiment of the invention; wherein the method includes:
[0089] S1002: Select one or more identical objects, which can be different outfitting objects;
[0090] S1004: Output an Excel table of model names;
[0091] S1006: Edit the corresponding information in Excel;
[0092] S1008: Change the name and write it back to the model.
[0093] In this embodiment, the various types of models to be modified (such as equipment, base, support, cable tray, etc.) are selected, and the data is output to Excel, as shown in Table 2. The new name of the model is entered in Excel, and then Excel is closed to write the modified name back to the model, thereby completing the modification of the model object.
[0094] Table 2
[0095] 1 XM / 274D-IC 2 AAA 3 Cableway-ET-6253
[0096] Instance-like, such as Figure 11 and Figure 12 As shown, first, select the smart3D model to be edited, such as... Figure 11 As shown, retrieve the model from the Work Space in the software. Then select the four equipment models, as follows. Figure 12As shown, the first type of information for the first sub-model is Equipment Furnishing, and the second type is Electrical. Then, the attributes in the first sub-model are modified based on the first and second type information, reusing cabin attributes in other equipment while maintaining the same room number "0C020E". Furthermore, three base models can be selected, and their associated attributes can be output to Excel, as shown in Table 3. In Excel, the required information such as new names, outfitting component types, and Chinese descriptions is completed. Finally, Excel is closed, and the required attributes for drawing are updated in the base models. Further, several outfitting models of various types—cable trays, bases, equipment, and supports—are selected, and their names are output to Excel, as shown in Table 4. In Excel, the names of each type of model are named according to the construction stage, type, and other required rules. Finally, all the type models are recombined to obtain the ship model.
[0097] Table 3
[0098]
[0099] Continued from Table 3
[0100]
[0101] Table 4
[0102] 1 CCC EPZ3-NST-001 2 DDD EPZ3-NST-002 3 EEE EPZ3-NST-003 4 FZ / QF563000 5 FZ / QF606R00 6 XE / 040 7 XM / 114B 8 Cableway-ET--19763 EDZ23-0B-K001 9 Cableway-ET--19765 EDZ23-0B-N001 10 EAD-1-4-12936 EDZ23-SLCT-001 11 SupportingLeg_WithBotSup-1-190 EDZ23-SLWT-001
[0103] Figure 13 This is a schematic block diagram of a ship model building apparatus provided in an embodiment of the present invention, wherein the ship model building apparatus 200 includes:
[0104] The acquisition module 2002 is used to acquire multiple first sub-models, where the first sub-model is a sub-model of the ship model;
[0105] Module 2004 is used to determine the first type of information to which each first sub-model belongs;
[0106] The attribute modification module 2006 is used to modify the attribute information of the corresponding first sub-model according to the first type information of each first sub-model, so as to obtain multiple second sub-models.
[0107] The name modification module 2008 is used to modify the name of the corresponding second sub-model based on each of the multiple preset names to obtain multiple third sub-models;
[0108] The Combination Module 2010 is used to combine multiple third-level sub-models to generate a ship model.
[0109] The ship model creation device 200 provided by this invention mainly includes: an acquisition module 2002, a determination module 2004, an attribute modification module 2006, a name modification module 2008, and a combination module 2010. The acquisition module 2002 acquires multiple first sub-models for creating the ship model. These first sub-models are models built into the software. The determination module 2004 determines the first type information of each selected first sub-model, which can be, for example, EquipmentFurnishing. The attribute modification module 2006 uses the first type information of each first sub-model to obtain the attribute information of each first sub-model, and then modifies the attribute information of the first sub-model corresponding to the first type information, thereby obtaining multiple second sub-models. By using the first type information of the first sub-model to convert the first sub-model into a second sub-model, the effect of quickly modifying or updating the attributes of the sub-models in the ship model is achieved. Furthermore, multiple preset names are pre-set according to the requirements of construction stage, type, etc. Then, the name modification module 2008 modifies the name of the corresponding second sub-model according to each of the multiple preset names to obtain multiple third sub-models. By using preset names to replace the original names in the sub-models, it is easier to find the sub-models. This facilitates the combination module 2010 to combine the multiple third sub-models to obtain the ship model, thereby realizing the technical effect of building a ship model in Intergraph Smart3D software. At the same time, by uniformly modifying the attributes and names of the multiple sub-models used to build the ship model, the problems of difficult sub-model searching, cumbersome editing, and low synchronization efficiency during the ship model building process are solved, thus improving the efficiency of modeling and data processing.
[0110] Furthermore, the attribute modification module 2006 is specifically used to determine multiple key attribute sets of the first type based on the first type information; determine the attribute information of the corresponding first sub-model based on the multiple key attribute sets; modify the attribute information of the multiple first sub-models to obtain multiple second sub-models.
[0111] In this embodiment, since the first type of information represents the position of the first sub-model within the ship model, multiple key attribute sets under the first type of information can be determined. These key attribute sets represent all attribute information of the current first sub-model, including attribute names and values. The attribute names can include the name of the first sub-model, its Chinese name, its weight, and the compartment it resides in. The current attribute information of the corresponding first sub-model is then determined from these multiple key attribute sets. Modifying this information yields the second sub-model. By obtaining multiple key attribute sets, the attribute information of the current first sub-model can be viewed intuitively, and its attributes can be directly modified, thus enabling rapid modification of commonly used attributes of the first sub-model.
[0112] Furthermore, the attribute modification module 2006 is also specifically used to determine the second type information to which each first sub-model belongs based on each first sub-model; and to determine the key attribute set corresponding to the second type in multiple key attribute sets based on the second type information, wherein the key attribute set corresponding to the second type is the attribute information of the corresponding first sub-model.
[0113] In this embodiment, the first sub-model can belong to both the first type of information and the second type of information. The second type of information represents the role of the first sub-model in the ship model. In other words, the first type of information and the second type of information have an intersection relationship. That is, the multiple key attribute sets obtained through the first type of information are also the key attribute sets of multiple second type of information. Therefore, by using the second type of information to which each first sub-model belongs, the key attribute set corresponding to the second type of information to which each first sub-model belongs can be determined from the multiple key attribute sets under the first type of information to which each first sub-model belongs. The data information in this key attribute set is the attribute information of the first sub-model. Thus, the key attribute set, i.e., the attribute information of the first sub-model, can be directly modified, thereby achieving rapid modification of the attributes of first sub-models belonging to the same first type of information and the same second type of information.
[0114] Furthermore, the attribute modification module 2006 is specifically used to determine the second type of information to which each first sub-model belongs based on each first sub-model; to divide multiple first sub-models into multiple first sub-model sets based on the first type information and the second type information; to output the association attributes of multiple first sub-models in each first sub-model set to a preset table, so as to modify multiple association attributes in the preset table; and to input multiple modified association attributes into the corresponding first sub-models to obtain multiple second sub-models.
[0115] In this embodiment, the attribute modification module 2006 is further configured to determine the second type information to which each first sub-model belongs based on each first sub-model, and then divide the multiple first sub-models into multiple first sub-model sets based on the first type information and the second type information. That is, by selecting the first type information and the second type information, multiple first sub-models with the same first type information and the same second type information are grouped into a first sub-model set. Then, the associated attributes of the multiple first sub-models in each first sub-model set are output to a preset table, whereby the required data, i.e., the attributes of the first sub-models, can be changed. Then, the preset table is closed, and the modified associated attributes are input into the corresponding first sub-models to obtain multiple second sub-models.
[0116] Furthermore, the attribute information in the first sub-model may include: the types of outfitting components of the first sub-model, the Chinese description of the first sub-model, the compartments of the first sub-model, etc.
[0117] Furthermore, the second type of information refers to the equipment that the first sub-model plays a role in the ship cabin model, which may include: interior equipment, engine equipment, engine base, electrical systems, and external outfitting.
[0118] Furthermore, the name modification module 2008 is specifically used to generate a set of second sub-models based on multiple second sub-models; output the names of multiple second sub-models in the set of second sub-models to a preset table, so as to modify the name of the corresponding second sub-model in the preset table according to each preset name among multiple preset names; input the names of multiple modified second sub-models into each corresponding second sub-model to obtain multiple third sub-models.
[0119] In this embodiment, the name modification module 2008 aggregates multiple second sub-models, where the first type information and second type information of the multiple second sub-models can be different, thus obtaining a set of second sub-models. The names of the multiple second sub-models in the set are output to a preset table. Then, the names of the corresponding second sub-models are modified in the preset table according to preset names, which are named according to requirements such as construction stage and type. This completes the modification of the second sub-model names. The modified names are then re-entered into the corresponding second sub-models, resulting in multiple third sub-models. By outputting the names of multiple second sub-models to an Excel spreadsheet, entering the required new names in the Excel spreadsheet, and then closing the Excel spreadsheet to write the modified names back to the corresponding second sub-models, the technical effect of batch modifying sub-model names via Excel is achieved, thus facilitating user searching and improving modeling efficiency.
[0120] According to a third aspect of the present invention, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the steps of the method for building a ship model in the first aspect or any possible implementation thereof.
[0121] According to a fourth aspect of the present invention, a storage medium is provided having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the method for establishing a ship model in the first aspect or any possible implementation thereof.
[0122] While this specification contains numerous specific implementation details, these should not be construed as limiting the scope of any invention or the scope of the claims, but rather are primarily intended to describe features of specific embodiments of a particular invention. Certain features described in the various embodiments herein may also be implemented in combination in a single embodiment. Conversely, various features described in a single embodiment may also be implemented separately in various embodiments or in any suitable sub-combination. Furthermore, while features may function in certain combinations as described above and even initially claimed in this way, one or more features from a claimed combination may be removed from that combination in some cases, and a claimed combination may refer to a sub-combination or a variation thereof.
[0123] Similarly, although the operations are depicted in a specific order in the accompanying drawings, this should not be construed as requiring these operations to be performed in the specific order shown or sequentially, or requiring all illustrated operations to be performed to achieve the desired result. In some cases, multitasking and parallel processing may be advantageous. Furthermore, the separation of various system modules and components in the above embodiments should not be construed as requiring such separation in all embodiments, and it should be understood that the described program components and systems can generally be integrated together in a single software product or packaged into multiple software products.
[0124] Thus, specific embodiments of the subject matter have been described. Other embodiments are within the scope of the appended claims. In some cases, the actions recited in the claims may be performed in a different order and still achieve the desired result. Furthermore, the processes depicted in the drawings are not necessarily shown in a specific order or sequence to achieve the desired result. In some implementations, multitasking and parallel processing may be advantageous.
[0125] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0126] The above description is merely a specific embodiment of the present invention, enabling those skilled in the art to understand or implement the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. The invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A method for establishing a ship model, characterized in that, include: Obtain multiple first sub-models, where each first sub-model is a sub-model of the ship model; Determine the first type of information to which each of the first sub-models belongs; Based on the first type information to which each first sub-model belongs, the attribute information of the corresponding first sub-model is modified to obtain multiple second sub-models; The name of the corresponding second sub-model is modified according to each of the multiple preset names to obtain multiple third sub-models; The ship model is generated by combining multiple third sub-models. The step of modifying the attribute information of the corresponding first sub-model according to the first type information to which each first sub-model belongs, to obtain multiple second sub-models, includes: Determine the second type of information to which each of the first sub-models belongs based on each of the first sub-models; Based on the first type of information and the second type of information, the multiple first sub-models are divided into multiple first sub-model sets; The associated attributes of multiple first sub-models in each first sub-model set are output to a preset table, so that the multiple associated attributes can be modified in the preset table; By inputting the modified associated attributes into the corresponding first sub-model, multiple second sub-models are obtained; The attribute information includes: the type of outfitting components of the first sub-model, the Chinese description of the first sub-model, the unit weight of the first sub-model, and one or more combinations of the compartments of the first sub-model; The second type of information includes one or more combinations of internal components, engine equipment, engine base, electrical systems, and external outfitting.
2. The method for establishing a ship model according to claim 1, characterized in that, The step of modifying the name of the corresponding second sub-model according to each of the multiple preset names to obtain multiple third sub-models includes: Generate a set of second sub-models based on multiple second sub-models; The names of multiple second sub-models in the second sub-model set are output to a preset table, so that the name of the corresponding second sub-model is modified in the preset table according to each of the multiple preset names; The names of the modified second sub-models are input into each corresponding second sub-model to obtain the third sub-models.
3. A device for building a ship model, characterized in that, include: The acquisition module is used to acquire multiple first sub-models, wherein the first sub-models are sub-models of the ship model; The determining module is used to determine the first type information to which each of the first sub-models belongs; An attribute modification module is used to modify the attribute information of the corresponding first sub-model according to the first type information to which each first sub-model belongs, so as to obtain multiple second sub-models. A name modification module is used to modify the name of the corresponding second sub-model according to each of the multiple preset names to obtain multiple third sub-models; A combination module, which is used to combine multiple third sub-models to generate the ship model; The attribute modification module is specifically used for: Determine the second type of information to which each of the first sub-models belongs based on each of the first sub-models; Based on the first type of information and the second type of information, the multiple first sub-models are divided into multiple first sub-model sets; The associated attributes of multiple first sub-models in each first sub-model set are output to a preset table, so that the multiple associated attributes can be modified in the preset table; By inputting the modified associated attributes into the corresponding first sub-model, multiple second sub-models are obtained; The attribute information includes: the type of outfitting components of the first sub-model, the Chinese description of the first sub-model, the unit weight of the first sub-model, and one or more combinations of the compartments of the first sub-model; The second type of information includes one or more combinations of internal components, engine equipment, engine base, electrical systems, and external outfitting.
4. An electronic device, characterized in that, include: A memory that stores programs or instructions; A processor for executing the program or instructions to implement the steps of the method for building a ship model as described in claim 1 or 2.
5. A readable storage medium having a program or instructions stored thereon, characterized in that, When the program or instructions are executed by the processor, they implement the steps of the method for establishing a ship model as described in claim 1 or 2.
Citation Information
Patent Citations
Intelligent design method and a system of a three-dimensional building
CN109376399A
Resource management model establishing method and device and storage medium thereof
CN109583775A