Automatic part typesetting method and system, computer equipment and medium

Through the automatic layout method, the layout rules are determined based on the size and shape of the parts, which solves the problems of low efficiency of parts layout and waste of materials in mechanical processing, and achieves efficient and good quality parts processing.

CN120069190APending Publication Date: 2025-05-30GUANGDONG LYRIC ROBOT INTELLIGENT AUTOMATION CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510124433.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-26
Publication Date
2025-05-30

AI Technical Summary

Technical Problem

In the fields of mechanical processing such as automobile manufacturing and mold manufacturing, the efficiency and quality of parts layout are difficult to meet the needs of large-scale or complex parts production, resulting in waste of materials and low processing efficiency.

Method used

An automatic layout method for parts is proposed. By obtaining the size, quantity and processing requirements of the parts to be typed, comparing them with the preset residual material layout conditions, filtering out the set of parts that meet the conditions, and determining the target layout rules based on the shape of the parts to achieve automatic layout.

Benefits of technology

It improves the utilization rate of residual materials, reduces material waste, improves the efficiency and quality of parts processing, and can meet various types of typesetting needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120069190A_ABST
    Figure CN120069190A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a part automatic typesetting method and system, computer equipment and a medium, and belongs to the technical field of machining. The method comprises the steps that the part size, the part number and the machining requirement of to-be-typeset parts are obtained; the part size, the part number and the machining requirements are compared with preset excess material typesetting conditions, and a first part set meeting the excess material typesetting conditions and a second part set not meeting the excess material typesetting conditions are screened out; for the first to-be-typeset parts in the first part set, typesetting all the first to-be-typeset parts through a preset excess material blank plate; and for a second to-be-typeset part in the second part set, determining a target typesetting rule according to the part shape of the second to-be-typeset part, and typesetting the second to-be-typeset part based on the target typesetting rule. According to the embodiment of the invention, the excess material utilization rate can be improved, and various types of typesetting requirements can be met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of machining technology, and particularly to an automatic part layout method, system, computer device, and medium. Background Art

[0002] In the field of machining such as automobile manufacturing and die manufacturing, it is often necessary to perform CNC (Computer Numerical Control Machine Tool) machining on various parts. These enterprises usually face the problem of part layout. Especially when producing large quantities or complex parts, the layout efficiency and quality directly affect the production efficiency and cost.

[0003] When performing part layout, operators mainly rely on personal experience and intuition to determine the position and orientation of parts on the machining plane. Due to different experiences and habits of each person, the layout results often lack unified standards and rules, resulting in chaotic layout. For example, the spacing between parts is inconsistent, or the orientation of parts is random. Operators need to repeatedly adjust the position and orientation of each part to ensure their reasonable distribution on the machining plane. And during the manual layout process, it is difficult to rearrange the positions of parts according to the existing shape and size of the leftover material, resulting in low utilization rate of the leftover material. For complex parts or large batch orders, this manual layout method is very inefficient, causing material waste and unable to meet production requirements, which will affect the subsequent machining efficiency and quality. Summary of the Invention

[0004] The main purpose of the embodiments of this application is to propose an automatic part layout method, system, computer device, and storage medium, which can meet various types of layout requirements.

[0005] To achieve the above object, in the first aspect of the embodiments of this application, an automatic part layout method is proposed, and the method includes:

[0006] Obtain the part size, the number of parts, and the processing requirements of the parts to be laid out;

[0007] Compare the part size, the number of parts, and the processing requirements with the preset leftover material layout conditions, and screen out the first set of parts that meet the leftover material layout conditions and the second set of parts that do not meet the leftover material layout conditions;

[0008] For the first part to be laid out in the first set of parts, layout all the first parts to be laid out through a preset leftover material blank plate;

[0009] For the second to-be-typeset part in the second part set, determine a target typesetting rule according to the part shape of the second to-be-typeset part, and typeset the second to-be-typeset part based on the target typesetting rule.

[0010] In some embodiments, typesetting all the first to-be-typeset parts by using a preset surplus blank plate includes:

[0011] Set a first size of the surplus blank plate according to the processing requirements of the first to-be-typeset parts, and set a first part spacing according to the first part sizes and the first part quantities of all the first to-be-typeset parts;

[0012] Perform a typesetting test on all the first to-be-typeset parts according to the first size, the first part spacing, and the first part quantities;

[0013] When all the first to-be-typeset parts pass the typesetting test, typeset all the first to-be-typeset parts on the surplus blank plate according to the first size and the first part spacing.

[0014] In some embodiments, after performing a typesetting test on all the first to-be-typeset parts according to the first size, the first part spacing, and the first part quantities, the method further includes:

[0015] When any one of the first to-be-typeset parts fails the typesetting test, set a second size of the surplus blank plate according to the processing requirements of the first to-be-typeset part, and set a second part spacing according to the first part size and the first part quantities;

[0016] Perform a typesetting test on all the first to-be-typeset parts according to the second size, the second part spacing, and the first part quantities until all the first to-be-typeset parts pass the typesetting test.

[0017] In some embodiments, determining the target typesetting rule according to the part shape of the second to-be-typeset part includes:

