A translation method, device, equipment and storage medium for profile book

By automating the translation of the processing methods and information of the profile booklet, the problems of long translation time and large errors in the existing technology are solved, and efficient and accurate profile booklet translation is achieved.

CN115270726BActive Publication Date: 2025-09-19CSSC HUANGPU WENCHONG SHIPBUILDING CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210971895.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-15
Publication Date
2025-09-19
Estimated Expiration
2042-08-15

AI Technical Summary

Technical Problem

The translation process of the profile booklet in the prior art is time-consuming and error-prone, especially the manual translation method which causes large errors.

Method used

Provided is a method and device for translating a profile booklet, which automatically translates the processing methods and profile information of the profiles in sequence, determines anomalies and generates anomaly information until the translation of all profile sets is completed, including the deduction of groove gaps and the proofreading of profile information.

Benefits of technology

It improves the efficiency of profile book translation, reduces errors caused by manual translation, and ensures the accuracy of translation results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115270726B_ABST
    Figure CN115270726B_ABST
Patent Text Reader

Abstract

The present invention discloses a translation method, device, equipment and storage medium for a profile book. The method comprises the following steps: selecting a first type of profile set in the profile book, translating the processing method of each profile in the first type of profile set in turn, judging whether the processing method of each profile is abnormal, and if so, generating first processing method abnormality information; translating the profile information of each profile, judging whether the profile information is abnormal, and if so, generating first profile information abnormality information; judging whether all profiles in the first type of profile set have been translated, and if so, selecting a second type of profile set, and using the second type of profile set as the first type of profile set, and returning to the step of "translating the processing method of each profile in the first type of profile set in turn" until the translation of profiles of all types of profile sets is completed. Compared with the prior art, the technical solution of the present application can improve the efficiency of profile book translation and reduce errors caused by manual translation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of computer-aided shipbuilding, and in particular to a translation method, device, equipment and storage medium for a profile book. Background Art

[0002] Profile books are technical drawings used by shipyards for cutting profiles. They contain information such as the profile end bevel code, allowance, and processing methods for curved profiles. Typically, when processing the original profile booklet, designers need to review each profile in turn and, using a spreadsheet's search and replace function, manually convert English bevel symbols into specific, clear bevel data. If there is a bevel gap, this is deducted from the corresponding profile end allowance. For curved profiles with contour lines, the corresponding processing method must be determined by calculating the inverse line data. Existing manual translation methods consume a considerable amount of time, and the repetitive manual conversion and calculations are prone to errors. Summary of the Invention

[0003] The technical problem to be solved by the present invention is to provide a translation method, device, equipment and storage medium for a profile booklet, thereby improving the efficiency of profile booklet translation and reducing errors caused by manual translation.

[0004] In order to solve the above technical problems, the present invention provides a method for translating a profile booklet, comprising:

[0005] Selecting a first type of profile set in the profile book, translating the processing method of each profile in the first type of profile set in turn, determining whether the processing method of each profile is abnormal, and if so, generating first processing method abnormality information;

[0006] At the same time, the profile information of each profile is translated, wherein the profile information includes the grooves and port margins of the two ports of the profile, and whether the profile information is abnormal is determined. If so, first profile information abnormality information is generated;

[0007] Determine whether the translation of all profiles in the first type of profile set has been completed. If so, select the second type of profile set and use the second type of profile set as the first type of profile set, and return to step: "Translate the processing method of each profile in the first type of profile set in turn" until the profile translation of all types of profile sets is completed.

[0008] In a possible implementation, before selecting the first type of profile set in the profile book, the method further includes:

[0009] Obtaining a first profile having a groove gap from a set of all profile types in the profile book, and obtaining a groove gap deduction status of the first profile;

[0010] When the groove gap deduction state of the first profile is not deducted, the value of the groove gap is deducted from the port margin of the first profile, and the port margin of the first profile is updated.

[0011] In a possible implementation, translating the processing method of each profile in the first type of profile set specifically includes:

[0012] Determine whether each profile has an inverse straight line, and if so, determine that the profile with the inverse straight line is a curved profile;

[0013] Determine whether the processing code of the curved profile meets the processing code standard. If not, record processing code abnormality information. If yes, obtain the surface type of the curved profile, where the surface type includes ribs, longitudinal bones with one inverted straight line, and longitudinal bones with two inverted straight lines.

[0014] According to the surface type of the curved profile, the processing method of the curved profile is translated.

[0015] In a possible implementation, obtaining the surface type of the curved profile specifically includes:

[0016] Obtaining the X-axis value of the first port coordinate and the X-axis value of the second port coordinate of the curved profile, and determining whether the X-axis value of the first port coordinate and the X-axis value of the second port coordinate are equal; if so, determining that the curved surface type of the curved profile is a rib; if not, determining that the curved surface type of the curved profile is a longitudinal bone;

[0017] Obtain the inverse straight line data of the curved profile, and obtain the number of inverse straight lines based on the inverse straight line data. When the number of inverse straight lines is 1, judge that the curved surface type of the curved profile is a longitudinal bone with one inverse straight line. When the number of inverse straight lines is 2, judge that the curved surface type of the curved profile is a longitudinal bone with two inverse straight lines.

[0018] In a possible implementation, translating the processing method of the curved profile according to the curved surface type of the curved profile specifically includes:

[0019] Converting the inverse straight line data into an inverse straight line array, and obtaining the maximum and minimum values ​​of the inverse straight line array;

[0020] Calculating a first difference between the maximum value and the minimum value, and using the first difference as a machining arch height value;

[0021] At the same time, the maximum value position of the inverse straight line array is obtained. When the maximum value position is in the middle position of the curved profile, the processing direction of the curved profile is a positive curve. When the maximum value position is at both ends of the curved profile, the processing direction of the curved profile is a reverse curve.

[0022] In a possible implementation, the profile information of each profile is translated, wherein the profile information includes the grooves and port margins of the two ports of the profile, specifically including:

[0023] Obtaining a first port margin value and a second port margin value of each profile, and determining whether the first port margin value and the second port margin value are within a preset port margin threshold range;

[0024] When the first port margin value is within a preset port margin threshold range, determining whether the first port has a groove, and if so, obtaining a first groove code of the first port;

[0025] Matching the first groove code with the groove list in the groove configuration table, and when the match is successful, obtaining first groove configuration data corresponding to the first groove code in the groove configuration table, wherein the first groove configuration data includes first groove data, first root retention data, and first groove gap data;

[0026] converting the first groove code into a corresponding first port translation result according to the first groove configuration data;

[0027] When the second port margin value is within a preset port margin threshold range, determining whether the second port has a groove, and if so, obtaining a second groove code of the second port;

[0028] Matching the second groove code with the groove list in the groove configuration table, and when the match is successful, obtaining second groove configuration data corresponding to the second groove code in the groove configuration table, wherein the second groove configuration data includes second groove data, second root leave data, and second groove gap data;

[0029] The second groove code is converted into a corresponding second port translation result according to the second groove configuration data.

[0030] In a possible implementation, after obtaining the first groove configuration data corresponding to the first groove code in the groove configuration table, the method further includes:

[0031] It is determined whether the first groove gap data needs to be deducted from the first port margin. If so, the first groove gap data is subtracted from the first port margin value to obtain an updated first port margin value.

[0032] In a possible implementation, after obtaining the second groove configuration data corresponding to the second groove code in the groove configuration table, the method further includes:

[0033] It is determined whether the second groove gap data needs to be deducted from the second port margin. If so, the second groove gap data is subtracted from the second port margin value to obtain an updated second port margin value.

[0034] In a possible implementation, determining whether the profile information is abnormal, and if so, generating first profile information abnormality information, specifically includes:

[0035] Obtaining a first port margin value and a second port margin value of each profile, and determining whether the first port margin value and the second port margin value are within a preset port margin threshold range;

[0036] When the first port margin value is not within a preset port margin threshold range, the first port margin value is considered to be an abnormal value, and first port margin abnormality information is recorded;

[0037] When the second port margin value is not within a preset port margin threshold range, the second port margin value is considered to be an abnormal value, and second port margin abnormality information is recorded.

[0038] In a possible implementation, converting the first groove code into a corresponding first port translation result according to the first groove configuration data specifically includes:

[0039] Determine whether the first groove code is a horizontal welding groove code, and if so, obtain the first port Z coordinate value and the second port Z coordinate value of the profile corresponding to the first groove code;

[0040] Comparing the Z coordinate value of the first port and the Z coordinate value of the second port, when the Z coordinate value of the first port is less than or equal to the Z coordinate value of the second port, obtaining the opening angle corresponding to the first groove code as a first opening angle; when the Z coordinate value of the first port is greater than the Z coordinate value of the second port, obtaining the opening angle corresponding to the first groove code as a second opening angle, wherein the first opening angle is greater than the second opening angle;

[0041] Determining whether the first root length data is less than 0, and when the first root length data is less than 0, obtaining a first plate thickness value of the profile corresponding to the first groove code, and calculating a first actual root length data based on the first plate thickness value and the first root length data;

[0042] The first actual root-retaining data and the opening angle are summarized to obtain a first port translation result corresponding to the first groove code.

[0043] The present invention also provides a profile book translation device, comprising: a profile processing method translation module, a profile information translation module and a translation status judgment module;

[0044] The profile processing method translation module is configured to select a first type of profile set in the profile book, sequentially translate the processing method of each profile in the first type of profile set, determine whether the processing method of each profile is abnormal, and if so, generate first processing method abnormality information;

[0045] The profile information translation module is configured to translate the profile information of each profile, wherein the profile information includes the grooves and port margins of the two ports of the profile, and determine whether the profile information is abnormal. If so, generate first profile information abnormality information;

[0046] The translation status judgment module is used to determine whether the translation of all profiles in the first type of profile set has been completed. If so, a second type of profile set is selected and the second type of profile set is used as the first type of profile set, and the process returns to step: "translating the processing method of each profile in the first type of profile set in turn" until the translation of profiles in all types of profile sets is completed.

[0047] In a possible implementation, the profile booklet translation device provided by the present invention further includes: a groove gap deduction state acquisition module;

[0048] The groove gap deduction status acquisition module is used to obtain the first profile with a groove gap in the set of all types of profiles in the profile book, and obtain the groove gap deduction status of the first profile. When the groove gap deduction status of the first profile is not deducted, the value of the groove gap is deducted from the port margin of the first profile, and the port margin of the first profile is updated.

[0049] In a possible implementation, the profile processing method translation module is configured to translate the processing method of each profile in the first type of profile set, specifically including:

[0050] Determine whether each profile has an inverse straight line, and if so, determine that the profile with the inverse straight line is a curved profile;

[0051] Determine whether the processing code of the curved profile meets the processing code standard. If not, record processing code abnormality information. If yes, obtain the surface type of the curved profile, where the surface type includes ribs, longitudinal bones with one inverted straight line, and longitudinal bones with two inverted straight lines.

[0052] According to the surface type of the curved profile, the processing method of the curved profile is translated.

[0053] In a possible implementation, the profile processing method translation module is used to obtain the surface type of the curved profile, specifically including:

[0054] Obtaining the X-axis value of the first port coordinate and the X-axis value of the second port coordinate of the curved profile, and determining whether the X-axis value of the first port coordinate and the X-axis value of the second port coordinate are equal; if so, determining that the curved surface type of the curved profile is a rib; if not, determining that the curved surface type of the curved profile is a longitudinal bone;

[0055] Obtain the inverse straight line data of the curved profile, and obtain the number of inverse straight lines based on the inverse straight line data. When the number of inverse straight lines is 1, judge that the curved surface type of the curved profile is a longitudinal bone with one inverse straight line. When the number of inverse straight lines is 2, judge that the curved surface type of the curved profile is a longitudinal bone with two inverse straight lines.

