Hull curved surface type value batch extraction and verification method

By creating a two-dimensional graph of type lines and using the VBA program to extract type values ​​in batches, the problem of extracting and verification of type values ​​after the hull surface is smooth, batch extraction and verification are realized, which reduces the workload and improves the accuracy of type value comparison table.

CN119885535APending Publication Date: 2025-04-25BOHAI SHIPYARD GROUP CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411687796.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-25
Publication Date
2025-04-25

AI Technical Summary

Technical Problem

In the prior art, after the hull surface is smooth, the construction factory needs to extract the type lines from the smooth surface and batch output the type values. However, due to the problem of model value positioning and coordinate system, it is difficult to achieve batch extraction and verification, resulting in huge workload and easy errors.

Method used

By creating a two-dimensional pattern from the smooth surface, exporting it to AutoCAD, and using the VBA program to extract the type values ​​in batches and outputting them to the type value comparison table, completing the comparison of the type values ​​provided by the design institute with the smooth model values, and intuitively viewing the change trend of the difference.

Benefits of technology

The batch extraction and verification of the hull surface type values ​​is realized, the workload is reduced, the accuracy of the type value comparison table is improved, and the speed and accuracy of type value extraction and entry are ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119885535A_ABST
    Figure CN119885535A_ABST
Patent Text Reader

Abstract

The invention provides a batch extraction and verification method for ship body curved surface type values. A molded line two-dimensional graph needing to be verified is sectioned from the smoothed curved surface, the two-dimensional graph keeps a link relation with the curved surface model, and the two-dimensional graph and the curved surface keep real-time updating; exporting the two-dimensional diagram into AutoCAD, and extracting type value coordinates in batches according to type value positioning provided by a design institute by utilizing VBA programming; outputting the data to an Excel table of a type value comparison table, comparing a type value provided by a design institute with a type value after fairing, visually checking a difference value change trend, and judging whether the type value after fairing meets the technical requirements of molded line lofting inspection and acceptance; the method comprises the following steps: creating a molded line two-dimensional diagram; the AutoCAD is exported, and the UCS is established; the VBA program extracts type values in batches; and outputting to a type value comparison table, and checking. Molded lines are extracted from the smoothed curved surface, molded values are output in batches, data of a molded value comparison table are accurate and easy to check, and the method is suitable for being applied to curved surface type value batch extraction and verification.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the smoothing of ship lines, and in particular to a method for batch extraction and verification of hull curved surface values. Background Art

[0002] In the shipbuilding field, the line drawings and value tables of the main hull surface and the appendage surface are usually provided by the design institute, and the construction plant performs three-way smoothing by computer. After the smoothing is completed by the general assembly plant, the design institute and the third-party supervision unit will form an acceptance team to accept the smoothed surface. In addition to providing the smoothed surface, the construction plant is also required to issue a value comparison table to compare the difference trend between the design value and the smoothed value as an attachment for acceptance. The acceptance team accepts the smoothed surface according to the technical requirements for line lofting inspection and acceptance.

[0003] However, the inventors of this application found that the above technology has at least the following technical problems in the process of implementing the technical solution of the invention in the embodiment of this application: When the construction plant issues a type value comparison table, the computer needs to locate the type value provided by the design institute, extract the type line from the smoothed surface, and manually measure each point to output the corresponding type value coordinates, and enter them into the type value comparison table. Since the extracted type line is a smoothed curve, the coordinates of its control points are no longer the type value positioning provided by the design institute, and the type value provided by the design institute defines the type value coordinate system based on the starting point of the type line itself, it is difficult to batch output the corresponding type value coordinates according to the type value positioning.

[0004] The design institute provides a large number of type value point coordinates, and the construction plant has a huge workload to issue a type value comparison table. Moreover, the difference in the type value comparison table after smoothing may exceed the technical requirements for type line layout inspection and acceptance. It is necessary to smoothen it again and output the type value comparison table again, which directly doubles the workload. Furthermore, manually filling in the type value comparison table is prone to input errors and difficult to self-check.

[0005] The construction plant needs to extract the type lines from the smoothed surfaces and output the type values ​​in batches. This requires not only the accuracy of the type value comparison table, but also the link between the extracted type lines and the smoothed surfaces, and real-time updates to reduce the workload of type value extraction and entry, and improve the accuracy of the type value comparison table. This requires a method for batch extraction and verification of hull surface type values, which can quickly extract the appendage surface type values ​​and conduct rapid comparison and inspection. Summary of the invention

[0006] In order to solve the deficiencies in the prior art, the present application provides a method for batch extraction and verification of hull surface type values, aiming at the problem of extracting the type values ​​of the ship's main body and appendage surfaces after smoothing and comparing and verifying them with the design type value table. The method creates a two-dimensional line drawing from the hull surface, exports it to AutoCAD, establishes UCS, uses a VBA program to batch extract type values, outputs them to the type value comparison table, and completes the verification, thereby solving the technical problem of batch extraction and verification of hull surface type values.