[0018] Compare the part shape of the second to-be-typeset part with a preset standard blank shape;

[0019] When the part shape of the second to-be-typeset part meets the preset standard blank shape, determine the array typesetting rule as the target typesetting rule;

[0020] When the part shape of the second to-be-typeset part does not meet the preset standard blank shape, compare the part shape of the second to-be-typeset part with a preset non-standard blank shape;

[0021] When the part shape of the second part to be typeset meets the non-standard sheet metal shape, determine the alignment typesetting rule as the target typesetting rule;

[0022] When the part shape of the second part to be typeset does not meet the non-standard sheet metal shape, compare the part shape of the second part to be typeset with a preset non-regular sheet metal shape;

[0023] When the part shape of the second part to be typeset meets the non-regular sheet metal shape, determine the position typesetting rule as the target typesetting rule;

[0024] When the part shape of the second part to be typeset does not meet the non-regular sheet metal shape, determine the free typesetting rule as the target typesetting rule.

[0025] In some embodiments, typesetting the second part to be typeset based on the target typesetting rule includes:

[0026] When the target typesetting rule is the array typesetting rule, set the third part spacing and the arrangement quantity according to the second part sizes and the second part quantities of all the second parts to be typeset;

[0027] Perform array typesetting on the second parts to be typeset according to the third part spacing and the arrangement quantity.

[0028] In some embodiments, typesetting the second part to be typeset based on the target typesetting rule includes:

[0029] When the target typesetting rule is the alignment typesetting rule, set the fourth part spacing according to the second part sizes and the second part quantities of all the second parts to be typeset;

[0030] Select an alignment reference part and a part to be moved among the second parts to be typeset, and set the alignment direction and the alignment angle;

[0031] Control the part to be moved to move with the alignment reference part as a reference according to the fourth part spacing, the alignment direction, and the alignment angle.

[0032] In some embodiments, typesetting the second part to be typeset based on the target typesetting rule includes:

[0033] When the target typesetting rule is the position typesetting rule, set the fifth part spacing according to the second part sizes and the second part quantities of all the second parts to be typeset;

[0034] Select a position reference part and a part to be adjusted among the second parts to be typeset, and determine the reference surface of the position reference part;

[0035] Control the part to be adjusted to perform position adjustment based on the reference plane according to the fifth part spacing.

[0036] A second aspect of the embodiments of the present application provides a part automatic layout system, the system includes:

[0037] A part acquisition module, configured to acquire the part size, the number of parts, and the processing requirements of the parts to be laid out;

[0038] A condition comparison module, configured to compare the part size, the number of parts, and the processing requirements with preset surplus material layout conditions, and screen out a first part set that meets the surplus material layout conditions and a second part set that does not meet the surplus material layout conditions;

[0039] A surplus material layout module, configured to perform layout on all the first parts to be laid out in the first part set through a preset surplus material blank plate for the first part to be laid out in the first part set;

[0040] A multi-type layout module, configured to determine a target layout rule according to the part shape of the second part to be laid out in the second part set, and perform layout on the second part to be laid out based on the target layout rule.

[0041] A third aspect of the embodiments of the present application provides a computer device, the computer device includes a memory and a processor, wherein, a computer program is stored in the memory, and when the computer program is executed by the processor, the processor is configured to execute the part automatic layout method as described in the first aspect.

[0042] A fourth aspect of the embodiments of the present application provides a storage medium, the storage medium is a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a computer, the computer is configured to execute the part automatic layout method as described in any one of the first aspect embodiments of the present application.

[0043] The automatic part layout method, system, computer device and medium proposed in the embodiments of the present application have the following beneficial effects: First, obtain the part dimensions, part quantities and processing requirements of the parts to be laid out, so as to determine the technical requirements, tolerance requirements, etc. of the processed parts through the processing requirements, and then compare the part dimensions, part quantities and processing requirements with the preset leftover material layout conditions to screen out the first part set that meets the leftover material layout conditions and the second part set that does not meet the leftover material layout conditions, which is convenient for subsequent processing of different types of parts. For the first parts to be laid out in the first part set, the embodiments of the present application directly layout all the first parts to be laid out through the preset leftover material blank plate, thereby improving the utilization rate of the leftover material layout and avoiding material waste; for the second parts to be laid out in the second part set, that is, the parts that do not need to be laid out with leftover materials, the embodiments of the present application determine the target layout rules according to the part shapes of the second parts to be laid out, and layout the second parts to be laid out based on the target layout rules, so as to meet various types of layout requirements, adapt to various layout functions, further meet various production requirements, and improve the processing efficiency and processing quality. Description of the Drawings

[0044] Figure 1 is a flowchart of the specific method of the automatic part layout method provided by the embodiments of the present application;

[0045] Figure 2 is a specific flowchart of laying out all the first parts to be laid out through the preset leftover material blank plate provided by the embodiments of the present application;

[0046] Figure 3 is a specific flowchart of the automatic part layout method provided by another embodiment of the present application;

[0047] Figure 4 is a specific flowchart of determining the target layout rules according to the part shapes of the second parts to be laid out provided by the embodiments of the present application;