[0056] In a possible implementation, the profile processing method translation module is used to translate the processing method of the curved profile according to the surface type of the curved profile, specifically including:

[0057] Converting the inverse straight line data into an inverse straight line array, and obtaining the maximum and minimum values ​​of the inverse straight line array;

[0058] Calculating a first difference between the maximum value and the minimum value, and using the first difference as a machining arch height value;

[0059] At the same time, the maximum value position of the inverse straight line array is obtained. When the maximum value position is in the middle position of the curved profile, the processing direction of the curved profile is a positive curve. When the maximum value position is at both ends of the curved profile, the processing direction of the curved profile is a reverse curve.

[0060] In a possible implementation, the profile information translation module is configured to translate the profile information of each profile, wherein the profile information includes the grooves and port margins of the two ports of the profile, specifically including:

[0061] Obtaining a first port margin value and a second port margin value of each profile, and determining whether the first port margin value and the second port margin value are within a preset port margin threshold range;

[0062] When the first port margin value is within a preset port margin threshold range, determining whether the first port has a groove, and if so, obtaining a first groove code of the first port;

[0063] Matching the first groove code with the groove list in the groove configuration table, and when the match is successful, obtaining first groove configuration data corresponding to the first groove code in the groove configuration table, wherein the first groove configuration data includes first groove data, first root retention data, and first groove gap data;

[0064] converting the first groove code into a corresponding first port translation result according to the first groove configuration data;

[0065] When the second port margin value is within a preset port margin threshold range, determining whether the second port has a groove, and if so, obtaining a second groove code of the second port;

[0066] Matching the second groove code with the groove list in the groove configuration table, and when the match is successful, obtaining second groove configuration data corresponding to the second groove code in the groove configuration table, wherein the second groove configuration data includes second groove data, second root leave data, and second groove gap data;

[0067] The second groove code is converted into a corresponding second port translation result according to the second groove configuration data.

[0068] In a possible implementation, after the profile information translation module is configured to obtain the first groove configuration data corresponding to the first groove code in the groove configuration table, it further includes:

[0069] It is determined whether the first groove gap data needs to be deducted from the first port margin. If so, the first groove gap data is subtracted from the first port margin value to obtain an updated first port margin value.

[0070] In a possible implementation, after the profile information translation module is configured to obtain the second groove configuration data corresponding to the second groove code in the groove configuration table, it further includes:

[0071] It is determined whether the second groove gap data needs to be deducted from the second port margin. If so, the second groove gap data is subtracted from the second port margin value to obtain an updated second port margin value.

[0072] In a possible implementation, the profile information translation module is configured to determine whether the profile information is abnormal, and if so, generate first profile information abnormality information, specifically including:

[0073] Obtaining a first port margin value and a second port margin value of each profile, and determining whether the first port margin value and the second port margin value are within a preset port margin threshold range;

[0074] When the first port margin value is not within a preset port margin threshold range, the first port margin value is considered to be an abnormal value, and first port margin abnormality information is recorded;

[0075] When the second port margin value is not within a preset port margin threshold range, the second port margin value is considered to be an abnormal value, and second port margin abnormality information is recorded.

[0076] In a possible implementation, the profile information translation module is configured to convert the first groove code into a corresponding first port translation result according to the first groove configuration data, specifically including:

[0077] Determine whether the first groove code is a horizontal welding groove code, and if so, obtain the first port Z coordinate value and the second port Z coordinate value of the profile corresponding to the first groove code;

[0078] Comparing the Z coordinate value of the first port and the Z coordinate value of the second port, when the Z coordinate value of the first port is less than or equal to the Z coordinate value of the second port, obtaining the opening angle corresponding to the first groove code as a first opening angle; when the Z coordinate value of the first port is greater than the Z coordinate value of the second port, obtaining the opening angle corresponding to the first groove code as a second opening angle, wherein the first opening angle is greater than the second opening angle;

[0079] Determining whether the first root length data is less than 0, and when the first root length data is less than 0, obtaining a first plate thickness value of the profile corresponding to the first groove code, and calculating a first actual root length data based on the first plate thickness value and the first root length data;

[0080] The first actual root-retaining data and the opening angle are summarized to obtain a first port translation result corresponding to the first groove code.

[0081] The present invention also provides a terminal device, comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor implements the profile book translation method as described in any one of the above when executing the computer program.

[0082] The present invention also provides a computer-readable storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the profile book translation method as described in any one of the above.

[0083] The profile booklet translation method, device, equipment, and storage medium of the embodiments of the present invention have the following advantages compared with the prior art:

[0084] First, the processing method of each profile of the first type of profile set in the selected profile book is translated in turn, and for each profile with abnormal processing method, the abnormal information is summarized to generate first processing method abnormal information; then the profile information of each profile is translated in turn, and for each profile with abnormal profile information, the abnormal information is summarized to generate first profile information abnormal information; and by judging whether all profiles in the first type of profile set have been translated, if so, the second type of profile set is selected, and the second type of profile is translated according to the translation steps in the first type of profile set, until the translation of the profiles of all types of profile sets is completed. Compared with the existing technology, the technical solution of the present application can improve the efficiency of profile book translation and reduce the errors caused by manual translation. BRIEF DESCRIPTION OF THE DRAWINGS

[0085] Figure 1 This is a flow chart of an embodiment of a method for translating a profile booklet provided by the present invention;

[0086] Figure 2 It is a structural schematic diagram of an embodiment of a profile book translation device provided by the present invention;

[0087] Figure 3 It is a schematic diagram of the groove configuration of an embodiment provided by the present invention. DETAILED DESCRIPTION

[0088] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. 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 making any creative efforts shall fall within the scope of protection of the present invention.

[0089] Example 1

