A method for creating a sheet metal process card

Automatically analyze sheet metal digital models through the API interface function of the three-dimensional design software to generate sheet metal process cards, solving the problems of low manual operation efficiency and high error rate for newcomers in the existing technology, and achieving efficient and accurate process card production.

CN115270355BActive Publication Date: 2025-05-30NANJING WIT SCI & TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211032990.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-26
Publication Date
2025-05-30
Estimated Expiration
2042-08-26

AI Technical Summary

Technical Problem

In the prior art, the production of sheet metal process card requires manual operation, resulting in low work efficiency and high requirements for staff quality, and newcomers are prone to making mistakes during the operation.

Method used

Through the API interface function of the three-dimensional design software, the bend surfaces and processes in the sheet metal digital model are automatically analyzed, and the sheet metal process cards are generated, which reduces manual calculations and annotations, and improves calculation accuracy and process card production efficiency.

Benefits of technology

It realizes the rapid generation of sheet metal process cards, reduces the possibility of manual errors, and improves the efficiency and accuracy of process card production.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115270355B_ABST
    Figure CN115270355B_ABST
Patent Text Reader

Abstract

The present invention provides a method for creating a sheet metal process card, comprising the following steps: S1: Open the sheet metal digital model; S2: According to the sheet metal digital model provided in step S1, obtain all the processes of the sheet metal bending surfaces in the sheet metal digital model, and display the IDs of the matching bending surfaces in the sheet metal bending process table; calculate the bending height, bending length, and bending angle; S3: Arrange the bending processes; in the bending process table, perform an arrangement operation on the bending processes in the list to modify the arrangement order of the bending processes; S4: Create a sheet metal process card; The present invention provides a new method for creating a sheet metal process card, automatically analyzing the bending surfaces and bending processes on a three-dimensional design software to generate a sheet metal process card, reducing the heavy workload of process engineers and improving the work efficiency of process engineers.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer science, and particularly to a method for creating a sheet metal process card. Background Art

[0002] When engineers design digital sheet metal products, they usually create digital models of sheet metal parts. The manufacturer manufactures sheet metal components according to the digital model drawings. During the production and manufacturing process of sheet metal components, sheet metal process cards are made to guide production.

[0003] The sheet metal process card includes the name of the sheet metal component, the name of the process, the material, the equipment for performing the process, the effect before the process, the effect after the process, etc. The processing process card is an indispensable part of the production site and guides the operators on site by reminding them of the specific operation methods.

[0004] Currently, the method for making sheet metal process cards is as follows: manually sketch the bending process steps, manually mark the bending dimensions, and manually make the process cards.

[0005] This production method has the following drawbacks:

[0006] 1. Manually making sheet metal process cards takes 2 - 4 hours to make a process card for one sheet metal component, resulting in low work efficiency.

[0007] 2. It has high requirements for the quality of staff. When the staff on the production site are new, their understanding of the operation process is not high, and mistakes are very likely to occur during the operation process. Summary of the Invention

[0008] The purpose of the present invention is to solve the above-mentioned drawbacks existing in the prior art, and to propose a method for creating a sheet metal process card.

[0009] To achieve the above purpose, the present invention adopts the following technical solution: A method for creating a sheet metal process card, comprising the following steps:

[0010] S1: Open the sheet metal digital model;

[0011] The sheet metal digital model refers to the sheet metal digital model created by engineers when designing sheet metal products;

[0012] The thickness of the same part of the sheet metal digital model is consistent; denote the thickness of the sheet metal digital model as t;

[0013] S2: Obtain the sheet metal bending process; according to the sheet metal digital model provided in step S1, obtain the processes of all sheet metal bending surfaces in the sheet metal digital model, obtain the ID of the matching bending surface, calculate the bending height, bending length, and bending angle; display the ID, bending height, bending length, and bending angle of the matching bending surface in the sheet metal bending process table;

[0014] It includes the following sub-steps:

[0015] S21: Traverse all solid surfaces of the sheet metal digital model through the API interface function provided by the 3D design software, obtain the unique identification ID of all solid surfaces, and obtain the thickness t of the sheet metal digital model;

[0016] The API interface function refers to the entry function and exit function of the 3D design software;

[0017] S22: Obtain the ID of the matching bending surface;

[0018] Obtain the types of all solid surfaces through the API interface function provided by the 3D design software; the types of the solid surfaces include plane, cylindrical surface, etc.;

[0019] Collect the cylindrical surfaces, and obtain the axis points and radii of the cylindrical surfaces through the API interface function provided by the 3D design software;

[0020] It includes the following sub-steps:

[0021] S221: Loop through all cylindrical surfaces to obtain coaxial cylindrical surfaces;

[0022] Match all the obtained cylindrical surfaces in pairs to obtain coaxial cylindrical surfaces;

[0023] Obtain the axis points of the looped cylindrical surfaces, denoted as points A1 and B1, the coordinates of point A1 are (x1, y1, z1), and the coordinates of point B1 are (x2, y2, z2);

[0024] Obtain the axis points of the cylindrical surfaces to be matched, denoted as points A2 and B2, the coordinates of point A2 are (x3, y3, z3), and the coordinates of point B2 are (x4, y4, z4);

[0025] Connect points A1 and B1, and according to the distance formula from a point to a line segment, calculate the distances d1 from point A2 to the line segment A1B1 and d2 from point B2 to the line segment A1B1 respectively. When the distances d1 and d2 are both 0, determine that these two cylindrical surfaces are coaxial cylindrical surfaces;

[0026] S222: In the coaxial cylindrical surfaces, obtain the matching bending surface;

[0027] Such as Figure 3As shown in the figure, obtain the bending radius of the circular cylindrical surface, denoted as R1, and obtain the bending radius of the coaxial cylindrical surface, denoted as R2. When R1 - R2 = t or R2 - R1 = t, it is a pair of matching bending surfaces.

[0028] S223: Obtain the ID of the matching bending surface;

[0029] Obtain the ID of the matching bending surface in the sheet metal digital model through the API interface function of the 3D design software;

[0030] S23: Calculate the bending length, bending height, and bending angle;

[0031] It includes the following sub-steps:

[0032] S231: Calculate the bending length;

[0033] As Figure 3 shown in the figure, the bending length is the distance from point A1 to point B1. Let the bending length be d;

[0034] Calculate according to the distance formula between two points to get d = ;

[0035] S232: Calculate the bending height;

[0036] As Figure 3 shown in the figure, for the matching bending surface obtained according to step S223, compared with the circular cylindrical surface, assume the cylindrical surface with a larger radius is surface B. Obtain all the edges of surface B through the API interface function provided by the 3D design software. There are a total of 4 edges, two arc edges and two straight edges. Assume the arc edges are c1 and c2 respectively. Obtain the length of the adjacent tangent edge t1 of c1 and the length of the adjacent tangent edge t2 of c2 through the API function interface provided by the 3D design software; Compare the lengths of t1 and t2. Assume the long edge is the k edge and the short edge is the h edge. The short edge h is the bending height;

[0037] The value of the larger of the two edges is the value of the bending height h;

[0038] S233: Calculate the bending angle;

[0039] Let the bending angle be θ;

[0040] Obtain the starting angle α and the ending angle β of the c1 arc edge through the API interface function provided by the 3D design software;

[0041] The bending angle θ = β - α;

[0042] S24: Display the ID, bending height, bending length, and bending angle of the matching bending surface in the sheet metal bending process table;

[0043] Input the ID of the matching bending surface, the bending height, the bending length, and the value of the bending angle into the sheet metal bending process table in the 3D design software, as Figure 2 shown, the ID of the matching bending surface, the bending height, the bending length, and the value of the bending angle are displayed in the sheet metal bending process table;

[0044] Obtain the ID of the matching bending surface through the 3D design software, calculate the bending length, the bending height, and the bending angle, reducing the workload of manual calculation and improving the calculation accuracy and the efficiency of making the sheet metal process card.