[0048] Figure 5 is a specific flowchart of laying out the second parts to be laid out based on the target layout rules provided by the embodiments of the present application;

[0049] Figure 6 is a specific flowchart of laying out the second parts to be laid out based on the target layout rules provided by another embodiment of the present application;

[0050] Figure 7 is a specific flowchart of the automatic part layout method provided by another embodiment of the present application;

[0051] Figure 8 is a schematic structural diagram of the automatic part layout system provided by the embodiments of the present application;

[0052] Figure 9 It is a schematic diagram of the hardware structure of the computer device provided by the embodiments of the present application. Specific embodiments

[0053] In order to make the objectives, technical solutions and advantages of the present application more clear and understandable, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0054] It should be noted that although the functional modules are divided in the system schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order from the module division in the system or the order in the flowchart. Terms such as "first" and "second" in the specification, claims and the above-mentioned drawings are used to distinguish similar objects and do not necessarily need to describe a specific order or sequence.

[0055] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the technical field to which the present application belongs. The terms used herein are only for the purpose of describing the embodiments of the present application and are not intended to limit the present application.

[0056] A method for automatic part layout provided by the embodiments of the present application can be applied to a terminal, can also be applied to a server side, or can be software running on a terminal or a server side. In some embodiments, the terminal can be a smart phone, a tablet computer, a notebook computer, a desktop computer or a smart watch, etc.; the server side can be configured as an independent physical server, can also be configured as a server cluster or a distributed system composed of multiple physical servers, or can also be configured as a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms; the software can be an application implementing the above method, etc., but is not limited to the above forms.

[0057] Embodiments of the present application can be used in numerous general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multi-processor systems, microprocessor-based systems, set-top boxes, programmable consumer computer devices, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, and so on. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in a distributed computing environment where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.

[0058] In the field of machining such as automotive manufacturing and die manufacturing, CNC machining of various parts is often required. These enterprises usually face the problem of part layout. Especially when producing large quantities or complex parts, the efficiency and quality of layout directly affect production efficiency and cost.

[0059] When arranging parts, operators mainly rely on personal experience and intuition to determine the position and orientation of parts on the machining plane. Due to different experiences and habits of each person, the layout results often lack unified standards and rules, leading to chaotic layout. For example, the spacing between parts is inconsistent, or the orientation of parts is random. Operators need to repeatedly adjust the position and orientation of each part to ensure their reasonable distribution on the machining plane. And during manual layout, it is very difficult to rearrange the positions of parts according to the existing shape and size of the remaining material, resulting in a low utilization rate of the remaining material. For complex parts or large-volume orders, this manual layout method is very inefficient, causing material waste and unable to meet production requirements, which will affect subsequent machining efficiency and quality.

[0060] To solve the above problems, this embodiment provides an automatic part layout method, system, computer device, and medium. First, obtain the part dimensions, part quantities, and processing requirements of the parts to be laid out, so as to determine the technical requirements, tolerance requirements, etc. of the parts to be processed through the processing requirements. Then, compare the part dimensions, part quantities, and processing requirements with the preset waste material layout conditions to screen out the first part set that meets the waste material layout conditions and the second part set that does not meet the waste material layout conditions, facilitating subsequent processing of different types of parts. For the first part to be laid out in the first part set, this application embodiment directly layouts all the first parts to be laid out through the preset waste material blank plate, thereby improving the utilization rate of waste material layout and avoiding material waste; for the second part to be laid out in the second part set, that is, the part that does not require waste material layout, this application embodiment determines the target layout rule according to the part shape of the second part to be laid out and layouts the second part to be laid out based on the target layout rule, thereby being able to meet various types of layout requirements, adapt to various layout functions, further meet various production requirements, and improve the processing efficiency and processing quality.

[0061] Please refer to Figure 1 , Figure 1 is the flowchart of the specific method of the automatic part layout method provided by this application embodiment. In some embodiments, the method includes but is not limited to steps S101 to S104.

[0062] Step S101, obtain the part dimensions, part quantities, and processing requirements of the parts to be laid out.

[0063] In step S101 of some embodiments, this application embodiment obtains the part dimensions, part quantities, and processing requirements of all the parts to be laid out, facilitating subsequent selection of a suitable method for automatic layout based on the different dimensions and requirements of the parts.

[0064] It should be noted that the processing requirements in this application embodiment include but are not limited to the technical requirements, tolerance requirements, etc. for processing the parts to be laid out, and this application embodiment does not make specific limitations.

[0065] Step S102, compare the part dimensions, part quantities, and processing requirements with the preset waste material layout conditions, and screen out the first part set that meets the waste material layout conditions and the second part set that does not meet the waste material layout conditions.

[0066] In step S102 of some embodiments, the part dimensions, the number of parts, and the processing requirements are compared with the preset leftover material layout conditions to screen out different types of part sets. Specifically, a first part set that meets the leftover material layout conditions and a second part set that does not meet the leftover material layout conditions are screened out, facilitating subsequent selection of corresponding layout rules for different types of parts to meet various types of layout requirements.