[0090] See also Figure 1 , Figure 1 FIG. 1 is a flow chart of an embodiment of a method for translating a profile booklet provided by the present invention. Figure 1 As shown, the method includes steps 101 to 103, which are specifically as follows:

[0091] Step 101: Select a first type of profile set in a profile book, translate the processing method of each profile in the first type of profile set in turn, determine whether the processing method of each profile is abnormal, and if so, generate first processing method abnormality information.

[0092] In one embodiment, since some profiles may have bevel gaps, and the bevel gaps of the profiles need to be deducted from the corresponding profile port margins, before selecting the first type of profile set in the profile book, it is also necessary to obtain the first profile with a bevel gap in all types of profile sets in the profile book, and obtain the bevel gap deduction status of the first profile; when the bevel gap deduction status of the first profile is not deducted, the user selects whether to deduct the value of the bevel gap from the port margin of the first profile, and update the port margin of the first profile.

[0093] In one embodiment, when selecting a first type of profile set in a profile book, since there are multiple profiles in the first type of profile set, the multiple profiles in the first type of profile set are numbered, and the processing method of each profile in the first type of profile set is translated in sequence according to the numbering order.

[0094] In one embodiment, the processing method of the first profile is first translated to determine whether it has an inverse straight line. If so, the first profile is determined to be a curved profile. If not, the first profile is determined to be non-curved and processing method translation is not required for the first profile. A second profile is then selected to determine whether it has an inverse straight line. This is because only curved profiles with inverse straight lines need to have their corresponding processing method calculated, while non-curved profiles do not require processing method translation.

[0095] In one embodiment, when it is determined that the first profile is a curved profile, the processing code of the curved profile is obtained, and it is determined whether the processing code meets the processing code standard. If not, the processing code is considered incorrect, the abnormal processing code information is recorded, and the translation of the processing method for the first profile is terminated. If so, the processing code is considered correct, and the surface type of the curved profile is further obtained, wherein the curved surface type includes ribs, longitudinal bones with one inverted straight line, and longitudinal bones with two inverted straight lines.

[0096] In one embodiment, the surface type of the curved profile is obtained by obtaining the X-axis value of the first port coordinate and the X-axis value of the second port coordinate of the curved profile, and determining whether the X-axis value of the first port coordinate and the X-axis value of the second port coordinate are equal. If so, the surface type of the curved profile is determined to be a rib; if not, the surface type of the curved profile is determined to be a longitudinal bone.

[0097] In one embodiment, the inverse straight line data of the curved profile is obtained, and the number of inverse straight lines is obtained based on the inverse straight line data. When the number of inverse straight lines is 1, the curved surface type of the curved profile is judged to be a longitudinal bone with one inverse straight line. When the number of inverse straight lines is 2, the curved surface type of the curved profile is judged to be a longitudinal bone with two inverse straight lines.

[0098] In one embodiment, after obtaining the surface type of the curved profile, the processing method of the curved profile is translated according to the surface type of the curved profile. Specifically, the processing methods are rib cold bending, positive or negative curvature processing, and spray processing; among them, when the processing method is positive or negative curvature processing, the processing arch height value and processing direction need to be calculated separately.

[0099] In one embodiment, for the calculation of the processing arch height value and the processing direction, specifically, the inverse straight line data of the curved profile are sorted according to the numerical value so that the inverse straight line data is converted into an inverse straight line array, and the maximum and minimum values ​​of the inverse straight line array are obtained; the first difference between the maximum value and the minimum value is calculated, and the first difference is used as the processing arch height value.

[0100] In one embodiment, the maximum value position of the inverse straight line array is also obtained. When the maximum value position is in the middle position of the curved profile, the processing direction of the curved profile is a positive curve. When the maximum value position is at both ends of the curved profile, the processing direction of the curved profile is a reverse curve.

[0101] In one embodiment, after the processing mode translation of the first type of profile set is completed, the processing mode exception information appearing in the first type of profile set is summarized and integrated into the first type of profile processing mode exception information.

[0102] Step 102: Translate the profile information of each profile, wherein the profile information includes the grooves and port margins of the two ends of the profile, and determine whether the profile information is abnormal. If so, generate first profile information abnormality information.

[0103] In one embodiment, the profile information of the first profile in the first type of profile set is translated, wherein the profile information includes the grooves and port margins of two ports of the profile.

[0104] In one embodiment, a first port margin value of a first profile is obtained, and it is determined whether the first port margin value is within a preset port margin threshold range; preferably, in this embodiment, the preset port margin threshold range is set to -5 to 50.

[0105] In one embodiment, when the first port margin value is not within a preset port margin threshold range, the first port margin value is considered to be an abnormal value, first port margin abnormality information is recorded, and the profile information translation of the first port of the first profile is terminated.

[0106] In one embodiment, when the margin value of the first port is within a preset port margin threshold range, it is determined whether the first port has a groove, and if so, a first groove code of the first port is obtained; the first groove code is matched with a groove list in a groove configuration table, and when the match is successful, the first groove configuration data corresponding to the first groove code in the groove configuration table is obtained, wherein the first groove configuration data includes first groove data, first root data and first groove gap data; according to the first groove configuration data, the first groove code is converted into a corresponding first port translation result; wherein, a schematic diagram of the groove configuration table is shown as follows Figure 3 shown.

[0107] In one embodiment, when the first groove code fails to match the groove list in the groove configuration table, the first port margin abnormality information is also recorded, and the profile information translation of the first port of the first profile is terminated.

