Lane and line separation method, device and equipment for hull parts and storage medium
By using flow codes to read and convert the hull part data files, the problem of low efficiency of part splitting and line splitting in the prior art is solved, and efficient parts flow and production processes are achieved.
Patent Information
- Application Number
- CN202510050335.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-13
- Publication Date
- 2025-05-13
AI Technical Summary
The existing hull parts are inefficient in the technology of splitting and splitting, resulting in low parts flow efficiency and reducing the hull segment construction and production efficiency.
Through flow codes, data reading of the hull part data files can be realized to convert parts and nesting, and improve the efficiency of channel division and line division.
It improves efficient lane-dividing and line division of hull parts, reduces part omissions or repetition, and improves hull segment construction and production efficiency.
Smart Images

Figure CN119988321A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of ship hull parts processing, and in particular relates to a method, device, equipment and storage medium for dividing lanes and lines of ship hull parts. Background Art
[0002] With the continuous development of the shipbuilding industry, shipbuilding has entered the modern era. Modernization has resulted in a parallel construction mode of hull, superstructure and coating integration based on sections. The hull structure sections are composed of various parts. Different parts are processed and manufactured in different ways, and will be manufactured at different stations, which has led to the process of dividing the hull structure parts. The division of the hull structure parts refers to the division of many parts according to the part type, processing method, and operation area during the design and planning stage, and then the nesting, cutting and cutting are carried out. After the classified nested parts are cut, they can be directly sent to the corresponding stations for processing and manufacturing, reducing the time for parts sorting. Therefore, the division of the hull parts has a huge effect on improving the efficiency of ship manufacturing.
[0003] In the current hull parts lane division technology, usually according to production needs, manually sorting out the required parts from a large number of parts, but when faced with a large number of parts, this will lead to low efficiency in the lane division of parts, which in turn leads to low efficiency in the circulation of parts, reduces the efficiency of hull segment construction, and ultimately reduces the efficiency of hull production. Therefore, there is an urgent need for a new hull parts lane division method, device, equipment and storage medium to solve the defects of the existing technology. Summary of the invention
[0004] The present invention aims to provide a method, device, equipment and storage medium for dividing lanes and lines of hull parts to solve the above-mentioned technical problems. The hull part data file is read through the flow code, and the parts are converted and nested according to the read hull part data file, so as to realize efficient dividing lanes and lines of hull parts and improve the efficiency of hull section construction and hull production efficiency.
[0005] In order to solve the above technical problems, an embodiment of the present invention provides a method for dividing lanes and lines of hull parts, comprising:
[0006] Obtain the initial hull parts data file and required flow direction code set to be divided into lanes and lines;
[0007] According to a preset text processing algorithm, in combination with the required flow code set, data is read from the initial hull parts data file to obtain a plurality of first hull parts data files;
[0008] Part conversion and part nesting are performed according to the first hull part data file to complete the lane division and line division of the hull parts.
[0009] It can be understood that, compared with the prior art, the present invention reads the data of the hull parts data file according to the flow code set required for hull production, and takes the flow code that can represent the flow position of the parts as the standard. Through data reading, the first hull parts data file corresponding to the hull production can be obtained quickly and accurately, and then the parts conversion and parts nesting are realized through the first hull parts data file, thereby completing the efficient and accurate lane division of the hull parts. The present invention improves the screening efficiency of the hull parts data file through the flow code, and avoids the omission or duplication of parts, thereby ensuring the efficiency and accuracy of the parts nesting, and improving the efficiency of the hull segment construction and the hull production efficiency.
[0010] As a preferred solution, the initial hull parts data file is read according to the preset text processing algorithm in combination with the demand flow code set to obtain a plurality of first hull parts data files, specifically including:
[0011] According to a preset text processing algorithm, in combination with the demand flow code set, the initial hull part data files are sequentially read, and a second hull part data file corresponding to each of the initial hull part data files is generated to obtain a plurality of second hull part data files;
[0012] A plurality of first hull part data files are generated according to a plurality of the second hull part data files.
[0013] This preferred solution uses a text processing algorithm and combines the required flow code set to read the initial hull part data file to obtain a number of first hull part data files, using the flow code that can represent the flow position of the part as the standard, thereby improving the efficiency of screening the hull part data files and avoiding the omission or duplication of parts, thereby ensuring the efficiency and accuracy of part nesting and improving the efficiency of hull section construction and hull production efficiency.
[0014] As a preferred solution, the method of sequentially reading the initial hull part data files according to the preset text processing algorithm and combining the required flow code set, and generating a second hull part data file corresponding to each of the initial hull part data files, specifically includes:
[0015] The initial hull parts data file includes: dotted line symbols and flow direction codes;
[0016] Read and identify each line of data in the initial hull parts data file in sequence;
[0017] When the dotted line symbol is recognized, the second hull part data file corresponding to the initial hull part data file is initialized, each line of data of the initial hull part data file is continuously read and recognized, and each line of data read is written into the second hull part data file until the flow direction code of the initial hull part data file is recognized;
[0018] When the flow direction code of the initial hull part data file is the same as the flow direction code in the required flow direction code set, continue to read and identify each line of data of the initial hull part data file, and write each line of data read into the second hull part data file until the dotted line symbol is recognized again, completing the data reading of the initial hull part data file and obtaining the second hull part data file corresponding to the initial hull part data file.
[0019] This preferred solution uses a text processing algorithm and combines the required flow code set to read the data of the initial hull part data file to obtain a second hull part data file corresponding to the initial hull part data file, thereby realizing part conversion and part nesting. The flow code that can represent the flow position of the part is used as the standard, which improves the efficiency of screening the hull part data file and avoids the omission or duplication of parts, thereby ensuring the efficiency and accuracy of part nesting and improving the efficiency of hull section construction and hull production efficiency.
[0020] As a preferred solution, the part conversion and part nesting are performed according to the first hull part data file to complete the lane division and line division of the hull parts, specifically including:
[0021] Performing part conversion on the first hull part data file according to the file type of the first hull part data file to obtain a part library file corresponding to each first hull part data file;
[0022] Parts nesting is performed according to the parts library file to complete the lane division and line division of the hull parts.
[0023] This preferred solution realizes part conversion and part nesting through the first hull part data file, thereby completing the efficient and accurate lane division and line division of hull parts. The present invention improves the screening efficiency of hull part data files through flow direction codes, and avoids missing or duplication of parts, thereby ensuring the efficiency and accuracy of part nesting, and improving the efficiency of hull segment construction and hull production efficiency.
[0024] Accordingly, an embodiment of the present invention provides a lane dividing and line dividing device for hull parts, comprising: a hull part data acquisition module, a hull part data file reading module and a hull part lane dividing and line dividing module;
[0025] Wherein, the hull parts data acquisition module is used to acquire the initial hull parts data file to be divided into lanes and lines and the required flow direction code set;
[0026] The hull parts data file reading module is used to read the initial hull parts data file according to a preset text processing algorithm and in combination with the demand flow code set to obtain a plurality of first hull parts data files;
[0027] The hull parts lane division module is used to perform part conversion and part nesting according to the first hull parts data file to complete the hull parts lane division.
[0028] As a preferred solution, the hull parts data file reading module specifically comprises: a hull parts data file reading unit;
[0029] The hull part data file reading unit is used to read the initial hull part data files in sequence according to the preset text processing algorithm and in combination with the demand flow code set, and generate a second hull part data file corresponding to each of the initial hull part data files to obtain a plurality of second hull part data files;
[0030] A plurality of first hull part data files are generated according to a plurality of the second hull part data files.
[0031] As a preferred solution, the hull parts data file reading unit specifically includes: a second hull parts data file building unit;
[0032] The second hull part data file construction unit is used for the initial hull part data file to include: a dashed line symbol and a flow direction code;
[0033] Read and identify each line of data in the initial hull parts data file in sequence;
[0034] When the dotted line symbol is recognized, the second hull part data file corresponding to the initial hull part data file is initialized, each line of data of the initial hull part data file is continuously read and recognized, and each line of data read is written into the second hull part data file until the flow direction code of the initial hull part data file is recognized;
[0035] When the flow direction code of the initial hull part data file is the same as the flow direction code in the required flow direction code set, continue to read and identify each line of data of the initial hull part data file, and write each line of data read into the second hull part data file until the dotted line symbol is recognized again, completing the data reading of the initial hull part data file and obtaining the second hull part data file corresponding to the initial hull part data file.
[0036] As a preferred solution, the hull parts lane dividing module specifically comprises: a hull parts lane dividing unit;
[0037] The hull part lane dividing unit is used to convert the first hull part data file into parts according to the file type of the first hull part data file, so as to obtain a parts library file corresponding to each first hull part data file;
[0038] Parts nesting is performed according to the parts library file to complete the lane division and line division of the hull parts.
[0039] It can be understood that, compared with the prior art, the present device reads the data of the hull parts data file according to the flow code set required for hull production, and takes the flow code that can represent the flow position of the parts as the standard. Through data reading, the first hull parts data file corresponding to the hull production can be obtained quickly and accurately, and then the parts conversion and parts nesting are realized through the first hull parts data file, thereby completing the efficient and accurate lane division of the hull parts. The present device improves the screening efficiency of the hull parts data file through the flow code, and avoids the omission or duplication of parts, thereby ensuring the efficiency and accuracy of the parts nesting, and improving the efficiency of the hull segment construction and the hull production efficiency.
[0040] Accordingly, an embodiment of the present invention provides a terminal device, including:
[0041] one or more processors;
[0042] A memory, coupled to the processor, for storing one or more programs;
[0043] When the one or more programs are executed by the one or more processors, the one or more processors implement the lane dividing method for hull parts as described above.
[0044] Accordingly, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program is executed by a processor to implement the above-mentioned method for dividing lanes and lines of hull parts. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 : A flowchart of a method for transient stability assessment of a power system provided by an embodiment of the present invention;
[0046] Figure 2 : A data format diagram of a plate part data file provided by an embodiment of the present invention;
[0047] Figure 3 : A data format diagram of a profile part data file provided by an embodiment of the present invention;
[0048] Figure 4 : A schematic flow chart of another method for dividing lanes and lines of hull parts data provided by an embodiment of the present invention;
[0049] Figure 5 : A structural schematic diagram of a lane dividing and line dividing device for hull parts provided by an embodiment of the present invention;
[0050] Among them, 201: hull parts data acquisition module; 202: hull parts data file reading module; 203: hull parts lane and line division module. DETAILED DESCRIPTION
[0051] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0052] Modern shipbuilding is a parallel construction mode of hull, superstructure and coating with sections as units. The hull structure sections are composed of various parts. Different parts are processed and manufactured in different ways and are manufactured at different workstations. At present, the design and production of hull parts are divided according to the hull sections. A hull section contains a large number of parts that need to go through different processing steps before subsequent installation. As a result, a large number of parts need to be manually sorted out during the production process, and the parts circulation efficiency is low, which greatly affects the production efficiency.
[0053] The lane division and line division of hull structural parts refers to dividing many parts according to part type, processing method, and operation area in the design and planning stage, and then performing nesting, cutting, and after the classified and nested parts are cut, they can be directly sent to the corresponding workstation for processing and manufacturing, reducing the time for parts sorting. In the modern shipbuilding model, it is a key step to realize the lane division and line division of hull structural parts from the technical source. The lane division and line division method of hull parts provided by the present invention performs lane division and line nesting of parts from the design stage, improves the circulation efficiency of parts in the production stage, and then improves the utilization rate of intelligent production equipment such as group robots and T-profile assembly lines, and finally achieves the comprehensive improvement of the efficiency of hull segment construction.
[0054] It should be noted that the SPD (Ship Product Design) software described in the embodiment of the present invention refers to ship production design software, the PD file is a plate part data file, and the MS file is a profile part data file. The VBA programming language (Visual Basic for Applications) is used to write program codes.
[0055] Embodiment 1
[0056] Please refer to Figure 1 , is a schematic diagram of the steps of a method for dividing lanes and lines of hull parts provided in an embodiment of the present invention, including steps S101-S103.
[0057] Step S101: obtaining the initial hull parts data file to be divided into lanes and lines and the required flow direction code set.
[0058] In an optional embodiment, the initial hull part data file to be laned and divided includes: a plate part data file (PD file) and a profile part data file (MS file) generated by SPD software; both the plate part data file and the profile part data file include: part name, part specification and material, flow direction code, marking and other information.
[0059] Please refer to Figure 2 and Figure 3 , Figure 2 A data format diagram of a plate part data file provided by an embodiment of the present invention, Figure 3 FIG. 1 is a data format diagram of a profile part data file provided by an embodiment of the present invention. Figure 2 As shown in the figure, the data format in the plate part data file includes: part name, material, quantity, plate thickness, processing / flow direction information (i.e. flow direction code) and part boundary data. Figure 3 As shown in the figure, the data format in the profile part data file includes: part name, type, material, flow code and endpoint coordinates. In the plate part data file and profile part data file, the data blocks contained in each part are separated by dotted line symbols, and the part flow information (i.e., flow code) is located in a specific line of the part data file.
[0060] Step S102: reading the initial hull part data file according to a preset text processing algorithm and in combination with the required flow code set to obtain a plurality of first hull part data files.
[0061] In this embodiment, the initial hull parts data file is read according to the preset text processing algorithm in combination with the demand flow code set to obtain a plurality of first hull parts data files, specifically including:
[0062] According to a preset text processing algorithm, in combination with the demand flow code set, the initial hull part data files are sequentially read, and a second hull part data file corresponding to each of the initial hull part data files is generated to obtain a plurality of second hull part data files;
[0063] A plurality of first hull part data files are generated according to a plurality of the second hull part data files.
[0064] This embodiment uses a text processing algorithm to read the data of the initial hull part data file in combination with the required flow code set to obtain a number of first hull part data files, and uses the flow code that can represent the flow position of the part as the standard, thereby improving the screening efficiency of the hull part data file and avoiding the omission or duplication of parts, thereby ensuring the efficiency and accuracy of part nesting and improving the efficiency of hull section construction and hull production efficiency.
[0065] In this embodiment, the initial hull part data files are read in sequence according to the preset text processing algorithm in combination with the demand flow code set, and a second hull part data file corresponding to each of the initial hull part data files is generated, specifically including:
[0066] The initial hull parts data file includes: dotted line symbols and flow direction codes;
[0067] Read and identify each line of data in the initial hull parts data file in sequence;
[0068] When the dotted line symbol is recognized, the second hull part data file corresponding to the initial hull part data file is initialized, each line of data of the initial hull part data file is continuously read and recognized, and each line of data read is written into the second hull part data file until the flow direction code of the initial hull part data file is recognized;
[0069] When the flow direction code of the initial hull part data file is the same as the flow direction code in the required flow direction code set, continue to read and identify each line of data of the initial hull part data file, and write each line of data read into the second hull part data file until the dotted line symbol is recognized again, completing the data reading of the initial hull part data file and obtaining the second hull part data file corresponding to the initial hull part data file.
[0070] This embodiment uses a text processing algorithm and combines the required flow code set to read the data of the initial hull part data file to obtain a second hull part data file corresponding to the initial hull part data file, thereby realizing part conversion and part nesting. The flow code that can represent the flow position of the part is used as the standard, which improves the screening efficiency of the hull part data file and avoids the omission or duplication of parts, thereby ensuring the efficiency and accuracy of part nesting and improving the efficiency of hull section construction and hull production efficiency.
[0071] In an optional embodiment, a text processing algorithm is constructed by using a text processing function of the VBA programming language, wherein the text processing function includes: a first text processing function Open[file_Path]For Input As[nFile] is used to open a file in the file_Path path in read mode and assign it to a variable nFile; a second text processing function Open[file_Path]ForOutput As[nFile] is used to open a file in the file_Path path in write mode and assign it to a variable nFile; a third text processing function Line Input[#nFile,str] is used to read a line of text content from the nFile file and assign it to the str variable; and a fourth text processing function Print[#nFile,str] is used to write the text content represented by the str variable into a line in the nFile file.
[0072] In some optional implementations of this embodiment, the initial hull part data files are sequentially read according to the preset text processing algorithm in combination with the demand flow code set, and a second hull part data file corresponding to each of the initial hull part data files is generated, specifically including:
[0073] Opening the initial hull parts data file in a read mode through a first text processing function to read text information of the initial hull parts data file;
[0074] A first loop statement is set to read text information line by line from the initial hull parts data file through a third text processing function;
[0075] When the dotted line symbol of the initial hull part data file is read, the second hull part data file corresponding to the initial hull part data file is initialized in a write mode through the second text processing function, and is used to write text information of the initial hull part data file;
[0076] A second loop statement is set to continue reading the part data of the initial hull part data file and writing it into the second hull part data file;
[0077] During the execution of the second loop statement, when the line containing the text containing the part flow code information is read, it is determined whether the flow code is in the required flow code set (that is, whether it is the user's required flow code);
[0078] If yes, continue to read the part data of the initial hull part data file and write it into the second hull part data file until the dotted line symbol is read again, end the first loop statement and the second loop statement, complete the data reading of the initial hull part data file, and obtain the second hull part data file corresponding to the initial hull part data file;
[0079] If not, the first loop statement and the second loop statement are terminated, and the second hull part data file is cleared, and the data reading of the initial hull part data file is completed to obtain the second hull part data file corresponding to the initial hull part data file.
[0080] In an optional embodiment, generating a plurality of first hull part data files according to a plurality of second hull part data files specifically includes:
[0081] When the initial hull part data file is a plate part data file (PD file), a plurality of first hull part data files are generated according to a plurality of the second hull part data files, wherein the first hull part data files include: a plate part data file containing a specified flow direction and other plate part data files;
[0082] When the initial hull part data file is a profile part data file (MS file), a plurality of first hull part data files are generated according to a plurality of second hull part data files, wherein the first hull part data files include: a profile part data file containing a specified flow direction and other profile part data files.
[0083] Step S103: performing part conversion and part nesting according to the first hull part data file to complete the lane division and line division of the hull parts.
[0084] In this embodiment, the part conversion and part nesting are performed according to the first hull part data file to complete the lane division and line division of the hull parts, specifically including:
[0085] Performing part conversion on the first hull part data file according to the file type of the first hull part data file to obtain a part library file corresponding to each first hull part data file;
[0086] Parts nesting is performed according to the parts library file to complete the lane division and line division of the hull parts.
[0087] This embodiment realizes part conversion and part nesting through the first hull part data file, thereby completing the efficient and accurate lane division and line division of the hull parts. The present invention improves the screening efficiency of the hull part data file through the flow code, and avoids the omission or duplication of parts, thereby ensuring the efficiency and accuracy of part nesting, and improving the efficiency of hull segment construction and hull production efficiency.
[0088] In an optional embodiment, performing part conversion on the first hull part data file according to the file type of the first hull part data file to obtain a part library file corresponding to each first hull part data file specifically includes:
[0089] Convert the plate part data file containing the specified flow direction and the profile part data file containing the specified flow direction to obtain the initial SPD part library file;
[0090] The other plate part data files and other profile part data files are converted into parts, and combined with the initial SPD part library file to obtain a second SPD part library file.
[0091] Please refer to Figure 4 , which is a flow chart of another method for dividing and dividing hull part data provided by an embodiment of the present invention, wherein, firstly, a part database is generated by SPD software, and a plate PD file and a profile MS file are extracted from the part database; then, the flow direction code of the specified part is obtained, and the plate PD file and the profile MS file are processed to obtain a plate part data file containing the specified flow direction, other plate part data files, a profile part data file containing the specified flow direction, and other profile part data files; the plate part data file containing the specified flow direction and the profile part data file containing the specified flow direction are converted to obtain an SPD part library, other plate part data files and other profile part data files are converted to parts, and the final SPD part library is obtained by combining the SPD part library, and then part nesting is performed according to the final SPD part library to complete the dividing and dividing of hull part data.
[0092] This embodiment reads the data of the hull part data file according to the flow code set required for hull production, and takes the flow code that can represent the flow position of the part as the standard. Through data reading, the first hull part data file corresponding to the hull production can be quickly and accurately obtained, and then the part conversion and part nesting are realized through the first hull part data file, thereby completing the efficient and accurate lane division of the hull parts. This embodiment improves the screening efficiency of the hull part data file through the flow code, and avoids the omission or duplication of parts, thereby ensuring the efficiency and accuracy of the part nesting, and improving the efficiency of hull segment construction and hull production efficiency.
[0093] Embodiment 2
[0094] Please refer to Figure 5 , which is a structural schematic diagram of a lane dividing and line dividing device for hull parts provided in an embodiment of the present invention, comprising: a hull part data acquisition module 201, a hull part data file reading module 202 and a hull part lane dividing and line dividing module 203.
[0095] The hull parts data acquisition module 201 is used to acquire the initial hull parts data file to be divided into lanes and lines and the required flow direction code set.
[0096] The hull part data file reading module 202 is used to read the initial hull part data file according to a preset text processing algorithm in combination with the required flow code set to obtain a plurality of first hull part data files.
[0097] In this embodiment, the hull parts data file reading module 202 specifically includes: a hull parts data file reading unit;
[0098] The hull part data file reading unit is used to read the initial hull part data files in sequence according to the preset text processing algorithm and in combination with the demand flow code set, and generate a second hull part data file corresponding to each of the initial hull part data files to obtain a plurality of second hull part data files;
[0099] A plurality of first hull part data files are generated according to a plurality of the second hull part data files.
[0100] In this embodiment, the hull parts data file reading unit specifically includes: a second hull parts data file building unit;
[0101] The second hull part data file construction unit is used for the initial hull part data file to include: a dashed line symbol and a flow direction code;
[0102] Read and identify each line of data in the initial hull parts data file in sequence;
[0103] When the dotted line symbol is recognized, the second hull part data file corresponding to the initial hull part data file is initialized, each line of data of the initial hull part data file is continuously read and recognized, and each line of data read is written into the second hull part data file until the flow direction code of the initial hull part data file is recognized;
[0104] When the flow direction code of the initial hull part data file is the same as the flow direction code in the required flow direction code set, continue to read and identify each line of data of the initial hull part data file, and write each line of data read into the second hull part data file until the dotted line symbol is recognized again, completing the data reading of the initial hull part data file and obtaining the second hull part data file corresponding to the initial hull part data file.
[0105] The hull parts lane division module 203 is used to perform part conversion and part nesting according to the first hull parts data file to complete the hull parts lane division.
[0106] In this embodiment, the hull parts lane dividing module 203 specifically includes: a hull parts lane dividing unit;
[0107] The hull part lane dividing unit is used to convert the first hull part data file into parts according to the file type of the first hull part data file, so as to obtain a parts library file corresponding to each first hull part data file;
[0108] Parts nesting is performed according to the parts library file to complete the lane division and line division of the hull parts.
[0109] This embodiment reads the data of the hull part data file according to the flow code set required for hull production, and takes the flow code that can represent the flow position of the part as the standard. Through data reading, the first hull part data file corresponding to the hull production can be quickly and accurately obtained, and then the part conversion and part nesting are realized through the first hull part data file, thereby completing the efficient and accurate lane division of the hull parts. This embodiment improves the screening efficiency of the hull part data file through the flow code, and avoids the omission or duplication of parts, thereby ensuring the efficiency and accuracy of the part nesting, and improving the efficiency of hull segment construction and hull production efficiency.
[0110] Embodiment 3
[0111] An embodiment of the present invention provides a terminal device, including:
[0112] one or more processors;
[0113] A memory, coupled to the processor, for storing one or more programs;
[0114] When the one or more programs are executed by the one or more processors, the one or more processors implement a method for dividing lanes and lines of hull parts as described in the first embodiment above.
[0115] An embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program is executed by a processor to implement a method for dividing lanes and lines of hull parts as described in the first embodiment above.
[0116] In summary, the embodiment of the present invention reads the data of the hull part data file according to the required flow code set of the hull production, and takes the flow code that can represent the flow position of the part as the standard. Through data reading, the first hull part data file corresponding to the hull production can be obtained quickly and accurately, and then the part conversion and part nesting are realized through the first hull part data file, thereby completing the efficient and accurate lane division of the hull parts. The embodiment of the present invention improves the screening efficiency of the hull part data file through the flow code, and avoids the omission or duplication of parts, thereby ensuring the efficiency and accuracy of the part nesting, and improving the efficiency of the hull segment construction and the hull production efficiency.
[0117] The specific embodiments described above further illustrate the purpose, technical solutions and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for dividing lanes and lines of hull parts, characterized in that: include: Obtain the initial hull parts data file and required flow direction code set to be divided into lanes and lines; According to a preset text processing algorithm, in combination with the required flow code set, data is read from the initial hull parts data file to obtain a plurality of first hull parts data files; Part conversion and part nesting are performed according to the first hull part data file to complete the lane division and line division of the hull parts.
2. A method for dividing lanes and lines of hull parts as claimed in claim 1, characterized in that: The initial hull parts data file is read according to the preset text processing algorithm in combination with the demand flow code set to obtain a plurality of first hull parts data files, specifically including: According to a preset text processing algorithm, in combination with the demand flow code set, the initial hull part data files are sequentially read, and a second hull part data file corresponding to each of the initial hull part data files is generated to obtain a plurality of second hull part data files; A plurality of first hull part data files are generated according to a plurality of the second hull part data files.
3. A method for dividing lanes and lines of hull parts as claimed in claim 2, characterized in that: The method of reading the initial hull part data files in sequence according to the preset text processing algorithm and combining the required flow code set, and generating a second hull part data file corresponding to each of the initial hull part data files, specifically includes: The initial hull parts data file includes: dotted line symbols and flow direction codes; Read and identify each line of data in the initial hull parts data file in sequence; When the dotted line symbol is recognized, the second hull part data file corresponding to the initial hull part data file is initialized, each line of data of the initial hull part data file is continuously read and recognized, and each line of data read is written into the second hull part data file until the flow direction code of the initial hull part data file is recognized; When the flow direction code of the initial hull part data file is the same as the flow direction code in the required flow direction code set, continue to read and identify each line of data of the initial hull part data file, and write each line of data read into the second hull part data file until the dotted line symbol is recognized again, completing the data reading of the initial hull part data file, and obtaining the second hull part data file corresponding to the initial hull part data file.
4. A method for dividing lanes and lines of hull parts as claimed in claim 1 or 3, characterized in that: The performing of part conversion and part nesting according to the first hull part data file to complete the lane division and line division of the hull parts specifically includes: Performing part conversion on the first hull part data file according to the file type of the first hull part data file to obtain a part library file corresponding to each first hull part data file; Parts nesting is performed according to the parts library file to complete the lane division and line division of the hull parts.
5. A lane dividing and line dividing device for hull parts, characterized in that: include: Hull parts data acquisition module, hull parts data file reading module and hull parts lane and line division module; Wherein, the hull parts data acquisition module is used to acquire the initial hull parts data file to be divided into lanes and lines and the required flow direction code set; The hull parts data file reading module is used to read the initial hull parts data file according to a preset text processing algorithm and in combination with the demand flow code set to obtain a plurality of first hull parts data files; The hull parts lane division module is used to perform part conversion and part nesting according to the first hull parts data file to complete the hull parts lane division.
6. A lane dividing and line dividing device for hull parts as claimed in claim 5, characterized in that: The hull parts data file reading module specifically comprises: a hull parts data file reading unit; The hull part data file reading unit is used to read the initial hull part data files in sequence according to the preset text processing algorithm and in combination with the demand flow code set, and generate a second hull part data file corresponding to each of the initial hull part data files to obtain a plurality of second hull part data files; A plurality of first hull part data files are generated according to a plurality of the second hull part data files.
7. A lane dividing and line dividing device for hull parts as claimed in claim 6, characterized in that: The hull parts data file reading unit specifically includes: a second hull parts data file building unit; The second hull part data file construction unit is used for the initial hull part data file to include: a dashed line symbol and a flow direction code; Read and identify each line of data in the initial hull parts data file in sequence; When the dotted line symbol is recognized, the second hull part data file corresponding to the initial hull part data file is initialized, each line of data of the initial hull part data file is continuously read and recognized, and each line of data read is written into the second hull part data file until the flow direction code of the initial hull part data file is recognized; When the flow direction code of the initial hull part data file is the same as the flow direction code in the required flow direction code set, continue to read and identify each line of data of the initial hull part data file, and write each line of data read into the second hull part data file until the dotted line symbol is recognized again, completing the data reading of the initial hull part data file, and obtaining the second hull part data file corresponding to the initial hull part data file.
8. A lane dividing and line dividing device for hull parts as claimed in claim 5 or 7, characterized in that: The hull parts lane dividing module specifically comprises: a hull parts lane dividing unit; The hull part lane dividing unit is used to convert the first hull part data file into parts according to the file type of the first hull part data file, so as to obtain a parts library file corresponding to each first hull part data file; Parts nesting is performed according to the parts library file to complete the lane division and line division of the hull parts.
9. A terminal device, characterized in that: include: one or more processors; A memory, coupled to the processor, for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the lane dividing method for hull parts as described in any one of claims 1 to 4.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: The computer program is executed by a processor to implement a method for dividing lanes and lines of a hull part as claimed in any one of claims 1 to 4.
Citation Information
Cited By
Ship process integrated collaborative design system and method based on unified part library
CN121051879A