[0067] It should be noted that the leftover material layout conditions in the embodiments of the present application can be set by the user according to their needs. For example, the leftover material layout conditions are that the part dimensions are between 120mm * 80mm * 10mm and 140mm * 100mm * 20mm, the number of parts is between 4 and 8, and the processing requirement is a thickness tolerance of +0.02 - 0.05mm, etc. The embodiments of the present application do not make specific limitations.

[0068] Step S103: For the first parts to be laid out in the first part set, all the first parts to be laid out are laid out using the preset leftover material blank plate.

[0069] In step S103 of some embodiments, for the first parts to be laid out in the first part set, that is, the parts that need to be laid out using leftover materials, in the embodiments of the present application, all the first parts to be laid out are laid out using the preset leftover material blank plate, which can ensure that the layout of the first parts to be laid out on the leftover material blank plate is more compact, improve the utilization rate of leftover materials, and avoid waste of leftover materials.

[0070] It should be noted that the leftover material blank plate in the embodiments of the present application refers to a blank plate with a certain allowance reserved.

[0071] Step S104: For the second parts to be laid out in the second part set, determine the target layout rule according to the part shape of the second parts to be laid out, and lay out the second parts to be laid out based on the target layout rule.

[0072] In step S104 of some embodiments, for the second parts to be laid out in the second part set, that is, the parts that do not need to be laid out using leftover materials, in the embodiments of the present application, determine the target layout rule according to the part shape of the second parts to be laid out, so as to be able to determine the layout rules corresponding to different types of parts, and lay out the second parts to be laid out based on the target layout rule, realizing multi-type layout of parts, thus being able to meet various types of layout requirements and adapt to various layout functions.

[0073] Please refer to Figure 2 , Figure 2 is the specific flowchart of laying out all the first parts to be laid out using the preset leftover material blank plate provided by the embodiments of the present application. In some embodiments, the method includes but is not limited to steps S201 to S203.

[0074] Step S201, set the first dimension of the surplus blank plate according to the processing requirements of the first parts to be typeset, and set the first part spacing according to the first part dimensions and the first part quantities of all the first parts to be typeset.

[0075] Step S202, perform a typesetting test on all the first parts to be typeset according to the first dimension, the first part spacing, and the first part quantities.

[0076] Step S203, when all the first parts to be typeset pass the typesetting test, typeset all the first parts to be typeset on the surplus blank plate according to the first dimension and the first part spacing.

[0077] In steps S201 to S203 of some embodiments, during the process of typesetting all the first parts to be typeset by using a preset surplus blank plate, in this application embodiment, first set the first dimension of the surplus blank plate according to the processing requirements of the first parts to be typeset, where the first dimension includes the X-axis dimension and the Y-axis dimension of the surplus blank plate, so as to realize the rational utilization of the surplus blank plate, avoid material waste, and set the first part spacing according to the first part dimensions and the first part quantities of all the first parts to be typeset, so as to improve the space utilization rate of the surplus blank plate, ensure that the first parts to be typeset can be rationally typeset on the surplus blank plate, and avoid the situation that the parts are too compact or too loose. Then, perform a typesetting test on all the first parts to be typeset according to the first dimension, the first part spacing, and the first part quantities, so as to verify whether all the first parts to be typeset can be rationally typeset on the surplus blank plate, avoid typesetting errors or surplus waste, and further improve the surplus utilization rate. When all the first parts to be typeset pass the typesetting test, it means that all the first parts to be typeset can be rationally typeset on the surplus blank plate, and all the first parts to be typeset can be typeset on the surplus blank plate according to the first dimension and the first part spacing, which can ensure that the layout of the first parts to be typeset on the surplus blank plate is more compact, improve the surplus utilization rate, and avoid the situation of surplus waste.

[0078] It should be noted that the first part spacing in this application embodiment is the interval distance between adjacent first parts to be typeset.

[0079] It can be understood that in the embodiment of the present application, the part size of the first part to be typeset is 120mm * 80mm * 10mm, the thickness tolerance is +0.02 - 0.05mm, and the number of parts is 4 as an example for illustration. If the first part to be typeset has thickness tolerance requirements, in order to prevent deformation after processing and not meeting the tolerance requirements, the embodiment of the present application selects a blank plate with a thickness of 12mm. If the typesetting spacing is 11mm, the typesetting blank size is 360 * 130 * 12mm; if the first part to be typeset has no tolerance requirements, a blank plate with a thickness of 10mm can be selected, and the typesetting size is 360 * 130 * 10mm.

[0080] Please refer to Figure 3 , Figure 3 which is a specific flowchart of the part automatic typesetting method provided by another embodiment of the present application. The method includes but is not limited to steps S301 to step S302.

[0081] It should be noted that steps S301 to step S302 occur after typesetting tests are performed on all the first parts to be typeset according to the first size, the first part spacing, and the first number of parts.

[0082] Step S301, when any one of the first parts to be typeset fails the typesetting test, set the second size of the surplus blank plate according to the processing requirements of the first part to be typeset, and set the second part spacing according to the first part size and the first number of parts.