[0108] In one embodiment, the first groove code is converted into a corresponding first port translation result according to the first groove configuration data; specifically, it is determined whether the first groove code is a horizontal welding groove code, and if so, the first port Z coordinate value and the second port Z coordinate value of the profile corresponding to the first groove code are obtained; the first port Z coordinate value and the second port Z coordinate value are compared, and when the first port Z coordinate value is less than or equal to the second port Z coordinate value, the opening angle corresponding to the first groove code is obtained as the first opening angle, and when the first port Z coordinate value is greater than the second port Z coordinate value, the opening angle corresponding to the first groove code is obtained as the second opening angle, wherein the first opening angle is greater than the second opening angle; it is determined whether the first root retention data is less than 0, and when the first root retention data is less than 0, the first plate thickness value of the profile corresponding to the first groove code is obtained, and the first actual root retention data is calculated according to the first plate thickness value and the first root retention data; the first actual root retention data and the opening angle are summarized to obtain the first port translation result corresponding to the first groove code.

[0109] In one embodiment, based on the user's selection in step 101 , whether the groove gap value needs to be deducted from the port margin of the first profile is determined, and the port margin of the first profile is updated.

[0110] In one embodiment, when it is necessary to deduct the value of the groove gap from the port margin of the first profile and update the port margin of the first profile, it is necessary to obtain the first groove gap data in the groove configuration table, subtract the first groove gap data from the first port margin value of the first port, and obtain the updated first port margin value of the first port.

[0111] Preferably, if the user chooses not to deduct the groove gap value from the port margin of the first profile, the first port margin value of the first port is not updated.

[0112] In one embodiment, after completing the translation of the profile information of the first port of the first profile, the margin value of the second port of the first profile is obtained, and the profile information of the second port is translated according to the above-mentioned translation process of the profile information of the first port.

[0113] Specifically, determine whether the second port margin value is within a preset port margin threshold range; when the second port margin value is not within the preset port margin threshold range, consider the second port margin value to be an abnormal value, record the second port margin abnormality information, and end the profile information translation of the second port of the first profile.

[0114] Specifically, when the second port margin value is within the preset port margin threshold range, determine whether the second port has a groove, and if so, obtain the second groove code of the second port; match the second groove code with the groove list in the groove configuration table, and when the match is successful, obtain the second groove configuration data corresponding to the second groove code in the groove configuration table, wherein the second groove configuration data includes second groove data, second root retention data and second groove gap data; according to the second groove configuration data, convert the second groove code into the corresponding second port translation result.

[0115] Specifically, when the second groove code fails to match the groove list in the groove configuration table, the second port margin abnormality information is also recorded, and the profile information translation of the second port of the first profile is terminated.

[0116] In one embodiment, the second groove code is converted into a corresponding second port translation result according to the second groove configuration data; specifically, it is determined whether the second groove code is a horizontal welding groove code, and if so, the first port Z coordinate value and the second port Z coordinate value of the profile corresponding to the second groove code are obtained; the first port Z coordinate value and the second port Z coordinate value are compared, and when the first port Z coordinate value is less than or equal to the second port Z coordinate value, the opening angle corresponding to the second groove code is obtained as the first opening angle, and when the first port Z coordinate value is greater than the second port Z coordinate value, the opening angle corresponding to the first groove code is obtained as the second opening angle, wherein the first opening angle is greater than the second opening angle; it is determined whether the second root retention data is less than 0, and when the second root retention data is less than 0, the first plate thickness value of the profile corresponding to the second groove code is obtained, and the second actual root retention data is calculated according to the first plate thickness value and the second root retention data; the second actual root retention data and the opening angle are summarized to obtain the second port translation result corresponding to the second groove code.

[0117] In one embodiment, when it is necessary to deduct the value of the groove gap from the port margin of the first profile and update the port margin of the first profile, it is necessary to obtain the second groove gap data in the groove configuration table, subtract the second groove gap data from the second port margin value of the second port, and obtain the updated second port margin value of the second port.

[0118] Preferably, if the user chooses not to deduct the groove gap value from the port margin of the first profile, the second port margin value of the second port is not updated.

[0119] In one embodiment, it is determined whether the first port and the second port of the first profile have completed the translation of the profile information. If so, the second profile in the first type of profile set is selected, and the profile information of the second profile is translated based on the profile information translation process of the first profile.

[0120] Step 103: Determine whether the translation of all profiles in the first type of profile set has been completed. If so, select a second type of profile set and use the second type of profile set as the first type of profile set. Return to step 103: "Translate the processing method of each profile in the first type of profile set in turn" until the profile translation of all types of profile sets is completed.

[0121] In one embodiment, it is determined whether the processing method translation has been completed for each profile in the first type of profiles. If so, the next type of profile set is selected and the processing method translation is performed on the next type of profile set.

[0122] In one embodiment, it is determined whether the profile information translation has been completed for each profile in the first type of profiles. If so, the next type of profile set is selected and the profile information translation is performed on the next type of profile set.

[0123] In one embodiment, when translating a profile book, in order to clearly understand the current translation progress, it is necessary to translate the profile collection category by category to avoid translation confusion or missing translations.

[0124] In one embodiment, after the processing mode translation is completed for all types of profile sets, profile processing exception information corresponding to all types of profile sets is summarized to generate final processing mode exception information.

[0125] In one embodiment, after the profile information translation is completed for all profile sets, profile information exception information corresponding to all profile sets is summarized to generate final profile information exception information.

[0126] In one embodiment, the final processing method abnormal information and the final profile information abnormal information are summarized and processed to form a profile book abnormality report.

[0127] In one embodiment, when forming a profile book exception report, it is determined whether an exception report already exists in the profile book. If not, an exception report template is obtained, and the final processing method exception information and the final profile information exception information are correspondingly input into the exception report template to form a profile book exception report. If so, an exception report is obtained, and the final processing method exception information and the final profile information exception information are correspondingly filled into the exception column of the exception report to form a new profile book exception report.

[0128] Example 2

[0129] See also Figure 2 , Figure 2 FIG. 1 is a structural diagram of an embodiment of a translation device for a profile book provided by the present invention, as shown in FIG. Figure 2 As shown, the method includes a profile processing method translation module 201, a profile information translation module 202 and a translation status judgment module 203, which are specifically as follows:

[0130] The profile processing method translation module 201 is used to select a first type of profile set in the profile book, translate the processing method of each profile in the first type of profile set in turn, and determine whether there is an abnormality in the processing method of each profile. If so, generate first processing method abnormality information.

[0131] The profile information translation module 202 is used to translate the profile information of each profile, wherein the profile information includes the groove and port margin of the two ports of the profile, and determine whether the profile information is abnormal. If so, generate first profile information abnormality information.

[0132] The translation status determination module 203 is configured to determine whether the translation of all profiles in the first type of profile set has been completed. If so, a second type of profile set is selected and used as the first type of profile set, and the process returns to step 100: "translating the processing method of each profile in the first type of profile set in turn" until the translation of profiles in all types of profile sets is completed.

[0133] In one embodiment, a profile translation device provided by an embodiment of the present invention further includes: a groove gap deduction status acquisition module; wherein the groove gap deduction status acquisition module is used to obtain a first profile having a groove gap in a set of all types of profiles in a profile book, and obtain the groove gap deduction status of the first profile. When the groove gap deduction status of the first profile is not deducted, the value of the groove gap is deducted from the port margin of the first profile, and the port margin of the first profile is updated.

[0134] In one embodiment, the profile processing method translation module 201 is used to translate the processing method of each profile in the first type of profile set; specifically, determine whether each profile has a reverse straight line, and if so, determine that the profile with the reverse straight line is a curved profile; determine whether the processing code of the curved profile meets the processing code standard, and if not, record the processing code abnormality information; if so, obtain the surface type of the curved profile, wherein the surface type includes ribs, longitudinal bones with one reverse straight line, and longitudinal bones with two reverse straight lines; according to the surface type of the curved profile, translate the processing method of the curved profile.

[0135] In one embodiment, the profile processing method translation module 201 is used to obtain the surface type of the curved profile; specifically, obtain the X-axis value of the first port coordinate and the X-axis value of the second port coordinate of the curved profile, and determine whether the X-axis value of the first port coordinate and the X-axis value of the second port coordinate are equal. If so, the surface type of the curved profile is determined to be a rib; if not, the surface type of the curved profile is determined to be a longitudinal bone; obtain the inverse straight line data of the curved profile, and obtain the number of inverse straight lines based on the inverse straight line data. When the number of inverse straight lines is 1, the surface type of the curved profile is determined to be a longitudinal bone with one inverse straight line. When the number of inverse straight lines is 2, the surface type of the curved profile is determined to be a longitudinal bone with two inverse straight lines.

[0136] In one embodiment, the profile processing method translation module 201 is used to translate the processing method of the curved profile according to the surface type of the curved profile; specifically, the inverse straight line data is converted into an inverse straight line array, and the maximum and minimum values ​​of the inverse straight line array are obtained; the first difference between the maximum value and the minimum value is calculated, and the first difference is used as the processing arch height value; at the same time, the maximum value position of the inverse straight line array is obtained, when the maximum value position is in the middle position of the curved profile, the processing direction of the curved profile is a positive curve, and when the maximum value position is at the two end positions of the curved profile, the processing reverse direction of the curved profile is a reverse curve.

[0137] In one embodiment, the profile information translation module 202 is used to translate the profile information of each profile, wherein the profile information includes the groove and port margin of the two ports of the profile; specifically, the first port margin value and the second port margin value of each profile are obtained, and the first port margin value and the second port margin value are respectively judged whether they are within the preset port margin threshold range; when the first port margin value is within the preset port margin threshold range, it is judged whether the first port has a groove, and if so, the first groove code of the first port is obtained; the first groove code is matched with the groove list in the groove configuration table, and when the match is successful, the first groove configuration data corresponding to the first groove code in the groove configuration table is obtained, wherein the first groove configuration The configuration data includes first groove data, first root retention data and first groove gap data; according to the first groove configuration data, the first groove code is converted into the corresponding first port translation result; when the second port margin value is within the preset port margin threshold value, it is determined whether the second port has a groove, and if so, the second groove code of the second port is obtained; the second groove code is matched with the groove list in the groove configuration table, and when the match is successful, the second groove configuration data corresponding to the second groove code in the groove configuration table is obtained, wherein the second groove configuration data includes second groove data, second root retention data and second groove gap data; according to the second groove configuration data, the second groove code is converted into the corresponding second port translation result.

[0138] In one embodiment, the profile information translation module 202 is used to obtain the first groove configuration data corresponding to the first groove code in the groove configuration table; it is also used to determine whether the first groove gap data needs to be deducted from the first port margin. If so, the first groove gap data is subtracted from the first port margin value to obtain an updated first port margin value.

[0139] In one embodiment, the profile information translation module 202 is used to obtain the second groove configuration data corresponding to the second groove code in the groove configuration table, and is also used to determine whether the second groove gap data needs to be deducted from the second port margin. If so, the second port margin value is subtracted from the second groove gap data to obtain an updated second port margin value.

[0140] In one embodiment, the profile information translation module 202 is used to determine whether the profile information is abnormal, and if so, generate first profile information abnormality information; specifically, obtain the first port margin value and the second port margin value of each profile, and respectively determine whether the first port margin value and the second port margin value are within a preset port margin threshold range; when the first port margin value is not within the preset port margin threshold range, the first port margin value is considered to be an abnormal value, and the first port margin abnormality information is recorded; when the second port margin value is not within the preset port margin threshold range, the second port margin value is considered to be an abnormal value, and the second port margin abnormality information is recorded.

