System for realizing automatic filling of drawing page numbers by using PYTHON language for submarine cable workboat
An automatic page number filling system for drawings, developed using the Python language on a submarine cable construction vessel, solved the problems of high workload and error rate associated with manual filling, achieving automated filling and improving design quality and efficiency.
Patent Information
- Application Number
- CN202410884833.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-02
- Publication Date
- 2024-11-29
AI Technical Summary
The page numbers of the drawings for submarine cable construction vessels need to be filled in manually, which is labor-intensive and prone to errors. Current technology cannot automate the filling process.
Using the Python language to write computer programs and combining them with the interface functions of the TRI BON system, an automatic drawing page number filling system was developed, including modules for file name output, sequential processing, page number filling, and temporary file deletion.
It reduces the workload of manual drafting, lowers the error rate, and improves the quality and efficiency of production design.
Smart Images

Figure CN119047011A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of marine construction control, and in particular relates to a system for automatically filling in drawing page numbers by using PYTHON language on a submarine cable construction vessel. Background Art
[0002] TRI BON system is a pure English computer-aided ship design system. The original intention of designing this system is to meet the production and design needs of foreign shipyards. All functions are developed with reference to the actual conditions of foreign shipyards. At the beginning of this century, with the rise of China's shipbuilding industry, some domestic shipyards began to introduce this system. After more than ten years of development, this system has been widely used in major shipyards and design institutes in my country. However, the drawing page numbers in this system are all filled in manually. There are tens of thousands of drawings for a ship, which is a huge workload.
[0003] To this end, we propose a system for automatically filling in drawing page numbers on a submarine cable construction vessel using the PYTHON language. Summary of the invention
[0004] The technical problem to be solved by the present invention is to provide a system for automatically filling in drawing page numbers by using the PYTHON language on a submarine cable construction vessel.
[0005] The objective of the present invention is achieved through the following technical solutions:
[0006] A submarine cable construction ship uses the Python language to implement an automatic drawing page number filling system. A computer program that can run in the computer-aided ship three-dimensional design system TRI BON system is written using the Python language. The computer program includes four functional modules: a drawing file name output function module, a sequence processing function module, a page number filling function module, and a temporary file deletion function module.
[0007] Among them, the drawing file name output function module is used to output the file name of the drawing, the sequence processing function module is used to adjust the front and back order of the drawings, the page number filling function module is used to automatically fill in the page numbers of the drawings from small to large, and the temporary file deletion function module is used to delete the temporary files generated by the program during operation. The computer program is written in PYTHON language.
[0008] Compared with the prior art, the present invention has the following beneficial effects:
[0009] The present invention utilizes the Python language in combination with the interface functions provided by the TRI BON system to conduct secondary development of the functions of the TRI BON system, changing the original backward manual page number filling mode into a computer automatic filling mode, thereby reducing the workload of manual drawing, reducing the error rate, and improving the quality of production design and work efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] Figure 1 The figure is a flow chart of the system of the present invention.
[0011] In the figure: 1. File name output function module; 2. Sequential processing function module; 3. Page number filling function module; 4. Temporary file deletion function module. DETAILED DESCRIPTION
[0012] The following will describe the implementation methods of the present application in detail with the help of accompanying drawings and examples, so that the implementation process of how the present application uses technical means to solve technical problems and achieve technical effects can be fully understood and implemented accordingly.
[0013] The present invention provides a system for automatically filling in drawing page numbers for a submarine cable construction ship using PYTHON language, and uses PYTHON language in combination with an interface function provided by a TRI BON system to perform secondary development on the functions of the TRI BON system, and writes a computer program that can run under the TRI BON system of a computer-aided ship three-dimensional design system. The computer program includes four functional modules: a drawing file name output function module 1, a sequence processing function module 2, a page number filling function module 3, and a temporary file deletion function module 4. At the beginning of the program, the drawing file name output function module 1 first outputs the file name of the drawing to a temporary file for subsequent program processing; then, the sequence processing function module 2 will appropriately adjust the drawing name in the temporary file, in which the front and back positions of the drawing can be adjusted or the drawing name that does not need to be arranged can be deleted; then, the page number filling function module 3 will automatically fill in the drawing page number adjusted in the previous temporary file, that is, the page number of the first drawing is filled in as 1, the page number of the second drawing is filled in as 2, and so on; at the end of the program, the temporary file deletion function module 4 will delete the temporary file generated when the program is running. These four functional modules are executed from front to back respectively, thus realizing the function of automatically filling in the drawing page numbers from small to large.
[0014] The above description is only a preferred embodiment of the present invention and does not limit the present invention in any form. Any simple modification, equivalent changes and modifications made to the above embodiments based on the technical essence of the present invention are within the scope of the technical solution of the present invention.
Claims
1. A submarine cable construction ship uses Python language to implement a drawing page number automatic filling system, which is characterized by: A computer program that can run on the computer-aided three-dimensional ship design system TRIBON is written using Python language. The computer program includes four functional modules: a drawing file name output function module, a sequence processing function module, a page number filling function module, and a temporary file deletion function module.
2. According to claim 1, the submarine cable construction ship uses the PYTHON language to realize the automatic filling system of drawing page numbers, characterized in that: The drawing file name output function module is used to output the file name of the drawing.
3. According to claim 1, the submarine cable construction ship uses the PYTHON language to realize the automatic filling system of drawing page numbers, characterized in that: The sequence processing function module is used to adjust the sequence of drawings.
4. According to claim 1, the submarine cable construction ship uses the PYTHON language to realize the automatic filling system of drawing page numbers, characterized in that: The page number filling function module is used to automatically fill in the page numbers of the drawings from small to large.
5. According to claim 1, the submarine cable construction ship uses the PYTHON language to realize the automatic filling system of drawing page numbers, characterized in that: The temporary file deletion function module is used to delete temporary files generated when the program is running.
6. According to claim 1, the submarine cable construction ship uses the PYTHON language to realize the automatic filling system of drawing page numbers, characterized in that: The computer program is written in PYTHON language.