[0083] Step S302, perform typesetting tests on all the first parts to be typeset according to the second size, the second part spacing, and the first number of parts until all the first parts to be typeset pass the typesetting test.

[0084] In steps S301 to S302 of some embodiments, after typesetting and testing all the first parts to be typeset according to the first size, the first part spacing, and the first number of parts, there may be a situation where the space of the leftover blank plate is insufficient, that is, there is a situation where some of the first parts to be typeset are not successfully displayed on the leftover blank plate. For example, only a part of the first part to be typeset can be displayed on the leftover blank plate or it cannot be displayed at all. When any one of the first parts to be typeset fails the typesetting test, for example, there is a situation where a part of the first part to be typeset is incomplete on the leftover blank plate, at this time, set the second size of the leftover blank plate according to the processing requirements of the first part to be typeset, that is, reset the sizes of the X-axis and Y-axis of the leftover blank plate, and set the second part spacing according to the first part size and the first number of parts, that is, reset the spacing distance between two adjacent first parts to be typeset. Then, typeset and test all the first parts to be typeset according to the second size, the second part spacing, and the first number of parts, that is, verify again whether the size of the current leftover blank plate can meet the typesetting requirements of all the first parts to be typeset until all the first parts to be typeset can pass the typesetting test, ensuring a more reasonable layout of the parts on the material, thereby improving the utilization rate of the leftover materials and avoiding the waste of leftover materials.

[0085] Please refer to Figure 4 , Figure 4 which is a specific flowchart for determining the target typesetting rule according to the part shape of the second part to be typeset provided by the embodiments of the present application. The method includes but is not limited to steps S401 to S407.

[0086] Step S401: Compare the part shape of the second part to be typeset with the preset standard sheet metal shape.

[0087] Step S402: When the part shape of the second part to be typeset meets the preset standard sheet metal shape, determine the array typesetting rule as the target typesetting rule.

[0088] Step S403: When the part shape of the second part to be typeset does not meet the preset standard sheet metal shape, compare the part shape of the second part to be typeset with the preset non-standard sheet metal shape.

[0089] Step S404: When the part shape of the second part to be typeset meets the non-standard sheet metal shape, determine the alignment typesetting rule as the target typesetting rule.

[0090] Step S405: When the part shape of the second part to be typeset does not meet the non-standard sheet metal shape, compare the part shape of the second part to be typeset with the preset irregular sheet metal shape.

[0091] Step S406: When the part shape of the second part to be typeset meets the shape of an irregular sheet metal, determine the position typesetting rule as the target typesetting rule.

[0092] Step S407: When the part shape of the second part to be typeset does not meet the shape of an irregular sheet metal, determine the free typesetting rule as the target typesetting rule.

[0093] In steps S401 to S407 of some embodiments, in the process of determining the target typesetting rule according to the part shape of the second part to be typeset, the embodiments of the present application first compare the part shape of the second part to be typeset with a preset standard sheet metal shape. When the part shape of the second part to be typeset meets the preset standard sheet metal shape, it indicates that the second part to be typeset at this time is a standard part with a regular shape, and the array typesetting rule can be directly determined as the target typesetting rule to realize the selection of the array typesetting rule, which is convenient for subsequent typesetting directly through the array typesetting rule. When the part shape of the second part to be typeset does not meet the preset standard sheet metal shape, it indicates that the part shape of the second part to be typeset at this time may be a special case. For example, there is a notch or a protrusion in the second part to be typeset, etc. At this time, the part shape of the second part to be typeset is compared with a preset non-standard sheet metal shape to determine whether the part shape of the second part to be typeset meets other standard requirements. When the part shape of the second part to be typeset meets the non-standard sheet metal shape, the alignment typesetting rule can be directly determined as the target typesetting rule, which can reduce the path change in the processing process and reduce the number of rotations and recalibrations of the part during the processing. When the part shape of the second part to be typeset does not meet the non-standard sheet metal shape, it indicates that the part shape of the second part to be typeset may be an unconventional shape, that is, a strange shape. For example, the second part to be typeset is a pentagram shape, a wedge shape, etc. At this time, the part shape of the second part to be typeset is compared with a preset irregular sheet metal shape. When the part shape of the second part to be typeset meets the irregular sheet metal shape, the position typesetting rule is determined as the target typesetting rule, which can ensure the position accuracy during the typesetting process and ensure that the parts are aligned with each other. When the part shape of the second part to be typeset does not meet the irregular sheet metal shape, the free typesetting rule can be most directly determined as the target typesetting rule, that is, the second part to be typeset is freely and simply typeset to improve the typesetting efficiency. In the embodiments of the present application, the second part to be typeset is respectively compared with different typesetting conditions to determine the corresponding typesetting rule, realizing multi-type typesetting of the parts, so as to meet various types of typesetting requirements and adapt to various typesetting functions.

[0094] It should be noted that the shape of the standard sheet material in the embodiments of the present application can be set according to the needs of the user. For example, the shape of the standard sheet material is a standard sheet material that is square, a standard material that is a perfect circle, etc. The shape of the non-standard sheet material can be set according to the needs of the user. For example, the shape of the non-standard sheet material has notches, bosses, etc. around the part. The shape of the irregular sheet material can be set according to the needs of the user, and the embodiments of the present application do not make specific restrictions.