[0007] The solution adopted by the embodiment of the present application to solve the technical problem is: A method for batch extraction and verification of hull surface form values ​​comprises the following steps: cutting out a two-dimensional drawing of a form line to be verified from a smoothed surface, wherein the two-dimensional drawing maintains a link relationship with a surface model, so that the two-dimensional drawing and the surface are updated in real time; exporting the two-dimensional drawing to AutoCAD, and using VBA programming to realize batch extraction of form value coordinates according to form values ​​provided by a design institute; outputting the result to an Excel form of a form value comparison table, completing a comparison between the form values ​​provided by the design institute and the form values ​​after smoothing, visually viewing a trend of difference changes, and judging whether the form values ​​after smoothing meet the technical requirements for form line lofting inspection and acceptance; and comprising the following steps: Step 1: Create a two-dimensional drawing of the profile; Use CATIA to open the smoothed hull surface, create a Drawing engineering drawing, establish the front view of the hull surface, and locate and cut out the two-dimensional line drawing that needs to be verified from the front view according to the line drawing and line value table provided by the design institute. The two-dimensional drawing maintains a link relationship with the surface model, so that the two-dimensional drawing and the surface can be updated in real time; Step 2: Export to AutoCAD and create UCS; Export the two-dimensional drawing of the type line to AutoCAD, and establish the two-dimensional drawing UCS of the type line according to the type value positioning provided by the design institute, which is consistent with the positioning requirements of the type value table; Step 3: VBA program batch extract type values; Use the VBA manager that comes with AutoCAD software to realize batch extraction of type value coordinates according to the type value positioning provided by the design institute; Step 4: Output to the type value comparison table and verify.

[0008] In order to further solve the technical problem to be solved by the present invention, in a method for batch extraction and verification of hull surface values ​​provided by the present invention, in step three, the program algorithm is as follows: (1) Construct a new selection set, select entities of the line 2D graph from the screen, set filtering conditions, and store the obtained spline, arc, straight line, polyline, and ellipse entities in the selection set; (2) Using the model positioning values ​​provided by the design institute as the X-coordinates, construct the Y-rays respectively; (3) Traverse the entities in the selection set and determine whether the ray in the Y direction intersects with the entity. If so, record the Y coordinate value of the intersection and append a space character as a separator. Repeat (2) and (3) until all X-coordinates have been cycled through, and output the Y-coordinate values ​​of all intersection points in sequence.

[0009] Furthermore, in the step four, the Y coordinate values ​​of all intersections are pasted into the first column of the "Type Value Coordinates" row of the smoothed surface in the type value comparison table, and a space is selected as a separator to process the data in columns; the formula is edited in the "Difference △d" row, and the value of the "Type Value Coordinates" row of the smoothed surface is subtracted from the value of the "Type Value Coordinates" row of the type value table to complete the comparison between the type value provided by the design institute and the type value after smoothing, and the trend of the difference change is visually viewed to determine whether the type value difference △d exceeds the technical requirements for type line layout inspection and acceptance, and the type value verification is completed.

[0010] Positive effects: The technical solution provided in the embodiments of the present application has at least the following technical effects or advantages: Since the embodiment of the present application extracts the type lines from the smoothed surface, batch outputs the type values, the data accuracy of the type value comparison table is easy to check, and the extracted type lines maintain the link relationship with the smoothed surface, are updated in real time, and the workload of type value extraction and data entry is reduced, the type values ​​of the attached surface can be quickly extracted and visually compared and verified. The technical problem of batch extraction and verification of hull surface type values ​​in the prior art is effectively solved, thereby achieving real-time updates, reducing the workload of type value extraction and entry, and improving the technical effect of the accuracy of the type value comparison table.

[0011] The invention is suitable for application as a batch extraction and verification method for hull surface values. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0013] Figure 1 is a schematic diagram of the process of this embodiment; Figure 2 Schematic diagram of the profile of this embodiment; Figure 3 It is the type value comparison table of this embodiment. DETAILED DESCRIPTION

[0014] 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, rather than all of the embodiments. Although the embodiments of the present invention have been shown and described, it can be understood by those of ordinary skill in the art that various changes, modifications, substitutions and variations can be made to these embodiments without departing from the principles and spirit of the present invention, and the scope of the present invention is defined by the attached claims and their equivalents. Based on the embodiments in the present invention, all other embodiments obtained by those of ordinary skill in the art without making creative work are within the scope of protection of the present invention.

[0015] As shown in the figure, a method for batch extraction and verification of hull surface values ​​includes the following steps: Step 1: Create a two-dimensional drawing of the profile.

[0016] Use CATIA to open the smoothed hull surface, create a Drawing engineering drawing, establish the front view of the hull surface, and locate and cut out the two-dimensional line drawing that needs to be verified from the front view according to the line drawing and line value table provided by the design institute. The two-dimensional drawing maintains a link relationship with the surface model, so that the two-dimensional drawing and the surface can be updated in real time; Step 2: Export to AutoCAD and create UCS.