[0045] S3: Arrange the bending processes;

[0046] In the bending process table, perform an arrangement operation on the listed bending processes to modify the arrangement order of the bending processes;

[0047] The arranging of the bending processes refers to manually adjusting the order of the bending processes;

[0048] The arrangement operations include three methods: moving up, moving down, and dragging;

[0049] S4: Create a sheet metal process card;

[0050] Flatten the digital sheet metal model opened in step S1, obtain the bending process table of step S3, bend one process in sequence, create an engineering drawing, create a bending view, dimension the bending, capture the bending effect diagram, write the effect diagram and the bending data into the EXCEL template file, form a sheet metal process card, and save the file.

[0051] It includes the following sub-steps:

[0052] S41: Flatten the digital sheet metal model opened in step S1, and flatten the sheet metal model through the API interface function provided by the 3D design software;

[0053] S42: Obtain the bending process table of step S2, bend one process in sequence, and bend the ID of the bending surface provided in step S2 through the API interface function provided by the 3D design software to bend the part and form a bending effect. Loop through the bending table, and create an engineering drawing, create a bending view, dimension the bending, and capture the bending effect diagram for each process;

[0054] It includes the following sub-steps:

[0055] S421: Create an engineering drawing;

[0056] Create a 2D engineering drawing with the same name through the API interface function provided by the 3D design software;

[0057] S422: Create a bending view;

[0058] Obtain the bending data of step S2, points A1 and B1, and calculate the vector , denoted as the Z vector. Obtain two points m and n on side t1 through the API provided by the 3D design software, and calculate the vector , denoted as the X vector. Use and for cross product of vectors to obtain , denoted as the Z vector. Construct a viewing matrix. Based on the X vector, Y vector, Z vector, and point A1, create a viewing matrix M. Use the API interface function of the 3D design software to create a standard view with view M and create a projection view;

[0059] S423: Mark the bending dimensions;

[0060] Obtain the data of step S232, the 4 sides of surface B, and the arc sides c1 and c2. Use the API interface function of the 3D design software to mark the dimensions of c1 and c2. Based on the data k and h sides obtained in step S2, use the API interface function of the 3D design software to obtain two points k1 and k2 on side k, and obtain two points h1 and h2 on side h. Connect k1 and k2 to get the line segment k1k2. According to the point-to-line distance formula provided in step S2, calculate the distances from points h1 and h2 to the line segment k1k2, and obtain hd1 and hd2 respectively. Compare the magnitudes of hd1 and hd2, and the point with the smaller distance is h min ; Use the API interface function of the 3D design software to mark the dimensions of k and h min , as shown in Figure 5 , to form a sheet metal bending effect diagram;

[0061] S424: Capture the bending effect diagram;

[0062] Use the API interface function of the 3D design software to obtain the regional coordinates of the drawing, use the QApplication::primaryScreen()->grabWindow function to obtain the regional bending effect diagram, and save the captured bending effect diagram to the temporary directory;

[0063] S43: Create a process card;

[0064] Call the process card template, use the standard copy command to copy an existing EXCEL template file with a good format, copy the EXCEL template file to the specified directory, fill in the EXCEL template file with the bending data provided in step S2 and the bending effect diagram provided in step S423, and save the file, as shown in Figure 6 , to form a sheet metal process card;

[0065] Create engineering drawings through 3D design software, create bending views, mark bending dimensions, capture bending effect diagrams, write the effect diagrams and bending data into an EXCEL template file to form a sheet metal process card. Use an intelligent method to replace the existing methods of manual sorting, manual screenshotting, and manual filling of process requirements, reducing the possibility of human errors, reducing the occurrence of production accidents, and improving the production efficiency of sheet metal part process cards.

[0066] Compared with the prior art, the beneficial effects of the present invention are as follows:

[0067] The present invention creates a new method for generating sheet metal process cards, automatically analyzes the bending surface and bending processes on 3D design software, generates sheet metal process cards, without manual model analysis or manual drawing of bending drawings, and a sheet metal process card table can be output in a few seconds for one drawing. It reduces the heavy workload of process engineers and improves the work efficiency of process engineers. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] Figure 1 It is a flowchart of the steps of a method for creating a sheet metal process card according to the present invention;

[0069] Figure 2 It is a sheet metal bending process table of a method for creating a sheet metal process card according to the present invention;

[0070] Figure 3 It is a schematic diagram of the bending length of a cylindrical surface of a method for creating a sheet metal process card according to the present invention;

[0071] Figure 4 It is a schematic diagram of the bending height of a cylindrical surface of a method for creating a sheet metal process card according to the present invention;

[0072] Figure 5 It is a sheet metal bending effect diagram of a method for creating a sheet metal process card according to the present invention;

[0073] Figure 6 It is a schematic diagram of the effect of a sheet metal process card of a method for creating a sheet metal process card according to the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0074] To further understand the purpose, structure, features, and functions of the present invention, the following is a detailed description in conjunction with embodiments.

[0075] A method for creating a sheet metal process card includes the following steps:

[0076] S1: Open the sheet metal digital model;

[0077] The sheet metal digital model refers to the sheet metal digital model created by engineers when designing sheet metal products;

[0078] The thickness of the same part in the sheet metal digital model is consistent; denote the thickness of the sheet metal digital model as t;

[0079] S2: Obtain the sheet metal bending process; according to the sheet metal digital model provided in step S1, obtain the processes of all sheet metal bending surfaces in the sheet metal digital model, obtain the ID of the matching bending surface, calculate the bending height, bending length, and bending angle; display the ID, bending height, bending length, and bending angle of the matching bending surface in the sheet metal bending process table;

[0080] The sheet metal bending process includes cutting, punching / cutting / combined, folding, Riveting , splicing, forming, etc., and each action is a process;

[0081] It includes the following sub-steps:

[0082] S21: Traverse all solid surfaces of the sheet metal digital model through the API interface function provided by the 3D design software, obtain the unique identification ID of all solid surfaces, and obtain the thickness t of the sheet metal digital model;

[0083] The API interface function refers to the entry function and exit function of the 3D design software;

[0084] S22: Obtain the ID of the matching bending surface;

[0085] Obtain the types of all solid surfaces through the API interface function provided by the 3D design software; the types of the solid surfaces include plane, cylindrical surface, etc.;

[0086] Collect the cylindrical surfaces, and obtain the axis points and radii of the cylindrical surfaces through the API interface function provided by the 3D design software;

[0087] It includes the following sub-steps:

[0088] S221: Loop through all cylindrical surfaces to obtain coaxial cylindrical surfaces;

[0089] Match all the obtained cylindrical surfaces in pairs to obtain coaxial cylindrical surfaces;

[0090] Obtain the axis points of the looped cylindrical surfaces, denoted as point A1, B1, the coordinates of point A1 are (x1, y1, z1), and the coordinates of point B1 are (x2, y2, z2);

[0091] Obtain the axis points of the cylindrical surfaces to be matched, denoted as point A2, B2, the coordinates of point A2 are (x3, y3, z3), and the coordinates of point B2 are (x4, y4, z4);

[0092] Connect points A1 and B1. According to the distance formula from a point to a line segment, calculate the distance d1 from point A2 to line segment A1B1 and the distance d2 from point B2 to line segment A1B1 respectively. When both d1 and d2 are 0, determine that these two cylindrical surfaces are coaxial cylindrical surfaces;

[0093] S222: In the coaxial cylindrical surfaces, obtain the matching bending surface;

[0094] As Figure 3 shown, obtain the bending radius of the circular cylindrical surface, denoted as R1, and obtain the bending radius of the coaxial cylindrical surface, denoted as R2. When R1 - R2 = t or R2 - R1 = t, they are a pair of matching bending surfaces;

[0095] S223: Obtain the ID of the matching bending surface;

[0096] Obtain the ID of the matching bending surface in the sheet metal digital model through the API interface function of the 3D design software;