[0095] In some embodiments, when the target layout rule is the free layout rule, the embodiments of the present application first set the sixth part spacing according to the second part sizes and the second part quantities of all the second parts to be laid out, and then perform automatic layout according to the sixth part spacing, thereby improving the layout efficiency.

[0096] Please refer to Figure 5 , Figure 5 which is a specific flowchart for laying out the second parts to be laid out based on the target layout rule provided by the embodiments of the present application. The method includes but is not limited to steps S501 to step S502.

[0097] Step S501, when the target layout rule is the array layout rule, set the third part spacing and the arrangement quantity according to the second part sizes and the second part quantities of all the second parts to be laid out.

[0098] Step S502, perform array layout on the second parts to be laid out according to the third part spacing and the arrangement quantity.

[0099] In steps S501 to S502 of some embodiments, during the process of laying out the second parts to be laid out based on the target layout rule, when the target layout rule is the array layout rule, at this time, set the third part spacing and the arrangement quantity according to the second part sizes and the second part quantities of all the second parts to be laid out, where the arrangement quantity is the number of parts laid out on the X-axis and the number of parts laid out on the Y-axis, to avoid the situation that the distance between parts is too large or too small during the layout process, and at the same time avoid the situation that there are too many or too few parts in the X-axis or Y-axis direction during the layout process, and then perform array layout on the second parts to be laid out according to the third part spacing and the arrangement quantity, so as to achieve reasonable layout of the second parts to be laid out with standard and regular shapes and improve the layout efficiency.

[0100] Please refer to Figure 6 , Figure 6 which is a specific flowchart for laying out the second parts to be laid out based on the target layout rule provided by another embodiment of the present application. In some embodiments, it includes but is not limited to steps S601 to S603.

[0101] Step S601, when the target layout rule is the alignment layout rule, set the fourth part spacing according to the second part sizes and the second part quantities of all the second parts to be layouted.

[0102] Step S602, select an alignment reference part and a part to be moved from the second parts to be layouted, and set the alignment direction and the alignment angle.

[0103] Step S603, control the part to be moved to move based on the alignment reference part according to the fourth part spacing, the alignment direction, and the alignment angle.

[0104] In steps S601 to S603 of some embodiments, when the target layout rule is the alignment layout rule, at this time, set the fourth part spacing according to the second part sizes and the second part quantities of all the second parts to be layouted, that is, the spacing distance between adjacent second parts to be layouted, to avoid the spacing distance between adjacent parts being too far or too close. After that, select an alignment reference part and a part to be moved from the second parts to be layouted, where the alignment reference part is the part used as a reference, and the part to be moved is the part that needs to be moved, and set the alignment direction and the alignment angle. Among them, the alignment direction includes the directions of the X-axis, Y-axis, and Z-axis, and the alignment angle is the offset angle during the movement of the part. Then, according to the fourth part spacing, the alignment direction, and the alignment angle, control the part to be moved to move based on the alignment reference part, that is, align and move the part to be moved with reference to the alignment reference part, so as to achieve the alignment between the second parts to be layouted, improve the layout efficiency and neatness, and facilitate the subsequent unified processing of parts that meet the shape of non-standard sheet materials.

[0105] It can be understood that aligning the parts for layout can simplify the machining path of the tool, reduce the moving distance and direction change of the tool, and thus improve the machining efficiency. For example, if the notches or bosses of the parts are aligned, the tool can machine along a straight line or a simple curved path instead of frequently changing directions.

[0106] Please refer to Figure 7 , Figure 7 which is the specific flowchart of the automatic part layout method provided by another embodiment of the present application. The method includes but is not limited to steps S701 to S703.

[0107] Step S701, when the target layout rule is the position layout rule, set the fifth part spacing according to the second part sizes and the second part quantities of all the second parts to be layouted.

[0108] Step S702, select a position reference part and a part to be adjusted from the second parts to be layouted, and determine the reference plane of the position reference part.

[0109] Step S703: Control the part to be adjusted to perform position adjustment with the reference plane as the reference according to the fifth part spacing.

[0110] In steps S701 to S703 of some embodiments, when the target layout rule is the position layout rule, set the fifth part spacing according to the second part sizes and the second part quantities of all the second parts to be laid out, that is, the spacing distance between adjacent second parts to be laid out, to avoid the spacing distance between adjacent parts being too far or too close. Then, select a position reference part and a part to be adjusted from the second parts to be laid out, and determine the reference plane of the position reference part. Here, the position reference part is the part used as a reference, and the part to be adjusted is the part that needs to perform position adjustment. Then, determine the reference plane of the position reference part, and then control the part to be adjusted to perform position adjustment with the reference plane as the reference according to the fifth part spacing. Through reasonable position layout, the stability and consistency of the parts during the processing can be ensured, and the dimensional errors and shape deformations caused by clamping and processing errors can be reduced.

[0111] Please refer to Figure 8 , the embodiment of the present application also provides a part automatic layout system, which can implement the above-mentioned part automatic layout method. The system includes:

[0112] A part acquisition module 801, configured to acquire the part sizes, part quantities, and processing requirements of the parts to be laid out;

[0113] A condition comparison module 802, configured to compare the part sizes, part quantities, and processing requirements with preset leftover material layout conditions, and screen out a first part set that meets the leftover material layout conditions and a second part set that does not meet the leftover material layout conditions;

[0114] A leftover material layout module 803, configured to layout all the first parts to be laid out through a preset leftover material blank plate for the first parts to be laid out in the first part set;

[0115] A multi-type layout module 804, configured to determine a target layout rule according to the part shapes of the second parts to be laid out in the second part set, and layout the second parts to be laid out based on the target layout rule.

[0116] In some embodiments, the part automatic layout system of the embodiment of the present application further includes a re-layout module. The re-layout module is configured to, when any one of the first parts to be laid out fails the layout test, set the second size of the leftover material blank plate according to the processing requirements of the first part to be laid out, and set the second part spacing according to the first part sizes and the first part quantities; and perform a layout test on all the first parts to be laid out according to the second size, the second part spacing, and the first part quantities until all the first parts to be laid out pass the layout test.

[0117] Reference Figure 9 , Figure 9 is a schematic diagram of the hardware structure of the computer device provided by an embodiment of the present application.

[0118] The following combines Figure 9 to describe in detail the hardware structure of the computer device. The computer device includes: a processor 910, a memory 920, an input / output interface 930, a communication interface 940, and a bus 950.

[0119] The processor 910 can be implemented by means of a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, etc., and is used to execute relevant programs to implement the technical solutions provided by the embodiments of the present application;

[0120] The memory 920 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM), etc. The memory 920 can store an operating system and other application programs. When implementing the technical solutions provided by the embodiments of this specification through software or firmware, the relevant program codes are stored in the memory 920 and are called by the processor 910 to execute the automatic layout method of parts in the embodiments of the present application;

[0121] The input / output interface 930 is used to implement information input and output;

[0122] The communication interface 940 is used to implement communication interaction between this device and other devices, and can implement communication through a wired method (such as USB, network cable, etc.) or through a wireless method (such as mobile network, WIFI, Bluetooth, etc.); and the bus 950 transmits information between various components of the device (such as the processor 910, the memory 920, the input / output interface 930, and the communication interface 940);

[0123] Among them, the processor 910, the memory 920, the input / output interface 930, and the communication interface 940 are communicatively connected to each other inside the device through the bus 950.

[0124] An embodiment of the present application also provides a storage medium, which is a computer-readable storage medium. The computer-readable storage medium stores a computer program. When the computer program is executed by a computer, the computer is used to execute the automatic layout method of parts as described in the above embodiments of the present application.

[0125] The memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer-executable programs. In addition, the memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid-state storage devices. In some embodiments, the memory may optionally include memories remotely located relative to the processor, and these remote memories can be connected to the processor through a network. Examples of the above networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0126] The embodiments described in the embodiments of this application are for more clearly illustrating the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided by the embodiments of this application. Those skilled in the art will know that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided by the embodiments of this application are equally applicable to similar technical problems.

[0127] Those skilled in the art can understand that Figures 1 to 9 the technical solutions shown do not constitute a limitation on the embodiments of this application, and may include more or fewer steps than shown in the figures, or combine certain steps, or different steps.

[0128] The above-described embodiments of the parts automatic typesetting system are merely illustrative. The units described as separate components may or may not be physically separated, that is, they may be located in one place, or may be distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0129] Those of ordinary skill in the art can understand that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices, can be implemented as software, firmware, hardware, and appropriate combinations thereof.

[0130] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of this application and the above drawings are used to distinguish similar objects, and do not have to be used to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of this application described here can be implemented in an order other than those illustrated or described here. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units does not have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products, or devices.

[0131] It should be understood that in this application, "at least one (item)" means one or more, and "a plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that there can be three relationships. For example, "A and / or B" can mean: only A exists, only B exists, and both A and B exist at the same time. Among them, A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one (one) of the following" or similar expressions refer to any combination of these items, including any combination of single item (one) or plural items (ones). For example, at least one (one) of a, b, or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0132] In several embodiments provided in this application, it should be understood that the disclosed automatic parts layout system and method can be implemented in other ways. For example, the automatic parts layout system embodiments described above are only illustrative. For example, the division of units is only a logical function division. In actual implementation, there can be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling or direct coupling or communication connection to each other can be through some interfaces. The indirect coupling or communication connection of the automatic parts layout system or unit can be in electrical, mechanical or other forms.

[0133] The units described as separate components may or may not be physically separated. The components displayed as units may or may not be physical units, that is, they can be located in one place, or they can be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0134] In addition, each functional unit in various embodiments of this application can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above integrated units can be implemented in the form of hardware or in the form of software functional units.

[0135] When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes multiple instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods of various embodiments of this application. The aforementioned storage medium includes: various media that can store programs, such as USB flash drives, mobile hard disks, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical discs.