[0017] Export the 2D drawing of the type line to AutoCAD and follow the instructions in the attached Figure 2 The attached line diagram establishes the line 2D UCS, and Figure 3 The model value comparison is consistent with the requirement of "distance to front edge" in the diagram.

[0018] Step 3: Use VBA program to extract type values ​​in batches.

[0019] By using the VBA manager that comes with the AutoCAD software, batch extraction of type value coordinates can be achieved according to the type value positioning provided by the design institute.

[0020] The program algorithm is as follows: (1) Construct a new selection set, select entities of the line 2D graph from the screen, set filtering conditions, and store the obtained spline, arc, straight line, polyline, and ellipse entities in the selection set; (2) Attachment Figure 3 The value of the "Distance to the Front Edge" row in the model value comparison diagram is the X-axis coordinate, and the Y-axis rays are constructed respectively; (3) Traverse the entities in the selection set and determine whether the ray in the Y direction intersects with the entity. If so, record the Y coordinate value of the intersection and append a space character as a separator. Repeat (2) and (3) until the Figure 3The model value comparison shows that all the X-axis coordinates in the "Distance to Front Edge" row in the diagram are cycled through, and the Y-axis coordinate values ​​of all intersection points are output in sequence.

[0021] Step 4: Output to the type value comparison table and verify.

[0022] Paste the Y coordinate values ​​of all intersection points to the Figure 3 In the first column of the "Type value coordinates (smooth surface)" row in the type value comparison table diagram, select space as the separator to process the data in columns; edit the formula in the "Difference △d" row, subtract the value in the "Type value coordinates (smooth surface)" row from the value in the "Type value table" row, complete the comparison between the type value provided by the design institute and the type value after smoothing, and intuitively view the trend of the difference change. The type value difference △d after smoothing is ≤0.5mm, which meets the technical requirements for type line layout inspection and acceptance, and completes the type value verification.

[0023] Finally, it should be noted that the above is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, it is still possible for those skilled in the art to modify the technical solutions described in the aforementioned embodiments or to make equivalent substitutions for some of the technical features therein. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for batch extraction and verification of hull surface values, characterized by: Cut out the two-dimensional drawing of the type line that needs to be checked from the smoothed surface, and keep the two-dimensional drawing linked to the surface model so that the two-dimensional drawing and the surface can be updated in real time; export the two-dimensional drawing to AutoCAD, and use VBA programming to realize batch extraction of type value coordinates according to the type value provided by the design institute; output to the Excel table of the type value comparison table, complete the comparison between the type value provided by the design institute and the type value after smoothing, intuitively view the trend of the difference change, and judge whether the type value after smoothing meets the technical requirements for type line lofting inspection and acceptance; including the following steps: Step 1: Create a two-dimensional drawing of the profile; Use CATIA to open the smoothed hull surface, create a Drawing engineering drawing, establish the front view of the hull surface, and locate and cut out the two-dimensional line drawing that needs to be verified from the front view according to the line drawing and line value table provided by the design institute. The two-dimensional drawing maintains a link relationship with the surface model, so that the two-dimensional drawing and the surface can be updated in real time; Step 2: Export to AutoCAD and create UCS; Export the two-dimensional drawing of the type line to AutoCAD, and establish the two-dimensional drawing UCS of the type line according to the type value positioning provided by the design institute, which is consistent with the positioning requirements of the type value table; Step 3: VBA program batch extract type values; Use the VBA manager that comes with AutoCAD software to realize batch extraction of type value coordinates according to the type value positioning provided by the design institute; Step 4: Output to the type value comparison table and verify.

2. A method for batch extraction and verification of hull surface values ​​according to claim 1, characterized in that: In step 3, the program algorithm is as follows: (1) Construct a new selection set, select entities of the line 2D graph from the screen, set filtering conditions, and store the obtained spline, arc, straight line, polyline, and ellipse entities in the selection set; (2) Using the model positioning values ​​provided by the design institute as the X-coordinates, construct the Y-rays respectively; (3) Traverse the entities in the selection set and determine whether the ray in the Y direction intersects with the entity. If so, record the Y coordinate value of the intersection and append a space character as a separator. Repeat (2) and (3) until all X-coordinates have been looped through, and output the Y-coordinate values ​​of all intersection points in sequence.

3. A method for batch extraction and verification of hull surface values ​​according to claim 1, characterized in that: In the step 4, the Y coordinate values ​​of all intersections are pasted into the first column of the "Type Value Coordinates" row of the smoothed surface in the type value comparison table, and a space is selected as a separator to process the data in columns; the formula is edited in the "Difference △d" row, and the value of the "Type Value Coordinates" row of the smoothed surface is subtracted from the value of the "Type Value Coordinates" row of the type value table to complete the comparison between the type value provided by the design institute and the type value after smoothing, and the trend of the difference change is visually checked to determine whether the type value difference △d exceeds the technical requirements for type line layout inspection and acceptance, and complete the type value verification.