[0141] In one embodiment, the profile information translation module 202 is used to convert the first groove code into a corresponding first port translation result based on the first groove configuration data; specifically, determine whether the first groove code is a horizontal welding groove code, and if so, obtain the first port Z coordinate value and the second port Z coordinate value of the profile corresponding to the first groove code; compare the first port Z coordinate value and the second port Z coordinate value, and when the first port Z coordinate value is less than or equal to the second port Z coordinate value, obtain the opening angle corresponding to the first groove code as the first opening angle, and when the first port Z coordinate value is greater than the second port Z coordinate value, obtain the opening angle corresponding to the first groove code as the second opening angle, wherein the first opening angle is greater than the second opening angle; determine whether the first root retention data is less than 0, and when the first root retention data is less than 0, obtain the first plate thickness value of the profile corresponding to the first groove code, and calculate the first actual root retention data based on the first plate thickness value and the first root retention data; summarize the first actual root retention data and the opening angle to obtain the first port translation result corresponding to the first groove code.

[0142] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working process of the device described above can refer to the corresponding process in the aforementioned method embodiment and will not be repeated here.

[0143] It should be noted that the above-described embodiment of the profile book translation device is merely illustrative, wherein the modules described as separate components may or may not be physically separate, and the components shown as modules may or may not be physical units, i.e., they may be located in one place or distributed across multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of this embodiment.

[0144] Based on the above-mentioned embodiment of the profile book translation method, another embodiment of the present invention provides a profile book translation terminal device, which includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, the profile book translation method of any embodiment of the present invention is implemented.

[0145] For example, in this embodiment, the computer program may be divided into one or more modules, which are stored in the memory and executed by the processor to implement the present invention. The one or more modules may be a series of computer program instruction segments capable of performing specific functions, and the instruction segments are used to describe the execution process of the computer program in the translation terminal device of the profile book.

[0146] The translation terminal device of the profile book can be a computing device such as a desktop computer, a notebook, a palmtop computer, a cloud server, etc. The translation terminal device of the profile book can include, but is not limited to, a processor and a memory.

[0147] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the translation terminal device of the profile book, and connects various parts of the translation terminal device of the profile book using various interfaces and lines.

[0148] The memory can be used to store the computer programs and / or modules, and the processor implements various functions of the translation terminal device of the profile book by running or executing the computer programs and / or modules stored in the memory and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function, etc.; the data storage area can store data created based on the use of the mobile phone, etc. In addition, the memory can include a high-speed random access memory and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage device.

[0149] Based on the above-mentioned embodiment of the profile book translation method, another embodiment of the present invention provides a storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the storage medium is located is controlled to execute the profile book translation method of any embodiment of the present invention.

[0150] In this embodiment, the storage medium is a computer-readable storage medium, and the computer program includes computer program code, which may be in source code form, object code form, executable file, or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal, and software distribution medium. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0151] In summary, the present invention provides a translation method, device, equipment and storage medium for a profile book, which selects a first type of profile set in the profile book, translates the processing method of each profile in the first type of profile set in turn, determines whether the processing method of each profile is abnormal, and if so, generates first processing method abnormality information; translates the profile information of each profile, determines whether the profile information is abnormal, and if so, generates first profile information abnormality information; determines whether all profiles in the first type of profile set have been translated, and if so, selects a second type of profile set, and uses the second type of profile set as the first type of profile set, and returns to the step: "translate the processing method of each profile in the first type of profile set in turn" until the profile translation of all types of profile sets is completed. Compared with the prior art, the technical solution of the present application can improve the efficiency of profile book translation and reduce errors caused by manual translation.

[0152] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and substitutions can be made without departing from the technical principles of the present invention. These improvements and substitutions should also be regarded as the scope of protection of the present invention.

Claims

1. A method for translating a profile booklet, characterized in that: include: Select the first type of profile set in the profile book, translate the processing method of each profile in the first type of profile set in turn, and judge whether there is any abnormality in the processing method of each profile. If so, generate first processing method abnormality information; wherein, translating the processing method of each profile in the first type of profile set specifically includes: judging whether there is a reverse straight line in each profile, and if so, judging that the profile with the reverse straight line is a curved profile; judging whether the processing code of the curved profile meets the processing code standard, and if not, record the processing code abnormality information, and if so, obtain the surface type of the curved profile, wherein the surface type includes ribs, a longitudinal bone with one inverse straight line and a longitudinal bone with two inverse straight lines; translating the processing mode of the curved profile according to the surface type of the curved profile, specifically comprising: converting the inverse straight line data into an inverse straight line array, obtaining the maximum value and the minimum value of the inverse straight line array; calculating a first difference between the maximum value and the minimum value, and using the first difference as a processing arch height value; and simultaneously obtaining the maximum value position of the inverse straight line array, when the maximum value position is in the middle position of the curved profile, the processing direction of the curved profile is a positive curve, and when the maximum value position is at both ends of the curved profile, the processing direction of the curved profile is a reverse curve; At the same time, the profile information of each profile is translated, wherein the profile information includes the grooves and port margins of the two ports of the profile, and whether the profile information is abnormal is determined. If so, first profile information abnormality information is generated; Determine whether translation of all profiles in the first type of profile set has been completed. If so, select a second type of profile set and use the second type of profile set as the first type of profile set. Return to step: "translate the processing method of each profile in the first type of profile set in sequence" until profile translation for all types of profile sets is completed.

2. A method for translating a profile booklet according to claim 1, characterized in that: Before selecting the first type of profile collection in the profile book, it also includes: Obtaining a first profile having a groove gap from a set of all profile types in the profile book, and obtaining a groove gap deduction status of the first profile; When the groove gap deduction state of the first profile is not deducted, the value of the groove gap is deducted from the port margin of the first profile, and the port margin of the first profile is updated.

3. The method for translating a profile booklet according to claim 1, wherein: Obtain the surface type of the curved profile, specifically including: Obtaining the X-axis value of the first port coordinate and the X-axis value of the second port coordinate of the curved profile, and determining whether the X-axis value of the first port coordinate and the X-axis value of the second port coordinate are equal; if so, determining that the curved surface type of the curved profile is a rib; if not, determining that the curved surface type of the curved profile is a longitudinal bone; Obtain the inverse straight line data of the curved profile, and obtain the number of inverse straight lines based on the inverse straight line data. When the number of inverse straight lines is 1, judge that the curved surface type of the curved profile is a longitudinal bone with one inverse straight line. When the number of inverse straight lines is 2, judge that the curved surface type of the curved profile is a longitudinal bone with two inverse straight lines.