[0097] S23: Calculate the bending length, bending height, and bending angle;

[0098] It includes the following sub - steps:

[0099] S231: Calculate the bending length;

[0100] As Figure 3 shown, the bending length is the distance from point A1 to point B1. Let the bending length be d;

[0101] Calculate d = ;

[0102] S232: Calculate the bending height;

[0103] As Figure 4 shown, according to the matching bending surface obtained in step S223, compared with the circular cylindrical surface, assume the cylindrical surface with a larger radius is surface B. Obtain all the edges of surface B through the API interface function provided by the 3D design software. There are a total of 4 edges, two arc edges and two straight edges. Let the arc edges be c1 and c2, and obtain the length of the adjacent tangent edge t1 of c1 and the length of the adjacent tangent edge t2 of c2 through the API function interface provided by the 3D design software; Compare the lengths of t1 and t2. Assume the longer edge is the k - edge and the shorter edge is the h - edge. The shorter edge h is the bending height;

[0104] The value of the larger of the two edges is the value of the bending height h;

[0105] S233: Calculate the bending angle;

[0106] Let the bending angle be θ;

[0107] AsFigure 4 As shown, obtain the starting angle α and the ending angle β of the c1 circular arc edge through the API interface function provided by the 3D design software;

[0108] The bending angle θ = β - α;

[0109] S24: Display the ID of the matched bending surface, the bending height, the bending length, and the bending angle in the sheet metal bending process table;

[0110] Input the ID of the matched bending surface, the bending height, the bending length, and the value of the bending angle into the sheet metal bending process table in the 3D design software. As Figure 2 shown, display the ID of the matched bending surface, the bending height, the bending length, and the value of the bending angle in the sheet metal bending process table;

[0111] S3: Arrange the bending processes;

[0112] The arrangement of the bending processes refers to manually adjusting the order of the bending processes;

[0113] In the bending process table, perform an arrangement operation on the listed bending processes to modify the arrangement order of the bending processes;

[0114] The arrangement operations include three methods: moving up, moving down, and dragging;

[0115] The specific operation steps for moving up are as follows: Select a row of data of a bending process in the list. Let the serial number of the selected row be N. Click the up button to swap the bending data of the Nth row and the bending data of the (N - 1)th row, and automatically select the (N - 1)th row to achieve the up movement operation of the selected row;

[0116] The specific operation steps for moving down are as follows: Select a row of data of a bending process in the list. Click the down button. Let the serial number of the selected row be N. Swap the bending data of the Nth row and the bending data of the (N + 1)th row, and automatically select the (N + 1)th row to achieve the down movement operation of the selected row;

[0117] The specific operation steps for dragging are as follows: Select a row of data of a bending process in the list. Let the serial number of the selected row be N and the serial number of the row after dragging be M. Hold down the left mouse button on the Nth row and drag it to the position of the Mth row. When N is less than M, insert the data of the Nth row into the position of the Mth row, and move the data between the (N + 1)th row and the Mth row up by one row number; when N is greater than M, insert the data of the Nth row into the position of the Mth row, and move the data between the Mth row and the (N - 1)th row down by one row number to achieve the dragging and sorting action of the bending processes.

[0118] S4: Create a sheet metal process card;

[0119] Unfold the digital sheet metal model opened in step S1, obtain the bending process table in step S3, bend one process in sequence, create an engineering drawing, create a bending view, dimension the bending, capture the bending effect diagram, write the effect diagram and bending data into the EXCEL template file, form a process card, and save the file.

[0120] It includes the following sub-steps:

[0121] S41: Unfold the digital sheet metal model opened in step S1, and unfold the sheet metal model through the API interface function provided by the 3D design software;

[0122] S42: Obtain the bending process table provided by S2, bend one process in sequence, bend the bending surface ID provided by step S2 through the API interface function provided by the 3D design software, and bend the part to form a bending effect. Loop through the process table, and create an engineering drawing, create a bending view, dimension the bending, and capture the bending effect diagram for each process;

