Automatic drawing method, system, electronic device and storage medium
Through the automated drawing method, the part information is generated and marked according to the part type and size information, the problems of low drawing efficiency and error-prone in T-row and profile mechanical design are solved, and efficient and accurate part drawing generation is achieved.
Patent Information
- Application Number
- CN202211364198.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-02
- Publication Date
- 2025-07-29
- Estimated Expiration
- 2042-11-02
AI Technical Summary
In the prior art, the mechanical design structure of T-row and profiles are inefficient, cumbersome and prone to errors. Especially in the mechanical design of large ships, manual calculation and drawing workload are large.
According to the part type and size information, determine the drawing unit, and generate parts on the drawing according to preset rules, mark part information, including part size, type, specification, etc., and automatically draw drawing.
It reduces the workload of people's work, improves the efficiency of drawing, reduces the drawing error rate, and simplifies the drawing process of T-row and profile parts.
Smart Images

Figure CN115577410B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electronic information technology, and particularly to an automatic drawing method, system, electronic device and storage medium. Background Art
[0002] At present, in the mechanical design of large ships, a considerable part of the structure is T-bars and profiles. In the prior art, after the 3D design of T-bars and profiles is completed, the outline drawings of the flat drawings and sectional drawings of each part can be obtained according to the design results. However, the obtained drawings are only the outline lines of the part structure. If there are assemblies, the outline drawings of the assemblies are also required. In addition, the line colors and line types need to be manually set for the outline drawings, structural markings, drawing frames, and parameter tables need to be added, and the drawing layout needs to be manually integrated. However, the problem with this drawing method is that the drawing efficiency is low, the lengths of each pipe orifice need to be manually calculated, the manual drawing workload is large, which is cumbersome and error-prone. Summary of the Invention
[0003] The technical problem to be solved by the present invention is to overcome the defects of low efficiency, cumbersome and error-prone manual drawing in the mechanical design structure of T-bars and profiles in the prior art, and to provide an automatic drawing method, system, electronic device and storage medium.
[0004] The present invention solves the above technical problems through the following technical solutions:
[0005] In a first aspect, the present invention provides an automatic drawing method, which includes:
[0006] Determine the drawing unit according to the part type and size information; the drawing unit includes a part group corresponding to the size or a part group of the same type;
[0007] Generate the parts within the drawing unit on the drawing according to the preset drawing rules and the size information;
[0008] Mark the parts on the drawing according to the part information of the parts, where the part information includes at least one of part size, part type, and part specification.
[0009] Preferably, the part is a T-bar part, and the T-bar part includes a T-bar web part and a T-bar panel part. The step of determining the drawing unit according to the part type and size information includes:
[0010] Obtain the size information of the T-bar web part and the T-bar panel part, and determine that the T-bar web part and the T-bar panel part corresponding to the size information of the T-bar web part are one drawing unit;
[0011] The step of generating the parts within the drawing unit on the drawing according to the preset drawing rules and the dimension information includes:
[0012] Project the T - row web parts and T - row panel parts within the drawing unit according to the direction of the assembly base surface, the dimension information of the T - row web parts, and the dimension information of the T - row panel parts;
[0013] The step of marking the parts on the drawing according to the part information of the parts includes:
[0014] Summarize and mark the part information of all the T - row web parts and T - row panel parts within the drawing unit, and the part information further includes at least one of part number, part quantity, part material, part weight, and post - welding length.
[0015] Preferably, before the step of obtaining the dimension information of the T - row web parts and T - row panel parts:
[0016] Distinguish the T - row web parts or T - row panel parts according to the part naming rules.
[0017] Preferably, when the part is a profile part, the step of determining the drawing unit according to the part type and dimension information includes:
[0018] Determine the profile parts with the same name as one drawing unit, and the profile parts with the same name are profile parts with the same section name, erection name, and part name;
[0019] The step of generating the parts within the drawing unit on the drawing according to the preset drawing rules and the dimension information includes:
[0020] Compress the length of the profile parts within one drawing unit to the preset drawing size;
[0021] Generate the profile parts within the drawing unit on the drawing whose lengths are compressed to the preset drawing size;
[0022] The step of marking the parts on the drawing according to the part information of the parts includes:
[0023] Mark all the profile parts within the drawing unit according to the part information of the profile parts, and the part information further includes at least one of profile part name, material specification, material, quantity of parts with the same name, and flow direction.
[0024] Preferably, before the step of determining the drawing unit according to the part type and dimension information:
[0025] Determine the dimension information of the profile parts according to the end - cutting characteristic values of the profile parts.
[0026] Preferably, the automatic drawing method further includes:
[0027] Determine whether the part is a curved profile part;
[0028] If it is a curved profile part, determine the reverse straight line information of the curved profile part according to the section curve of the curved profile part;
[0029] Mark the reverse straight line information on the drawing.
[0030] Preferably, the part information is determined by the xml format file of the parsed part.
[0031] In a second aspect, the present invention provides an automatic drawing system, and the automatic drawing system includes:
[0032] A determination module for determining a drawing unit according to part type and dimension information; the drawing unit includes a part group corresponding to the dimension or a part group of the same type;
[0033] A generation module for generating parts within the drawing unit on the drawing according to preset drawing rules and the dimension information;
[0034] A marking module for marking the part on the drawing according to the part information of the part, and the part information includes at least one of part dimension, part type, and part specification.
[0035] In a third aspect, the present invention provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the processor executes the computer program, the above automatic drawing method is implemented.
[0036] In a fourth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the above automatic drawing method is implemented.
[0037] The positive and progressive effects of the present invention are as follows:
[0038] The present invention determines a drawing unit according to part type and dimension information, automatically generates part drawings, marks part information, reduces the workload of manual drawing, improves drawing efficiency, and reduces the drawing error rate. Brief Description of the Drawings
[0039] Figure 1 It is the first flowchart of the automatic drawing method according to Embodiment 1 of the present invention;
[0040] Figure 2 It is the second flowchart of the automatic drawing method according to Embodiment 1 of the present invention;
[0041] Figure 3The projection diagrams of the front views of the T-row web parts and the T-row panel parts of the automatic drawing method according to Embodiment 1 of the present invention;
[0042] Figure 4 The part information table of the T-row parts of the same drawing unit of the automatic drawing method according to Embodiment 1 of the present invention;
[0043] Figure 5 The final effect diagram of the T-row parts of the automatic drawing method according to Embodiment 1 of the present invention;
[0044] Figure 6 The third flowchart of the automatic drawing method according to Embodiment 1 of the present invention;
[0045] Figure 7 The final effect diagram of the profile parts of the automatic drawing method according to Embodiment 1 of the present invention;
[0046] Figure 8 The part information table of the profile parts of the same drawing unit of the automatic drawing method according to Embodiment 1 of the present invention;
[0047] Figure 9 The fourth flowchart of the automatic drawing method according to Embodiment 1 of the present invention;
[0048] Figure 10 The first structure diagram of the automatic drawing system according to Embodiment 2 of the present invention;
[0049] Figure 11 The second structure diagram of the automatic drawing system according to Embodiment 2 of the present invention;
[0050] Figure 12 The structure schematic diagram of the electronic device according to Embodiment 3 of the present invention. Detailed implementation manners
[0051] The present invention will be further described below by way of embodiments, but the present invention is not limited to the scope of the embodiments accordingly.
[0052] Embodiment 1
[0053] This embodiment provides an automatic drawing method, which is applied to the drawing operation of the T-row parts and profile parts of a ship. Refer to Figure 1 , the automatic drawing method includes:
[0054] S1. Determine the drawing unit according to the part type and dimension information.
[0055] The drawing unit includes a group of parts corresponding to the dimension or a group of parts of the same type. For example: the T-row web parts and T-row panel parts corresponding to the dimension are the same drawing unit; the profile parts of the same type are the same drawing unit.
[0056] S2. Generate the parts within the drawing unit on the drawing according to the preset drawing rules and dimension information.
[0057] The preset drawing rules are set according to the drawing requirements.
[0058] S3. Mark the parts on the drawing according to the part information of the parts.
[0059] Among them, the part information includes at least one of part dimensions, part types, and part specifications.
[0060] In this embodiment, according to the part type and dimension information, the drawing unit is determined, and the part drawings are automatically generated and the part information is marked, reducing the workload of manual drawing, improving the drawing efficiency, and reducing the drawing error rate.
[0061] In an alternative embodiment, the part information is determined by an xml-format file of the parsed part.
[0062] For example: The T-row web part drawing and the T-row panel part drawing are parsed from the xml (a file format) intermediate file of the part mfg (a file format) to generate the corresponding graphics, and the part information is automatically marked.
[0063] Another example: The graphics and part information of the profile parts are parsed from the xml intermediate file of the profile parts.
[0064] In an alternative embodiment, the part is a T-row part. Refer to Figure 2 , step S1 includes:
[0065] S11. Obtain the dimension information of the T-row web part and the T-row panel part, and determine that the T-row web part and the T-row panel part corresponding to the dimension information of the T-row web part are one drawing unit.
[0066] Step S2 includes:
[0067] S21. Project the T-row web part and the T-row panel part within the drawing unit according to the direction of the assembly base surface, the dimension information of the T-row web part, and the dimension information of the T-row panel part.
[0068] For example: Figure 3 The front views of the T-row web part and the T-row panel part are the projection diagrams automatically projected according to the direction of the assembly base surface. TOP is used to represent the height dimension information, and PS is used to represent the length dimension information; D1G3 represents the T-row web part, and F1G3 represents the T-row panel part corresponding to the D1G3 dimension.
[0069] Step S3 includes:
[0070] S31. Summarize and label the part information of the T-row web parts and T-row panel parts within all drawing units.
[0071] Among them, the part information also includes at least one of part number, quantity, material, weight, and post-welding length. Figure 4 It is the part information table for parts of the same drawing unit of T-row parts.
[0072] In this embodiment, according to the T-row part type and size information, determine that the T-row web parts and T-row panel parts with corresponding sizes are in one drawing unit. Automatically generate the part drawings of T-row parts according to the direction of the assembly base surface, label the part information, reduce the workload of manually drawing T-row parts, improve the efficiency of drawing T-row parts, and reduce the error rate of drawing T-row parts.
[0073] In an alternative embodiment, before step S11, it includes:
[0074] S110. Distinguish T-row web parts or T-row panel parts according to the part naming rules.
[0075] The part naming rules are set according to the actual situation. For example, parts with part names starting with D are T-row web parts, and parts with part names starting with F are T-row panel parts.
[0076] In this embodiment, distinguish T-row web parts or T-row panel parts through the part naming rules, simplify the drawing process, and improve the drawing efficiency.
[0077] See Figure 5 , the automatically generated T-row part drawings include part drawings, assembly drawings, and part information tables of T-row web parts and T-row panel parts. The part drawings include T-row web part drawings and T-row panel part drawings, and the assembly drawings include the front views of T-row web parts and T-row panel parts.
[0078] In an alternative embodiment, the parts are profile parts, and the profile parts mainly include bulb flat bar parts and angle steel parts. See Figure 6 , step S1 includes:
[0079] S12. Determine the profile parts with the same name as one drawing unit.
[0080] Among them, the profile parts with the same name are profile parts with the same section name, erection name, and part name, that is, when there are profile parts with the same section name, erection name, and part name, these profile parts are the profile parts with the same name.
[0081] Step S2 includes:
[0082] S22. Compress the length of the profile parts within one drawing unit to the preset drawing size.
[0083] The preset drawing size is set according to the drawing requirements.
[0084] S23. Generate profile parts within the drawing unit on the drawing, with the length compressed to the preset drawing size.
[0085] Figure 7 The drawing effect is that the length direction of the profile part is compressed according to the 200mm drawing size, and the height direction of the profile part is not compressed.
[0086] Step S3 includes:
[0087] S32. Mark all profile parts within the drawing unit according to the part information of the profile parts.
[0088] Among them, the part information also includes at least one of the profile part name, material specification, material, number of identical parts, and flow direction. Figure 8 It is a part information table of the profile part.
[0089] In this embodiment, identical profile parts are determined as one drawing unit, and profile parts with the length within the drawing unit automatically generated and compressed to the preset drawing size are generated, reducing the workload of manually drawing profile parts, improving the efficiency of drawing profile parts, and reducing the error rate of drawing profile parts.
[0090] In an alternative embodiment, before step S1, it includes:
[0091] Determine the dimension information of the profile part according to the end-cut characteristic value of the profile part.
[0092] Among them, the end-cut of the profile part is a common method for processing the end of the profile part in ships, and the end-cut characteristic value of the profile part represents the end drawing parameters of the profile part.
[0093] In an alternative embodiment, referring to Figure 9 , the automatic drawing method further includes:
[0094] S4. Determine whether the part is a curved profile part. If it is a curved profile part, execute step S5.
[0095] S5. Determine the reverse straight line information of the curved profile part according to the profile curve of the curved profile part.
[0096] The profile curve of the curved profile part can be determined according to the profile curve attribute of the part in S3D (the full name is Simplify3D, a 3D printing slicing software).
[0097] S6. Mark the reverse straight line information on the drawing.
[0098] In this embodiment, if the part is a curved profile part, the reverse straight line information of the curved profile part can also be automatically obtained and marked, so as to improve the accuracy of the drawing dimensions and facilitate the manufacture of the mold.
[0099] Embodiment 2
[0100] This embodiment provides an automatic drawing system, which is applied to the drawing operations of T-shaped rib parts and profile parts of a ship. Refer to Figure 10 , and the automatic drawing system includes:
[0101] A determination module 1, configured to determine a drawing unit according to the part type and dimension information; the drawing unit includes a part group corresponding to the dimension or a part group of the same type.
[0102] A generation module 2, configured to generate parts within the drawing unit on the drawing according to the preset drawing rules and dimension information.
[0103] A marking module 3, configured to mark the parts on the drawing according to the part information of the parts, and the part information includes at least one of part dimension, part type, and part specification.
[0104] In an optional embodiment, the part information is determined by an xml-format file of the parsed part.
[0105] In an optional embodiment, the determination module 1 is further configured to obtain the dimension information of the T-shaped rib web part and the T-shaped rib panel part, and determine that the T-shaped rib web part and the T-shaped rib panel part corresponding to the dimension information of the T-shaped rib web part are one drawing unit.
[0106] The generation module 2 is further configured to project the T-shaped rib web part and the T-shaped rib panel part within the drawing unit according to the direction of the assembly base surface, the dimension information of the T-shaped rib web part, and the dimension information of the T-shaped rib panel part.
[0107] The marking module 3 is further configured to summarize and mark the part information of the T-shaped rib web parts and the T-shaped rib panel parts within all drawing units, and the part information further includes at least one of part number, part quantity, part material, part weight, and post-welding length.
[0108] In an optional embodiment, refer to Figure 11 , the automatic drawing system further includes:
[0109] A discrimination module 4, configured to discriminate the T-shaped rib web part or the T-shaped rib panel part according to the part naming rule.
[0110] In an optional embodiment, the determination module 1 is further configured to determine the profile parts with the same name as one drawing unit, and the profile parts with the same name are profile parts with the same section name, erection name, and part name.
[0111] The generating module 2 is further configured to compress the lengths of the profile parts within one drawing unit to a preset drawing size, and generate on the drawing the profile parts within the drawing unit whose lengths are compressed to the preset drawing size.
[0112] The marking module 3 is further configured to mark all the profile parts within the drawing unit according to the part information of the profile parts, and the part information further includes at least one of the profile part name, material specification, material, number of identical parts, and flow direction.
[0113] In an alternative embodiment, the determining module 1 is further configured to determine the dimensional information of the profile part according to the end-cut characteristic value of the profile part.
[0114] In an alternative embodiment, refer to Figure 11 , the automatic drawing system further includes:
[0115] The judging module 5 is configured to judge whether the part is a curved profile part.
[0116] The determining module 1 is further configured to, if it is a curved profile part, determine the reverse straight line information of the curved profile part according to the sectional curve of the curved profile part.
[0117] The marking module 3 is further configured to mark the reverse straight line information on the drawing.
[0118] It should be noted that for the implementation principles and technical effects of the various modules of the automatic drawing system in this embodiment, reference can be made to the corresponding parts of Embodiment 1, which will not be elaborated here.
[0119] Embodiment 3
[0120] This embodiment provides an electronic device, Figure 12 which is a schematic diagram of the modules of the electronic device. The electronic device includes a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the program, it implements the automatic drawing method of Embodiment 1. Figure 12 The displayed electronic device 30 is only an example and should not impose any limitations on the functions and usage scope of the embodiments of the present invention.
[0121] As Figure 12 shown, the electronic device 30 may be presented in the form of a general-purpose computing device, for example, it may be a server device. The components of the electronic device 30 may include, but are not limited to: at least one of the above-mentioned processors 31, at least one of the above-mentioned memories 32, and a bus 33 connecting different system components (including the memory 32 and the processor 31).
[0122] The bus 33 includes a data bus, an address bus, and a control bus.
[0123] The memory 32 may include volatile memory, such as random access memory (RAM) 321 and / or cache memory 322, and may further include read-only memory (ROM) 323.
[0124] The memory 32 may also include a program / utilities 325 having a set (at least one) of program modules 324. Such program modules 324 include, but are not limited to: an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include an implementation of a network environment.
[0125] The processor 31 executes various functional applications and data processing by running computer programs stored in the memory 32, such as the automatic drawing method of Embodiment 1 of the present invention.
[0126] The electronic device 30 may also communicate with one or more external devices 34 (such as a keyboard, a pointing device, etc.). Such communication may be performed through an input / output (I / O) interface 35. And, the model generation device 30 may also communicate with one or more networks (such as a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 36. As Figure 12 shown, the network adapter 36 communicates with other modules of the model generation device 30 through the bus 33. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in combination with the model generation device 30, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (disk array) systems, tape drives, and data backup storage systems, etc.
[0127] It should be noted that, although several units / modules or sub-units / modules of the electronic device are mentioned in the above detailed description, such a division is merely exemplary and not mandatory. In fact, according to the embodiments of the present invention, the features and functions of two or more units / modules described above may be embodied in one unit / modules. Conversely, the features and functions of one unit / modules described above may be further divided and embodied by multiple units / modules.
[0128] Embodiment 4
[0129] This embodiment provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the automatic drawing method of Embodiment 1 is implemented.
[0130] Among them, the more specific forms that the readable storage medium may adopt may include, but are not limited to: portable disks, hard disks, random access memories, read-only memories, erasable programmable read-only memories, optical storage devices, magnetic storage devices, or any suitable combination of the above.
[0131] In a possible implementation, the present invention can also be implemented in the form of a program product, which includes program code. When the program product runs on a terminal device, the program code is used to cause the terminal device to execute the automatic drawing method of Embodiment 1.
[0132] Among them, the program code for executing the present invention can be written in any combination of one or more programming languages. The program code can be executed completely on the user device, partially on the user device, executed as an independent software package, partially on the user device and partially on a remote device, or completely on a remote device.
[0133] Although the specific implementation manners of the present invention have been described above, those skilled in the art should understand that this is only an example. The protection scope of the present invention is defined by the appended claims. Without departing from the principles and essence of the present invention, those skilled in the art can make various changes or modifications to these implementation manners, but these changes and modifications all fall within the protection scope of the present invention.
Claims
1. An automatic drawing method, characterized in that, The automatic drawing generation method includes: Determine the drawing unit according to the part type and dimension information; the drawing unit includes a part group corresponding to the dimension or a part group of the same type; Generate the parts within the drawing unit on the drawing according to the preset drawing rules and the dimension information; Mark the parts on the drawing according to the part information of the parts, where the part information includes at least one of part dimension, part type, and part specification; The part is a T-row part, and the T-row part includes a T-row web part and a T-row panel part. The step of determining the drawing unit according to the part type and dimension information includes: Obtain the dimension information of the T-row web part and the T-row panel part, and determine that the T-row web part and the T-row panel part corresponding to the dimension information of the T-row web part are one drawing unit; The step of generating the parts within the drawing unit on the drawing according to the preset drawing rules and the dimension information includes: Project the T-row web part and the T-row panel part within the drawing unit according to the direction of the assembly base surface, the dimension information of the T-row web part, and the dimension information of the T-row panel part; The step of marking the parts on the drawing according to the part information of the parts includes: Summarize and mark the part information of the T-row web parts and the T-row panel parts within all drawing units, where the part information further includes at least one of part number, part quantity, part material, part weight, and post-welding length; The automatic drawing generation method further includes: Judge whether the part is a curved profile part; If it is a curved profile part, determine the reverse straight line information of the curved profile part according to the profile curve of the curved profile part; Mark the reverse straight line information on the drawing.
2. The automatic drawing method according to claim 1, characterized in that Before the step of obtaining the dimension information of the T-row web part and the T-row panel part: Distinguish the T-row web part or the T-row panel part according to the part naming rule.
3. The automatic drawing method according to claim 1, characterized in that The part is a profile part. The step of determining the drawing unit according to the part type and dimension information includes: Determine the same-name profile parts as one drawing unit, where the same-name profile parts are profile parts with the same section name, erection name, and part name; The step of generating the parts within the drawing unit on the drawing according to the preset drawing rules and the dimension information includes: Compress the length of the profile parts within one drawing unit to the preset drawing size; Generate the profile parts within the drawing unit with the length compressed to the preset drawing size on the drawing; The step of marking the parts on the drawing according to the part information of the parts includes: Mark all the profile parts within all drawing units according to the part information of the profile parts, where the part information further includes at least one of profile part name, material specification, material, quantity of the same-name parts, and flow direction.
4. The automatic drawing method according to claim 3, characterized in that Before the step of determining the drawing unit according to the part type and dimension information: Determine the dimension information of the profile part according to the end-cut characteristic value of the profile part.
5. The automatic drawing generation method according to any one of claims 1-4, characterized in that The part information is determined by the xml format file of the parsed part.
6. An automatic drawing system, characterized in that, The automatic drawing generation system includes: A determination module, configured to determine a drawing unit according to part type and dimension information; the drawing unit includes a part group corresponding to the dimension or a part group of the same type; A generation module, configured to generate parts within the drawing unit on a drawing according to a preset drawing rule and the dimension information; A marking module, configured to mark the parts on the drawing according to the part information of the parts, where the part information includes at least one of part dimension, part type, and part specification; The part is a T-shaped row part, and the T-shaped row part includes a T-shaped row web part and a T-shaped row panel part, according to the part type and dimension information; The determination module is further configured to obtain the dimension information of the T-shaped row web part and the T-shaped row panel part, and determine that the T-shaped row web part and the T-shaped row panel part corresponding to the dimension information of the T-shaped row web part are one drawing unit; The generation module is further configured to project the T-shaped row web part and the T-shaped row panel part within the drawing unit according to the direction of the assembly base surface, the dimension information of the T-shaped row web part, and the dimension information of the T-shaped row panel part; The marking module is further configured to summarize and mark the part information of the T-shaped row web parts and the T-shaped row panel parts within all drawing units, where the part information further includes at least one of part number, part quantity, part material, part weight, and post-welding length; The automatic drawing system further includes: A judgment module, configured to judge whether a part is a curved profile part; The determination module is further configured to, if it is a curved profile part, determine the inverse straight line information of the curved profile part according to the profile curve of the curved profile part; The marking module is further configured to mark the inverse straight line information on the drawing.
7. An electronic device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the automatic drawing method according to any one of claims 1-5.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the automatic drawing method according to any one of claims 1-5.
Citation Information
Patent Citations
Automatic drawing method and system for open pores in hull drawing, equipment and storage medium
CN111523174A
Part drawing method, computer equipment and storage medium
CN112541240A