4. The method for translating a profile booklet according to claim 1, wherein: Translate the profile information of each profile, wherein the profile information includes the grooves and port margins of the two ports of the profile, specifically including: Obtaining a first port margin value and a second port margin value of each profile, and determining whether the first port margin value and the second port margin value are within a preset port margin threshold range; When the first port margin value is within a preset port margin threshold range, determining whether the first port has a groove, and if so, obtaining a first groove code of the first port; Matching the first groove code with the groove list in the groove configuration table, and when the match is successful, obtaining first groove configuration data corresponding to the first groove code in the groove configuration table, wherein the first groove configuration data includes first groove data, first root retention data, and first groove gap data; converting the first groove code into a corresponding first port translation result according to the first groove configuration data; When the second port margin value is within a preset port margin threshold range, determining whether the second port has a groove, and if so, obtaining a second groove code of the second port; Matching the second groove code with the groove list in the groove configuration table, and when the match is successful, obtaining second groove configuration data corresponding to the second groove code in the groove configuration table, wherein the second groove configuration data includes second groove data, second root leave data, and second groove gap data; The second groove code is converted into a corresponding second port translation result according to the second groove configuration data.

5. A method for translating a profile booklet according to claim 4, characterized in that: After obtaining the first groove configuration data corresponding to the first groove code in the groove configuration table, the method further includes: It is determined whether the first groove gap data needs to be deducted from the first port margin. If so, the first groove gap data is subtracted from the first port margin value to obtain an updated first port margin value.

6. A method for translating a profile booklet according to claim 4, characterized in that: After obtaining the second groove configuration data corresponding to the second groove code in the groove configuration table, the method further includes: It is determined whether the second groove gap data needs to be deducted from the second port margin. If so, the second groove gap data is subtracted from the second port margin value to obtain an updated second port margin value.

7. The method for translating a profile booklet according to claim 1, wherein: Determine whether the profile information is abnormal. If so, generate first profile information abnormality information, specifically including: Obtaining a first port margin value and a second port margin value of each profile, and determining whether the first port margin value and the second port margin value are within a preset port margin threshold range; When the first port margin value is not within a preset port margin threshold range, the first port margin value is considered to be an abnormal value, and first port margin abnormality information is recorded; When the second port margin value is not within a preset port margin threshold range, the second port margin value is considered to be an abnormal value, and second port margin abnormality information is recorded.

8. The method for translating a profile booklet according to claim 4, wherein: According to the first groove configuration data, converting the first groove code into a corresponding first port translation result specifically includes: Determine whether the first groove code is a horizontal welding groove code, and if so, obtain the first port Z coordinate value and the second port Z coordinate value of the profile corresponding to the first groove code; Comparing the Z coordinate value of the first port and the Z coordinate value of the second port, when the Z coordinate value of the first port is less than or equal to the Z coordinate value of the second port, obtaining the opening angle corresponding to the first groove code as a first opening angle; when the Z coordinate value of the first port is greater than the Z coordinate value of the second port, obtaining the opening angle corresponding to the first groove code as a second opening angle, wherein the first opening angle is greater than the second opening angle; Determining whether the first root length data is less than 0, and when the first root length data is less than 0, obtaining a first plate thickness value of the profile corresponding to the first groove code, and calculating a first actual root length data based on the first plate thickness value and the first root length data; The first actual root-retaining data and the opening angle are summarized to obtain a first port translation result corresponding to the first groove code.

9. A translation device for a profile booklet, characterized in that: include: Profile processing method translation module, profile information translation module and translation status judgment module; Wherein, the profile processing method translation module is used to select the first type of profile set in the profile book, translate the processing method of each profile in the first type of profile set in turn, and judge whether there is any abnormality in the processing method of each profile. If so, generate first processing method abnormality information; wherein, the processing method of each profile in the first type of profile set is translated, specifically including: judging whether there is a reverse straight line in each profile, and if so, judging that the profile with the reverse straight line is a curved profile; judging whether the processing code of the curved profile meets the processing code standard, and if not, record the processing code abnormality information, and if so, obtain the surface type of the curved profile, wherein the curved Types include ribs, longitudinal bones with one inverse straight line, and longitudinal bones with two inverse straight lines; according to the surface type of the curved profile, the processing method of the curved profile is translated, specifically including: converting the inverse straight line data into an inverse straight line array, obtaining the maximum value and the minimum value of the inverse straight line array; calculating a first difference between the maximum value and the minimum value, and using the first difference as a processing arch height value; and simultaneously obtaining the maximum value position of the inverse straight line array. When the maximum value position is in the middle position of the curved profile, the processing direction of the curved profile is positive curvature. When the maximum value position is at both ends of the curved profile, the processing direction of the curved profile is reverse curvature. The profile information translation module is configured to translate the profile information of each profile, wherein the profile information includes the grooves and port margins of the two ports of the profile, and determine whether the profile information is abnormal. If so, generate first profile information abnormality information; The translation status determination module is configured to determine whether translation of all profiles in the first type of profile set has been completed. If so, a second type of profile set is selected and used as the first type of profile set, and the process returns to step 100 of sequentially translating the processing method of each profile in the first type of profile set until translation of profiles in all types of profile sets is completed.

10. A terminal device, characterized in that: The method comprises a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, the method for translating a profile booklet according to any one of claims 1 to 8 is implemented.

11. A computer-readable storage medium, characterized in that The computer-readable storage medium includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the profile booklet translation method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Sectional material machining device

    CN108673152A

  • Profile defect detection method and device, electronic equipment and storage medium

    CN114720499A