[0123] It includes the following sub-steps:

[0124] S421: Create an engineering drawing;

[0125] Create a 2D engineering drawing with the same name through the API interface function provided by the 3D design software, use a horizontal A4 drawing frame with a drawing frame size of 210mm X 297mm; the origin position of the drawing is the lower left corner (0, 0) point;

[0126] S422: Create a bending view;

[0127] Obtain the bending data in step S2, points A1 and B1, and calculate the vector Set it as the Z vector, obtain two points m and n on side t1 through the API provided by the 3D design software, and calculate the vector Set it as the X vector, use and Cross multiply the vectors to get Set it as the Z vector, construct a viewing matrix, and create a viewing matrix M according to the X vector, Y vector, Z vector, and point A1. Use the viewing M to create a standard view through the API interface function provided by the 3D design software and place it at the middle position (105, 149) of the drawing. Create a projection view through the API provided by the 3D design software and place it at the position (150, 149);

[0128] S423: Dimension the bending;

[0129] Obtain the data of step S232. For the 4 sides of surface B and the arc edges c1 and c2, use the API interface functions provided by the 3D design software to mark the dimensions of c1 and c2. According to the data k and the h side obtained in step S2, use the API interface functions provided by the 3D design software to obtain two points k1 and k2 on the k side, and two points h1 and h2 on the h side. Connect k1 and k2 to obtain the line segment k1k2. According to the point-to-line distance formula provided in step S2, calculate the distances from points h1 and h2 to the line segment k1k2, and obtain hd1 and hd2 respectively. Compare the magnitudes of hd1 and hd2, and the point with the smaller distance is h min , use the API interface functions provided by the 3D design software to mark the dimensions of k and h min ; As Figure 5 shown, form the sheet metal bending effect diagram;

[0130] S424: Capture the sheet metal bending effect diagram;

[0131] Use the API interface functions provided by the 3D design software to obtain the regional coordinates of the drawing, use the QApplication::primaryScreen()->grabWindow function to obtain the regional bending effect diagram, and save the captured bending effect diagram to the temporary directory;

[0132] S43: Create a process card;

[0133] Call the process card template, use the standard copy command to copy an existing EXCEL template file with a good format, copy the EXCEL template file to the specified directory, and fill the bending data provided in step S2 and the sheet metal bending effect diagram provided in step S423 into the EXCEL template file. Write to the EXCEL template file using a third-party control, QXLSX, which does not depend on the office and wps components. First, define a QXlsx::Document xlsx file class, create the page function xlsx.addSheet(h), the data writing function xlsx.write(iexcelrow, 1, qtext0), the image insertion function xlsx.insertImage(1, 0, image[a].scaled(250, 200, Qt::IgnoreAspectRatio, Qt::SmoothTransformation)), and save the file xlsx.saveAs(xlsFile). As Figure 6 shown, form the sheet metal process card;

[0134] The present invention has been described by the above related embodiments. However, the above embodiments are only examples for implementing the present invention. It must be pointed out that the disclosed embodiments do not limit the scope of the present invention. On the contrary, modifications and refinements made without departing from the spirit and scope of the present invention fall within the scope of patent protection of the present invention.

Claims