[0136] The preferred embodiments of the embodiments of this application have been described above with reference to the accompanying drawings, and thus do not limit the scope of the rights of the embodiments of this application. Any modifications, equivalent replacements, and improvements made by those skilled in the art without departing from the scope and essence of the embodiments of this application shall be within the scope of the rights of the embodiments of this application.

Claims

1. A method for automatic typesetting of parts, characterized in that: The method comprises: Obtain the part size, part quantity and processing requirements of the parts to be layout; Compare the part size, the part quantity and the processing requirements with the preset residual material layout conditions, and select a first part set that meets the residual material layout conditions and a second part set that does not meet the residual material layout conditions; For the first parts to be laid out in the first parts set, laying out all the first parts to be laid out by using a preset residual blank plate; For the second part to be laid out in the second part set, a target layout rule is determined according to the part shape of the second part to be laid out, and the second part to be laid out is laid out based on the target layout rule.

2. The automatic parts layout method according to claim 1, characterized in that: The method of performing layout of all the first parts to be layouted by using a preset residual blank plate includes: Setting a first size of the residual blank plate according to the processing requirements of the first parts to be arranged, and setting a first part spacing according to the first part sizes and the first part quantity of all the first parts to be arranged; Performing a layout test on all the first parts to be layouted according to the first size, the first part spacing, and the first part quantity; When all the first parts to be laid out pass the layout test, all the first parts to be laid out are laid out on the residual blank plate according to the first size and the first part spacing.

3. The automatic parts layout method according to claim 2, characterized in that: After performing layout testing on all the first parts to be layouted according to the first size, the first part spacing, and the first part quantity, the method further includes: When any of the first parts to be laid out fails the layout test, a second size of the residual blank plate is set according to the processing requirements of the first parts to be laid out, and a second part spacing is set according to the first part size and the first part quantity; Perform layout tests on all the first parts to be layouted according to the second size, the second part spacing, and the first part quantity until all the first parts to be layouted pass the layout test.

4. The automatic parts layout method according to claim 1, characterized in that: The step of determining a target layout rule according to the part shape of the second part to be layout comprises: Comparing the shape of the second part to be typeset with a preset standard sheet shape; When the shape of the second part to be laid out meets the preset standard sheet material shape, the array layout rule is determined as the target layout rule; When the part shape of the second part to be typeset does not meet the preset standard sheet material shape, comparing the part shape of the second part to be typeset with the preset non-standard sheet material shape; In the case where the shape of the second part to be typeset satisfies the non-standard sheet material shape, determining the alignment typesetting rule as the target typesetting rule; When the part shape of the second part to be typeset does not satisfy the non-standard sheet shape, comparing the part shape of the second part to be typeset with a preset irregular sheet shape; In the case where the shape of the second part to be laid out satisfies the irregular sheet material shape, determining the positional laying rule as the target laying rule; In the case that the part shape of the second part to be laid out does not satisfy the irregular sheet metal shape, the free layout rule is determined as the target layout rule.

5. The automatic parts layout method according to claim 4, characterized in that: The step of typesetting the second part to be typeset based on the target typesetting rule includes: When the target layout rule is the array layout rule, setting a third part spacing and an arrangement quantity according to the second part size and the second part quantity of all the second parts to be layout; The second parts to be arranged are arranged in an array according to the third part spacing and the arrangement quantity.

6. The automatic parts layout method according to claim 4, characterized in that: The step of typesetting the second part to be typeset based on the target typesetting rule includes: When the target layout rule is the alignment layout rule, a fourth part spacing is set according to the second part size and the second part quantity of all the second parts to be layouted; Select the alignment reference part and the part to be moved in the second part to be arranged, and set the alignment direction and alignment angle; According to the fourth part spacing, the alignment direction and the alignment angle, the part to be moved is controlled to move with the alignment reference part as a reference.

7. The automatic parts layout method according to claim 4, characterized in that: The step of typesetting the second part to be typeset based on the target typesetting rule includes: When the target layout rule is the position layout rule, a fifth part spacing is set according to the second part size and the second part quantity of all the second parts to be layouted; Selecting a position reference part and a part to be adjusted from the second part to be typeset, and determining a reference surface of the position reference part; According to the fifth part spacing, the part to be adjusted is controlled to adjust its position based on the reference surface.

8. A parts automatic typesetting system, characterized in that: The system comprises: The parts acquisition module is used to obtain the part size, part quantity and processing requirements of the parts to be typeset; A condition comparison module, used to compare the part size, the part quantity and the processing requirements with the preset residual material layout conditions, and screen out a first part set that meets the residual material layout conditions and a second part set that does not meet the residual material layout conditions; A residual material layout module, used for layouting all the first parts to be laid out in the first part set by using a preset residual material blank plate; The multi-type layout module is used to determine a target layout rule for a second part to be layout in the second part set according to the part shape of the second part to be layout, and layout the second part to be layout based on the target layout rule.

9. A computer device, characterized in that: The computer device includes a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor is used to execute the automatic part layout method according to any one of claims 1 to 7.

10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and the computer-readable storage medium stores a computer program. When the computer program is executed by a computer, the computer is used to execute the automatic part typesetting method according to any one of claims 1 to 7.