1. A method for creating a sheet metal process card, characterized in that: It includes the following steps: S1: Open the sheet metal digital model; The sheet metal digital model refers to the sheet metal digital model created by engineers when designing sheet metal products; The thickness of the same part in the sheet metal digital model is consistent; S2: Obtain the sheet metal bending process; According to the sheet metal digital model provided in step S1, obtain the processes of all sheet metal bending surfaces in the sheet metal digital model, obtain the IDs of the matching bending surfaces, calculate the bending height, bending length, and bending angle; Display the IDs, bending height, bending length, and bending angle of the matching bending surfaces in the sheet metal bending process table; It includes the following sub-steps: S21: Traverse all solid surfaces of the sheet metal digital model through the API interface function provided by the 3D design software to obtain the unique identification ID of all solid surfaces, and obtain the thickness t of the sheet metal digital model; The API interface function refers to the entry function and exit function of the 3D design software; S22: Obtain the ID of the matching bending surface; Obtain the types of all solid surfaces through the API interface function provided by the 3D design software; The types of the solid surfaces include plane and cylindrical surface; Collect the cylindrical surfaces, and obtain the axis points and radii of the cylindrical surfaces through the API interface function provided by the 3D design software; It includes the following sub-steps: S221: Loop through all cylindrical surfaces to obtain coaxial cylindrical surfaces; Match all the obtained cylindrical surfaces in pairs to obtain coaxial cylindrical surfaces; Obtain the axis points of the looped cylindrical surfaces, denoted as point A1 and B1, the coordinates of point A1 are (x1, y1, z1), and the coordinates of point B1 are (x2, y2, z2); Obtain the axis points of the cylindrical surfaces to be matched, denoted as point A2 and B2, the coordinates of point A2 are (x3, y3, z3), and the coordinates of point B2 are (x4, y4, z4); Connect points A1 and B1, and according to the distance formula from a point to a line segment, calculate the distance d1 from point A2 to the line segment A1B1 and the distance d2 from point B2 to the line segment A1B1 respectively. When the distances of d1 and d2 are both 0 at the same time, determine that these two cylindrical surfaces are coaxial cylindrical surfaces; S222: In the coaxial cylindrical surfaces, obtain the matching bending surface; Obtain the bending radius of the looped cylindrical surface, denoted as R1, and obtain the bending radius of the coaxial cylindrical surface, denoted as R2. When R1 - R2 = t or R2 - R1 = t, it is a pair of matching bending surfaces; S223: Obtain the ID of the matching bending surface; Obtain the ID of the matching bending surface in the sheet metal digital model through the API interface function of the 3D design software; S23: Calculate the bending length, bending height, and bending angle; S24: Display the IDs, bending height, bending length, and bending angle of the matching bending surfaces in the sheet metal bending process table; Input the IDs, bending height, bending length, and bending angle values of the matching bending surfaces into the sheet metal bending process table in the 3D design software, and display the IDs, bending height, bending length, and bending angle values of the matching bending surfaces in the sheet metal bending process table; S3: Arrange the bending processes; In the bending process table, perform an arrangement operation on the bending processes in the list to modify the arrangement order of the bending processes; The described arrangement and bending process refers to manually adjusting the sequence of the bending process; The described arrangement operations include three methods: upward movement, downward movement, and dragging; S4: Create a sheet metal process card; Flatten the digital sheet metal model opened in step S1, obtain the bending process table in step S3, bend one process in sequence, create an engineering drawing, create a bending view, dimension the bending, capture the bending effect diagram, write the effect diagram and bending data into the EXCEL template file to form a process card, and save the file.

2. A method for creating a sheet metal process card as described in claim 1, characterized in that: In step S221, match all the obtained cylindrical surfaces in pairs to obtain coaxial cylindrical surfaces; obtain the axis points of the circular cylindrical surfaces in the loop, denoted as point A1 and B1, the coordinates of point A1 are (x1, y1, z1), and the coordinates of point B1 are (x2, y2, z2); Obtain the axis points of the cylindrical surfaces that need to be matched, denoted as point A2 and B2, the coordinates of point A2 are (x3, y3, z3), and the coordinates of point B2 are (x4, y4, z4); Connect points A1 and B1, and according to the distance formula from a point to a line segment, calculate the distance d1 from point A2 to the line segment A1B1 and the distance d2 from point B2 to the line segment A1B1 respectively. When the distances d1 and d2 are both 0 at the same time, determine that these two cylindrical surfaces are coaxial cylindrical surfaces.

3. A method for creating a sheet metal process card as described in claim 1, characterized in that: In step S222, obtain the bending radius of the circular cylindrical surface in the loop, denoted as R1, and obtain the bending radius of the coaxial cylindrical surface, denoted as R2. When R1 - R2 = t or R2 - R1 = t, they are a pair of matching bending surfaces, and obtain the ID of the matching bending surface.

4. A method for creating a sheet metal process card as described in claim 1, characterized in that: Step S23 includes the following sub-steps: S231: Calculate the bending length; The bending length is the distance from point A1 to point B1, and let the bending length be d; it is calculated according to the distance formula between two points S232: Calculate the bending height; According to the matching bending surfaces obtained in step S223, compared with the circular cylindrical surface in the loop, assume the cylindrical surface with the larger radius is surface B. Obtain all the edges of surface B through the API interface function provided by the 3D design software. There are a total of 4 edges, two circular arc edges and two straight edges. Assume the circular arc edges are c1 and c2, and obtain the length of the adjacent tangent edge t1 of c1 and the length of the adjacent tangent edge t2 of c2 through the API function interface provided by the 3D design software; compare the lengths of t1 and t2, assume the longer edge is the k edge and the shorter edge is the h edge, and the shorter edge h is the bending height; The value of the larger of the two edges is the value of the bending height h; S233: Calculate the bending angle; Assume the bending angle is θ; Obtain the start angle α and end angle β of the c1 circular arc edge through the API interface function provided by the 3D design software; The bending angle θ = β - α.

5. A method for creating a sheet metal process card as described in claim 1, characterized in that: Step S4 includes the following sub-steps: S41: Expand the digital sheet metal model opened in step S1, and flatten the sheet metal model through the API interface function provided by the 3D design software; S42: Obtain the bending sequence table of step S2, perform a bending operation in sequence, and bend the part by using the API interface function provided by the 3D design software for the bending surface ID provided in step S2 to form a bending effect; Loop through the bending table. For each process, create an engineering drawing, create a bending view, dimension the bending, and capture the bending effect drawing; S43: Create a process card, call the process card template, copy an existing EXCEL template file with a good format through the standard copy command, copy the EXCEL template file to the specified directory, fill in the EXCEL template file with the bending data provided in step S2 and the bending effect drawing provided in step S424, save the file, and form a sheet metal process card.

6. A method for creating a sheet metal process card as claimed in claim 5, characterized in that: In step S42, it includes the following sub-steps: S421: Create an engineering drawing; Create a 2D engineering drawing with the same name by using the API interface function provided by the 3D design software; S422: Create a bending view; Obtain the bending data of step S2, points A1 and B1, and calculate the vector Set it as the Z vector. Obtain two points m and n on side t1 through the API provided by the 3D design software, and calculate the vector Set it as the X vector, and use and Cross multiply the vectors to obtain Set it as the Z vector, construct the view matrix. According to the X vector, Y vector, Z vector, and point A1, create the view matrix M. Use the view M to create a standard view and a projection view through the API interface function provided by the 3D design software; S423: Dimension the bending; Obtain the data of step S232. For the four sides on the B side, the arc sides c1 and c2, mark the dimensions of c1 and c2 through the API interface functions provided by the 3D design software. According to the data k and the h side obtained in step S2, obtain the two points k1 and k2 of the k side through the API interface functions provided by the 3D design software, obtain the two points h1 and h2 of the h side, connect k1 and k2 to obtain the line segment k1k2. According to the point-to-line distance formula provided in step S2, calculate the distances from the points h1 and h2 to the line segment k1k2, and obtain hd1 and hd2 respectively. Compare the magnitudes of hd1 and hd2, and the point with the smaller distance is h min , mark k and h through the API interface functions provided by the 3D design software min dimensions; form a rendering of the sheet metal bend S424: Capture the bending effect drawing; Obtain the regional coordinates of the drawing by using the API interface function provided by the 3D design software, obtain the regional bending effect drawing through the QApplication::primaryScreen()->grabWindow function, and save the captured bending effect drawing to the temporary directory.

Citation Information

Patent Citations

  • Intelligent auxiliary designing system for sheet metal components

    CN103886119A

  • MBD-based numerical control machining process model creation and labeling method

    CN112489199A