Automatic modeling method, apparatus, equipment and storage medium for punching dies
By automatically matching standard part models and generating common main structures, the problem of low modeling efficiency for punching molds is solved, enabling efficient and accurate batch modeling of punching mold components.
Patent Information
- Application Number
- CN202611635766.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-22
- Publication Date
- 2026-11-17
AI Technical Summary
In existing technologies, the modeling efficiency of punching molds is low, the degree of manual intervention is high, and it is difficult to meet the needs of batch automatic modeling.
By acquiring the punching feature parameters of the model to be modeled, the standard part model is automatically matched and the structural parameters are completed. A common structure is generated using the unified modeling framework of the main body. The spatial posture of the cutting edge is determined by combining the cutting edge reconstruction rules and the local coordinate system, and the geometric contour and solid structure of the cutting edge are generated, thus realizing the automatic modeling of punching molds.
It improves the efficiency of modeling punching dies, reduces repetitive work, enhances the accuracy and consistency of modeling, and enables batch automatic modeling of punching die components.
Smart Images

Figure CN123116513A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of mold modeling technology, and in particular to an automatic modeling method, apparatus, equipment and storage medium for punching molds. Background Technology
[0002] With the continuous development of the manufacturing industry, punching dies, as key tooling in the manufacturing process of many industrial products, have a wide range of applications.
[0003] Currently, designers typically need to consult relevant materials or enterprise standard part specifications based on the hole feature dimensions, manually select the corresponding standard part model, and complete the modeling parameters such as main body dimensions, installation dimensions, and functional structural dimensions before gradually building the standard part model using CAD software. When there are a large number of punching features in the mold, the above process needs to be repeated.
[0004] Currently, the modeling process for punching dies relies heavily on manual intervention, resulting in low modeling efficiency and making it difficult to meet the demand for batch automatic modeling of punching die components. Summary of the Invention
[0005] This invention provides an automatic modeling method, apparatus, device, and storage medium for punching dies to solve the problem of low modeling efficiency in current punching die modeling.
[0006] In a first aspect, embodiments of the present invention provide an automatic modeling method for punching dies, comprising: Obtain the punching feature parameters of the model to be modeled; wherein, the punching feature parameters include the hole type; Based on the punching feature parameters, the standard part model is automatically matched and the structural parameters of the model to be modeled are completed, and the standard part parameter set is output. Based on the standard parts parameter set and the pre-built unified modeling framework, the main common structure of the model to be modeled is generated; Based on the hole type, the pre-built cutting edge reconstruction rules, and the constructed local coordinate system and rotation angle parameter definition rules, the spatial orientation of the cutting edge of the model to be modeled is determined. Based on the punching feature parameters and the preset contour solving method, the geometric contour of the cutting edge is determined; based on the contour of the cutting edge and the spatial orientation of the cutting edge, the solid structure of the cutting edge is generated. The model to be modeled is generated based on the main common structure of the model to be modeled and the solid structure of the cutting edge.
[0007] In one possible implementation, the step of automatically matching standard part models and completing the structural parameters of the model to be modeled based on the punching feature parameters, and outputting a standard part parameter set, includes: Based on the hole type category, determine the standard part category corresponding to the model to be modeled; Based on the standard part category and the key working dimensions extracted from the punching feature parameters, the standard part specifications corresponding to the model to be modeled are determined; wherein, the key working dimensions are determined based on the hole type category; Based on the set total length of the punch and assembly constraint parameters of the model to be modeled, and the standard part specifications corresponding to the model to be modeled, the standard part model is automatically matched. Based on the standard part model and standard part specification library, complete the structural parameters of the model to be modeled, and output the standard part parameter set.
[0008] In one possible implementation, determining the spatial orientation of the cutting edge of the model to be modeled, based on the hole type, pre-built cutting edge reconstruction rules, and constructed local coordinate system and rotation angle parameter definition rules, includes: Based on the hole type and the cutting edge reconstruction rule, a cutting edge construction algorithm corresponding to the hole type is determined, and the type of the cutting edge is determined. Based on the cutting edge mounting center coordinates and hole feature normal vector in the punching feature parameters, determine the unit normal vector; Based on the unit normal vector, the positive X-axis and positive Y-axis of the global coordinate system are used to construct the local coordinate system; Based on the local coordinate system and the rules for defining rotation angle parameters, the spatial orientation of the cutting edge is determined.
[0009] In one possible implementation, constructing the local coordinate system based on the unit normal vector, the positive X-axis direction, and the positive Y-axis direction of the global coordinate system includes: Projecting the positive X-axis direction of the global coordinate system onto the plane defined by the unit normal vector yields the first reference direction of the local coordinate system; Based on the right-hand rule, the second reference direction of the local coordinate system is obtained through the cross product of vectors; The local coordinate system is constructed based on the first reference direction, the second reference direction, and the Z-axis direction of the local coordinate system; wherein the Z-axis direction is the direction of the unit normal vector.
[0010] In one possible implementation, determining the unit normal vector based on the cutting edge mounting center coordinates and the hole feature normal vector in the punching feature parameters includes: Based on the coordinates of the cutting edge installation center, determine the origin of the local coordinate system; The hole feature normal vector is normalized to obtain the unit normal vector.
[0011] In one possible implementation, generating the solid structure of the cutting edge based on its contour and spatial orientation includes: Based on the local coordinate system, the contour of the cutting edge, and the spatial orientation of the cutting edge, the solid structure of the cutting edge is generated at the target spatial location.
[0012] In one possible implementation, the model to be modeled is generated based on the main common structure of the model to be modeled and the solid structure of the cutting edge, including: Based on the main common structure of the model to be modeled and the solid structure of the cutting edge, the parametric modeling of the punch model of the model to be modeled is completed. Based on the punching feature parameters and the results of parametric modeling of the punch model, the structural parameters of the die and the fixing seat of the model to be modeled are generated; Based on the results of parametric modeling of the punch model and the structural parameters of the die and the fixed seat, the model to be modeled is generated.
[0013] Secondly, embodiments of the present invention provide an automatic modeling device for punching dies, comprising: The acquisition module is used to acquire the punching feature parameters of the model to be modeled; wherein, the punching feature parameters include the hole type; The output module is used to automatically match the standard part model and complete the structural parameters of the model to be modeled based on the punching feature parameters, and output the standard part parameter set. The first generation module is used to generate the main common structure of the model to be modeled based on the standard parts parameter set and the pre-built unified modeling framework. The determination module is used to determine the spatial orientation of the cutting edge of the model to be modeled based on the hole type, the pre-constructed cutting edge reconstruction rules, and the constructed local coordinate system and rotation angle parameter definition rules. The second generation module is used to determine the geometric contour of the cutting edge based on the punching feature parameters and a preset contour solving method; and to generate the solid structure of the cutting edge based on the contour of the cutting edge and the spatial orientation of the cutting edge. The third generation module is used to generate the model to be modeled based on the main common structure of the model to be modeled and the solid structure of the cutting edge.
[0014] Thirdly, embodiments of the present invention provide an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the method described in the first aspect or any possible implementation thereof.
[0015] Fourthly, embodiments of the present invention provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the method described in the first aspect or any possible implementation thereof.
[0016] Fifthly, embodiments of the present invention provide a computer program product, including a computer program that, when executed by a processor, implements the method described in the first aspect or any possible implementation thereof.
[0017] In this embodiment of the invention, to improve the modeling speed of punching dies, by using the punching feature parameters of the model to be modeled, standard part models can be automatically matched and structural parameters of the model to be modeled can be completed based on the punching feature parameters. Since the main structure of different types of punches has high consistency, a unified main body modeling framework is pre-established. Based on the standard part parameter set and the pre-built unified main body modeling framework, the main common structure of the model to be modeled can be generated. Thus, the structural differences between different hole types can be concentrated on the cutting edge at the working end, realizing shared modeling of the main common structure, reducing repetitive modeling work, and improving modeling efficiency. Through hole type categories, pre-built cutting edge reconstruction rules, and the established local coordinate system and rotation angle parameter definition rules, the spatial posture of the cutting edge of the model to be modeled can be accurately determined, realizing automatic determination of the cutting edge direction under any spatial posture without manual posture adjustment. This not only improves the overall modeling efficiency of punching dies but also enhances the accuracy and consistency of complex spatial modeling. Attached Figure Description
[0018] Figure 1 This is a flowchart illustrating the implementation of the automatic modeling method for punching dies provided in this embodiment of the invention. Figure 2 This is a schematic diagram of the main common structure provided in the embodiments of the present invention; Figure 3 This is a schematic diagram illustrating the process of establishing a local coordinate system according to an embodiment of the present invention; Figure 4 This is a schematic diagram illustrating the definition of rotation angle provided in an embodiment of the present invention; Figure 5 This is a schematic diagram of the automatic modeling device for punching molds provided in an embodiment of the present invention; Figure 6 This is a schematic diagram of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0019] The embodiments of the present invention will now be described in detail with reference to the accompanying drawings.
[0020] Although the punching feature parameters of the model to be modeled can accurately describe the geometric properties and spatial orientation of the hole features of the product, they can only reflect the information of the hole itself and cannot be directly used for the 3D modeling of standard parts such as punches, dies and fixed seats.
[0021] In the traditional design process, designers typically need to consult "Parts for Stamping Dies" or enterprise standard parts specifications based on the hole feature dimensions, manually select the corresponding standard part model, and complete the modeling parameters such as main body dimensions, installation dimensions, and functional structural dimensions. Then, they gradually build the standard part model using CAD software. When there are a large number of punching features in the die, the above process needs to be repeated, resulting in a high degree of manual involvement, low modeling efficiency, and an inability to meet the needs of batch automatic modeling of punching die components.
[0022] To address the aforementioned technical problems, this invention provides an automatic modeling method, apparatus, equipment, and storage medium for punching molds.
[0023] See Figure 1 The flowchart illustrating the implementation of the automatic modeling method for punching dies provided in this embodiment of the invention is described in detail below: S110. Obtain the punching feature parameters of the model to be modeled.
[0024] The punching characteristic parameters are identified based on the hole feature recognition program.
[0025] Among them, the punching characteristic parameters include the hole type.
[0026] For example, hole types may include type A circular, type D rectangular, type R rounded rectangle, type E waist-shaped, and type G double-sided flattened circle.
[0027] In some embodiments, the punching feature parameters may also include key working dimensions, cutting edge mounting center coordinates, hole feature normal vector, and rotation angle.
[0028] S120. Based on the punching feature parameters, automatically match the standard part model and complete the structural parameters of the model to be modeled, and output the standard part parameter set.
[0029] While punching feature parameters can comprehensively describe the geometric information of the hole features in a product, standard part models not only include the working end cutting edge dimensions but also the main body diameter, mounting flange dimensions, guide section dimensions, overall length, locating pin holes, ejector pin holes, and other mounting structure parameters. These parameters are not directly included in the punching feature recognition results. Therefore, it is impossible to directly complete 3D modeling of standard parts such as punches, dies, and mounting bases.
[0030] In some embodiments, the standard part category corresponding to the model to be modeled can be determined first based on the hole type. Next, the standard part specification corresponding to the model to be modeled can be determined based on the standard part category and the key working dimensions extracted from the punching feature parameters. Then, the standard part model number is automatically matched based on the set total punch length, assembly constraint parameters, and the standard part specification corresponding to the model to be modeled. Finally, the structural parameters of the model to be modeled are completed based on the standard part model number and the standard part specification library, and the standard part parameter set is output.
[0031] In this embodiment, the corresponding standard part series can be determined first based on the hole type category. Different hole type categories correspond to different working end structures, and the corresponding standard part categories are automatically matched. Then, key working dimensions are extracted from the punching feature parameters based on the hole type category. Thus, the standard part specifications corresponding to the model to be modeled are determined based on the standard part category and key working dimensions.
[0032] For example, in the standard parts specification library, the corresponding standard parts specification range will be automatically matched based on the critical working dimensions. If the standard parts specification library establishes the range of critical working dimensions corresponding to different standard parts categories, when the critical working dimension extracted from the punching feature parameters falls into a certain range, the standard parts specification corresponding to the model to be modeled will be automatically determined.
[0033] Specifically, the critical working dimensions required are different for different hole types.
[0034] For example, the critical working dimensions of a type A circular hole are its diameter P. The critical working dimensions of a type D rectangular hole are its length P and width W. The critical working dimensions of a type R rounded rectangular hole are its length P, width W, and corner radius R. The critical working dimensions of a type E oblong hole are its length P and width W. The critical working dimensions of a type G double-sided flattened circular hole are its length P and width W. These critical working dimensions describe the basic geometry of the hole's operation and provide a foundation for subsequent standard part specification matching, cutting edge parameter determination, and model generation.
[0035] For the die corresponding to the punch, the specifications and modeling parameters of the die standard part corresponding to the punching feature are determined based on the punching feature parameters and the preset die standard part parameters, so as to be used for the automatic generation of the die model in the future.
[0036] In some embodiments, the mounting base is matched with a corresponding mounting base structure according to the punch's hole type; when the punch is a type A round punch, a mounting base without an anti-rotation structure is matched. When the punch is a type D rectangular punch, a type R rounded rectangular punch, a type E waist-shaped punch, or a type G double-sided flattened round punch, a mounting base with an anti-rotation structure is matched.
[0037] In this embodiment, after determining the structural type of the fixing seat, the standard specifications of the fixing seat corresponding to the punch can be determined according to the main body diameter D of the punch, and the structural parameters of the fixing seat corresponding to the standard specifications can be obtained from the preset fixing seat standard parts parameter library.
[0038] The structural parameters of the fixed base include the main body dimensions, mounting structure dimensions, and other parameters related to the fixed base structure, which are used for the parametric generation of the three-dimensional solid of the fixed base. The main body diameter D of the punch is used to determine the standard specifications of the fixed base, and the center coordinates and normal vector of the punch feature are used to determine the spatial installation position and installation direction of the fixed base.
[0039] In this embodiment, after the standard part specifications are matched, the corresponding standard part model will be automatically matched according to the preset total length of the punch, which is the assembly parameters and assembly constraint parameters of the model to be modeled, and the standard part specifications corresponding to the model to be modeled.
[0040] For example, before modeling, the total length of the punch needs to be predetermined, such as a standard length of 90mm or 100mm. This length serves as one of the constraints for automatic selection of standard parts, thereby determining the standard part model that meets the current design conditions.
[0041] In this embodiment, after the standard part model is determined, it is also necessary to complete the structural parameters of the model to be modeled based on the standard part model and the standard part specification library, and output the standard part parameter set.
[0042] Specifically, after determining the standard part model, the system automatically queries and completes the corresponding structural parameters based on the enterprise standard and "Parts for Stamping Dies" for subsequent automatic modeling of the punch body and cutting edge.
[0043] The structural parameters mainly include the main structural parameters, the cutting edge structural parameters, and the functional structural parameters.
[0044] For example, the main structural parameters include the main body diameter, mounting flange dimensions, guide section dimensions, total punch length, and other main body geometric dimensions. The cutting edge structural parameters include the working end dimensions and related structural parameters corresponding to different hole types, used to determine different cutting edge geometries. Functional structural parameters include locating pin holes, ejector pin holes, and other mounting structural parameters, used to meet the assembly and usage requirements of standard parts.
[0045] Through the aforementioned structural parameter completion process, all the parameters required for standard part modeling can be automatically generated from a small number of punching feature parameters, achieving a complete expression of the standard part's geometric information. After parameter completion, the system outputs a standardized standard part parameter set in a unified format, which serves as the unified input data for subsequent main body modeling, cutting edge reconstruction, and spatial attitude calculation modules. This avoids the need for manual consulting of standard part manuals, inputting dimensional parameters item by item, and repeatedly building models in the traditional design process, providing a complete data foundation for subsequent automatic standard part modeling.
[0046] Through the above-described structural parameter completion process, based on the punching feature parameters and in accordance with enterprise standards and "Parts for Stamping Dies", all structural parameters required for modeling are automatically completed. This achieves the automatic generation of a complete set of standard parts parameters from a small number of hole parameters, avoiding the repetitive work of manually consulting standard parts manuals and inputting structural dimensions item by item in the traditional modeling process. This improves the accuracy of standard parts selection and the consistency of modeling data.
[0047] S130. Based on the standard parts parameter set and the pre-built unified modeling framework, generate the main common structure of the model to be modeled.
[0048] In some embodiments, all models to be modeled share the same main common structure, the dimensions of which are determined based on a set of standard parts parameters.
[0049] In this embodiment, analysis of type A circular punches, type D rectangular punches, type R rounded rectangular punches, type E waist-shaped punches, and type G double-sided flattened circular punches reveals that although the cutting edge geometry at the working end differs, the basic composition of the main common structure is consistent, with only the working end contour differing. Therefore, a mechanism for reusing the main common features and reconstructing the cutting edge parameters is proposed, separating the main structure from the cutting edge at the working end to achieve unified modeling of different types of standard parts.
[0050] Specifically, such as Figure 2 As shown, the main common structure includes a machining cutting area 210, a diameter transition area 220, a guide rod main body section 230, a mounting flange section 240, a locating pin hole 250, and a ejector pin hole 260. Although the dimensional parameters of the main common structure vary with the specifications of standard parts, the overall composition and modeling logic remain consistent. Therefore, a unified modeling framework for the main structure can be established, and the generation of the main common structure can be automatically driven by the standard part parameter set.
[0051] To address the high degree of consistency in the main structure of different types of punches, a unified modeling framework was established. Common structures such as the guide rod main section, mounting flange section, and auxiliary mounting structures were generated in a unified manner. The structural differences between different hole types were concentrated in the cutting edge area of the working end, which enabled shared modeling of the main structure, reduced repetitive modeling work, and improved system maintenance efficiency and program expansion capabilities.
[0052] S140. Based on the hole type, pre-built cutting edge reconstruction rules, and the constructed local coordinate system and rotation angle parameter definition rules, the spatial orientation of the cutting edge of the model to be modeled is determined.
[0053] In some embodiments, after modeling the main common structure is completed, only the cutting edge of the working end can be reconstructed differently.
[0054] In this embodiment, firstly, based on the hole type and the cutting edge reconstruction rules, a cutting edge construction algorithm corresponding to the hole type is determined, thus determining the cutting edge type. Then, based on the cutting edge mounting center coordinates and the hole feature normal vector in the punching feature parameters, a unit normal vector is determined. Next, based on the unit normal vector and the positive X-axis and positive Y-axis directions of the global coordinate system, a local coordinate system is constructed. Finally, based on the local coordinate system and the rotation angle parameter definition rules, the spatial orientation of the cutting edge is determined.
[0055] Specifically, for type A circular holes, the cutting edge type is determined to be circular. For type D rectangular holes, the cutting edge type is determined to be rectangular. For type R rounded rectangular holes, the cutting edge type is determined to be rounded rectangular. For type E waist-shaped holes, the cutting edge type is determined to be waist-shaped. For type G double-sided flat round holes, the cutting edge type is determined to be double-sided flat round.
[0056] By reusing the main common structure and reconstructing the cutting edge parameters differently, it is not necessary to establish an independent modeling process for each punch. Instead, different cutting edge structures are automatically generated on the basis of the unified modeling framework of the main body. This reduces repetitive modeling work, improves the consistency, maintainability and subsequent expansion capabilities of the program structure, and provides a unified modeling foundation for subsequent direct analytical geometry modeling and batch automatic modeling.
[0057] After generating the main common structure and determining the type of cutting edge, it is necessary to further determine the final orientation of the cutting edge in three-dimensional space. For cutting edges with directional attributes, their spatial orientation cannot be uniquely determined solely based on the installation center position and normal direction. Therefore, a unified spatial orientation method needs to be established to ensure that the generated model maintains a consistent directional relationship with the punching features of the product.
[0058] For circular cutting edges, due to their perfect rotational symmetry, their spatial orientation can be uniquely determined during model generation by only specifying the mounting center position and axial direction; no additional definition of the profile rotation direction is required. However, for D-shaped rectangular cutting edges, R-shaped rounded rectangular cutting edges, and E-shaped waisted cutting edges, their profiles all have obvious directional attributes. The mounting center coordinates and normal vector can only determine the position and normal orientation of the plane containing the cutting edge, but cannot determine the specific orientation of the profile within that plane. Therefore, even if two cutting edges have exactly the same mounting center position and normal direction, their long side direction or central axis direction may still have different rotation states, resulting in inconsistencies between the generated model and the actual punching profile orientation.
[0059] In some embodiments, the origin of the local coordinate system can be determined based on the coordinates of the cutting edge mounting center. Then, the hole feature normal vector is normalized to obtain the unit normal vector.
[0060] Specifically, firstly, the position of the cutting edge reference surface in three-dimensional space can be determined based on the coordinates of the cutting edge mounting center, that is, the coordinates of the cutting edge mounting center are used as the origin of the local coordinate system. Simultaneously, the hole feature normal vector obtained from punch feature recognition is normalized to obtain a unit normal vector n, and n is defined as the Z-axis direction of the local coordinate system, used to determine the spatial orientation of the cutting edge reference surface. The spatial reference surface where the cutting edge is located is jointly determined by the coordinates of the cutting edge mounting center and the hole feature normal vector. The coordinates of the cutting edge mounting center can be determined through the bottom mounting coordinates of the punch.
[0061] In addition, after determining the spatial reference plane and spatial orientation of the cutting edge, it is necessary to further establish a local two-dimensional orientation within that reference plane.
[0062] In this embodiment, as Figure 3 As shown, we can first project the positive X-axis of the global coordinate system onto the plane defined by the unit normal vector to obtain the first reference direction of the local coordinate system. Then, according to the right-hand rule, we obtain the second reference direction of the local coordinate system through the cross product of vectors. Finally, based on the first reference direction, the second reference direction, and the Z-axis direction of the local coordinate system, we construct the local coordinate system; where the Z-axis direction is the direction of the unit normal vector.
[0063] Specifically, the X-axis direction of the global coordinate system is selected as the reference vector u0, and it is projected onto a plane perpendicular to the unit normal vector n to obtain the local first reference direction u. Then, according to the right-hand rule, the local second reference direction v is calculated by the vector cross product, i.e., v = n × u. This forms a local coordinate system (u, v, n) with the cutting edge mounting center as the origin, u and v as the two reference directions in the plane, and n as the normal direction.
[0064] It should be noted that the global coordinate system here refers to the unified spatial reference coordinate system established in the CAD system or product model, including the X-axis, Y-axis, and Z-axis directions, with the origin at (0,0,0). The local coordinate system refers to the spatial reference coordinate system established for a specific hole feature, used to describe the position and orientation of the corresponding punch cutting edge within its own plane. For example... Figure 3 In this system, XYZ is the absolute coordinate system, also known as the global coordinate system, while u, v, and n are the three directions in the local coordinate system.
[0065] In some embodiments, after establishing a unified local coordinate system, the spatial orientation of the cutting edge can be determined by defining rules based on predefined rotation angle parameters.
[0066] In this embodiment, as Figure 4 As shown, the rotation angle parameter is defined as follows: Rotation describes the rotation state of the cutting edge's principal direction within the plane of the local coordinate system. Rotation is defined as the directed angle between the cutting edge's principal direction and the local reference direction u. When Rotation = 0, the cutting edge's principal direction coincides with the u-axis. As Rotation changes, the cutting edge's principal direction rotates around the normal vector n to the corresponding direction.
[0067] In some embodiments, the principal direction vector d of the cutting edge can be determined based on the rotation angle Rotation, the first reference direction u, and the second reference direction v, that is: d=cos(Rotation)×u +sin(Rotation)×v; Where d is the principal direction vector of the cutting edge, u is the first reference direction of the local coordinate system, v is the second reference direction of the local coordinate system, and Rotation is the directed angle between the principal direction of the cutting edge and the first reference direction u.
[0068] For D-type rectangular cutting edges and R-type rounded rectangular cutting edges, Rotation is used to determine the direction of the long side of the rectangle. For E-type waist-shaped cutting edges, Rotation is used to determine the direction of the waist-shaped central axis. Since all cutting edges with directional attributes use a unified local coordinate system and rotation angle parameter definition rules, cutting edges in different spatial positions and installation postures can obtain a consistent directional expression.
[0069] Through the above-mentioned local coordinate system construction and rotation angle parameter definition rules, all cutting edges with directional attributes can obtain a unique and unified spatial direction expression, providing a unified directional reference for subsequent cutting edge contour analysis calculation and 3D solid generation.
[0070] For cutting edges with directional attributes, such as rectangles, rounded rectangles, and waist shapes, a unified local coordinate system is constructed and rotation angle parameter definition rules are introduced to achieve automatic determination of the cutting edge's orientation under any spatial posture. This ensures that the generated model is consistent with the product hole orientation, eliminating the need for manual adjustment of the model's posture and improving the accuracy and consistency of complex spatial hole modeling.
[0071] S150. Determine the geometric profile of the cutting edge based on the punching characteristic parameters and the preset profile solving method. Generate the solid structure of the cutting edge based on its profile and spatial orientation.
[0072] Traditional modeling methods typically require creating separate models for different hole types and generating standard parts of different specifications by modifying dimensional parameters. When there are many types of standard parts, multiple modeling processes need to be maintained, resulting in low model reusability and hindering large-scale automated modeling of punching die components.
[0073] In some embodiments, after determining the spatial orientation of the cutting edge, the geometric contour of the cutting edge can be determined by calling the corresponding contour solving method based on the punching feature parameters. Then, the solid structure of the cutting edge is generated at the target spatial location based on the unified local coordinate system, the contour of the cutting edge, and the spatial orientation of the cutting edge.
[0074] In this embodiment, the type of cutting edge and the type of hole can be determined based on the punching characteristic parameters, as well as the key working dimensions corresponding to each type of hole.
[0075] In this embodiment, for the type A circular hole, the cutting edge type is determined to be a circular cutting edge, and its key working dimension is the diameter P of the circular hole. The contour solving method is as follows: the diameter P of the circular hole is taken as the diameter of the circular cutting edge, and the center coordinates of the cutting edge mounting center are taken as the center of the circular contour, and the corresponding circular contour is directly generated in the cutting edge reference plane.
[0076] For a D-shaped rectangular hole, the cutting edge type is determined to be rectangular, with the key working dimensions being the length P and width W of the rectangular hole. The contour calculation method is as follows: The length P and width W of the rectangular hole are taken as the two directional dimensions of the rectangular cutting edge. Combined with the coordinates of the cutting edge mounting center, local reference directions u and v, and the rotation angle Rotation, the final direction of the rectangular cutting edge is determined. Based on this, the positions of the four vertices relative to the cutting edge mounting center are calculated according to the dimensions of the two sides of the rectangle. Each vertex is then transformed into three-dimensional space coordinates, thus forming a closed rectangular cutting edge contour.
[0077] For a hole with rounded corners (R-shaped), the cutting edge type is determined to be a rounded rectangle cutting edge. The key working dimensions are the hole's length P, width W, and corner radius R. The contour solving method is as follows: First, determine the overall length and width of the rounded rectangle based on the length P and width W. Then, determine the geometric dimensions of the four rounded corner regions based on the corner radius R, and combine this with the rotation to determine the overall contour direction. After determining the endpoints of the straight line segments and the key points of the rounded corners, construct the complete closed contour of the rounded rectangle through the geometric relationship between the straight lines and the arcs.
[0078] For the E-shaped waisted hole, the cutting edge type is determined to be a waisted cutting edge, and its key working dimensions are the length P and width W of the waisted hole. The contour solution method is as follows: Based on the key working dimension parameters of the waisted contour, determine the geometric relationship of the two end arcs and the middle straight segment, and combine this with the coordinates of the cutting edge mounting center, the normal vector, and the rotation angle (Rotation) to determine the spatial direction of the waisted contour. On this basis, calculate the centers of the two end arcs, the corresponding tangent points, and the position of the common tangent connecting the two end arcs, and form a closed waisted contour according to the geometric connection relationship.
[0079] For a G-type double-sided flattened circle hole, the cutting edge type is determined to be a double-sided flattened circle cutting edge, and its key working dimensions are the length P and width W of the hole. The contour solution method is as follows: determine its overall contour dimensions based on the obtained key working dimensions, and calculate the key points of the straight line segments and circular arc segments according to the geometric composition relationship of the double-sided flattened circle, and form a closed contour by connecting the straight lines and circular arcs.
[0080] Although different types of cutting edges employ different contour solving methods, they all follow a unified parameter-driven modeling process. First, the contour type is determined based on the hole type. Then, the corresponding dimensional parameters are read, and the spatial position and orientation of the contour are determined by combining the coordinates of the cutting edge mounting center, the local coordinate system, and the rotation. Finally, the key geometric elements of the contour are calculated to form a closed contour. This enables automatic reconstruction of different hole-type cutting edges within a unified modeling framework.
[0081] S160. Based on the main common structure and the solid structure of the cutting edge of the model to be modeled, generate the model to be modeled.
[0082] After completing the analytical calculation of the cutting edge geometric profile, the corresponding entity can be directly generated at the target spatial position based on the established local coordinate system and the spatial orientation determined by the Rotation parameters, without the need to rotate, move, or adjust the orientation of the generated model. Subsequently, modeling operations such as extrusion, Boolean summation, Boolean subtraction, and necessary fillet processing are automatically completed and integrated with the generated main common structure to finally form the parametric model of the punch model to be modeled.
[0083] In this embodiment, the parametric modeling method described above is also applicable to the automatic generation of the die model corresponding to the punch.
[0084] Specifically, the modeling parameters of the die can be determined based on the punching feature parameters and the preset die standard part parameters. Then, a three-dimensional model of the die can be generated using a parametric modeling method corresponding to the punch model, so that the generated die matches the corresponding punch.
[0085] Through the aforementioned mechanism of reconstructing cutting edge parameters and directly modeling geometric contours, based on a unified main modeling framework and a unified spatial orientation method, the automatic construction of five standard punch cutting edges—A-type circular, D-type rectangular, R-type rounded rectangle, E-type waist-shaped, and G-type double-sided flattened circle—can be completed simply by calling the corresponding contour solving method according to different hole types. This achieves unified parameter-driven modeling for different types of punches, providing a unified, efficient, and easily expandable geometric modeling foundation for subsequent large-scale batch automatic modeling of punches and dies.
[0086] In some embodiments, after completing the parametric modeling of the punch model, the structural parameters of the die and the fixed seat corresponding to the punch can be further generated based on the punching feature parameters and the modeling results of the punch.
[0087] In this embodiment, after determining the standard specifications of the fixing seat and the corresponding structural parameters of the fixing seat, the spatial installation reference of the fixing seat can be determined according to the center coordinates and normal vector of the punching feature, and the main structure and installation structure of the fixing seat can be constructed according to the structural parameters of the fixing seat.
[0088] For example, for a fixed seat without an anti-rotation structure, the stamping direction is used as the rotation reference axis of the fixed seat, and the initial circumferential attitude of the fixed seat is determined according to a preset initial rotation angle, and a three-dimensional solid of the fixed seat is directly generated at the target spatial position. For a fixed seat with an anti-rotation structure, the installation direction of the fixed seat is determined according to the spatial attitude of the corresponding punch, and a three-dimensional solid of the fixed seat matching the punch is generated.
[0089] The initial rotation angle is used to determine the initial spatial orientation of the fixed base before interference detection.
[0090] In some embodiments, after the initial generation of the fixed base entity is completed, in order to avoid spatial interference between multiple punching components in the mold assembly space due to the large size of the fixed base, the fixed base is further subjected to automatic interference detection and rotational avoidance adjustment.
[0091] It should be noted that the rotation adjustment of the fixed seat does not change the processing position and stamping direction of the corresponding punching feature. Instead, it adjusts the space occupied by the fixed seat in the mold assembly space by changing the circumferential posture of the fixed seat around the stamping direction, thereby achieving an interference-free layout between fixed seats and between the fixed seat and other mold structures.
[0092] In this embodiment, the specific process of automatically detecting interference and adjusting the rotation of the fixed base includes: First, establish the initial layout of the fixed seat. Based on the previously generated fixed seat entity, and according to the center coordinates, stamping direction, fixed seat structural parameters, and initial rotation angle in the punching feature parameters, determine the initial layout of the fixed seat in the three-dimensional mold assembly space, and establish the spatial correspondence between the fixed seat and the corresponding punch and die. Specifically, for fixed seats without anti-rotation structures, the initial circumferential orientation of the fixed seat is determined based on the preset initial rotation angle. For fixed seats with anti-rotation structures, the installation direction of the fixed seat is determined based on the spatial orientation of the corresponding punch.
[0093] Next, initial interference detection is performed. Physical interference detection is conducted on the fixed seats in the initial layout state with adjacent punching components and mold assembly structures to identify fixed seats with spatial overlap, and these are designated as fixed seats requiring adjustment. For fixed seats that are determined not to have spatial interference through interference detection, their current spatial orientation is maintained; for fixed seats with interference, the subsequent rotational avoidance adjustment process begins.
[0094] Next, the rotation axis of the fixed seat is determined. For the fixed seat to be adjusted, the stamping direction corresponding to the punching feature parameter is taken as the rotation axis of the fixed seat, and the spatial position of the rotation center of the fixed seat and the corresponding punching feature remains unchanged. During the rotation adjustment process, the center position of the corresponding punch, the stamping direction, and the relative position between the punch and the die remain unchanged, and only the circumferential attitude of the fixed seat around the stamping direction is changed. Thus, the position and orientation adjustment of the fixed seat in the mold assembly space is converted into a single-degree-of-freedom circumferential rotation adjustment around the stamping direction. For the fixed seat without anti-rotation structure corresponding to the A-type circular punch, since it does not have an anti-rotation structure to limit the circumferential attitude of the fixed seat, under the condition that the assembly relationship between the fixed seat and the corresponding punch and other components is satisfied, interference avoidance adjustment can be performed by using the circumferential rotational degree of freedom of the fixed seat around the stamping direction.
[0095] Next, candidate rotational attitudes are generated. For the fixed base to be adjusted, multiple candidate rotational attitudes are generated within a preset rotation range using different angle search step sizes, based on the initial rotation angle. A coarse-to-fine hierarchical angle search method is typically adopted. Initially, a larger angle search step size is used to search for candidate rotational attitudes. When no feasible attitude satisfying the interference constraints is obtained at the current search resolution, the angle search step size is further reduced to refine the search within the corresponding rotation range, thereby gradually improving the search accuracy of the fixed base's rotational attitude.
[0096] For example, the angle search step size can be set to 60°, 45°, 30° and 15° in sequence. By gradually reducing the angle search step size, the coverage of candidate rotation attitudes can be guaranteed while improving the search accuracy of feasible attitudes.
[0097] Next, candidate posture interference detection is performed. For each candidate rotation posture, the fixed seat to be adjusted is driven to rotate rigidly around the rotation axis, and solid interference detection is performed again. If interference still exists between the rotated fixed seat and adjacent punching components, mold structures, or other assembly entities, the current candidate rotation posture is determined to be an infeasible posture and is discarded. If the detection result shows no interference, the current candidate rotation posture is determined to be a feasible posture, and the corresponding rotation angle and fixed seat layout state are recorded.
[0098] Next, recursive adjustment of multiple fixed seats is performed. When multiple interfering fixed seats are contained within the same conflict area, a local conflict group can be established based on the interference relationship between the fixed seats, and the attitude of the fixed seats in the conflict group can be adjusted sequentially according to a preset order. For the current fixed seat, its feasible rotational attitude can be searched first. When the current fixed seat obtains a feasible attitude that satisfies the interference constraints, the attitude search continues for the next fixed seat. When no feasible attitude that satisfies the interference constraints exists for the subsequent fixed seat, the previous fixed seat is returned to, the candidate rotational attitude of the previous fixed seat is changed, and the attitude search for the subsequent fixed seats is re-executed.
[0099] Through the above recursive backtracking process, rotational combinations that cause interference with subsequent fixed seats are gradually eliminated until a fixed seat attitude combination that satisfies the interference-free constraint of the entire conflict group is obtained.
[0100] Furthermore, during the fixed-position attitude search, when a candidate rotational attitude of a fixed position is determined to be infeasible by interferometry, the subsequent search branches generated based on the current attitude are discarded, and the search proceeds directly to the next candidate rotational attitude. For fixed-position attitude combinations that have already undergone interferometry testing, the corresponding interferometry test results are recorded. When subsequent searches generate the same fixed-position attitude combination again, the recorded interferometry test results are directly called, avoiding repeated solid interference calculations and thus reducing the number of invalid attitude searches and solid interference tests.
[0101] Finally, the final rotational attitude of the fixed seats is determined. Once all fixed seats in the conflict group meet the non-interference condition, the current fixed seat attitude combination is determined as the final layout result of the corresponding punching component, and the corresponding rotation angle is written into the component parameter information of the fixed seat. For other conflict groups with spatial interference, the attitude adjustment continues according to the above fixed seat rotation avoidance process until all punching components meet the preset spatial interference constraints.
[0102] By using the above-mentioned fixed seat rotation interference avoidance method, while keeping the center position of the punch, the punching direction, and the relative position of the punch and the die unchanged, the spatial occupancy relationship of the fixed seat in the mold assembly space can be changed by only adjusting the circumferential posture of the fixed seat around the punching direction. This eliminates the spatial interference between fixed seats and between the fixed seat and other mold structures, and realizes the automated interference-free layout of the punching assembly.
[0103] Compared with the adjustment method of directly moving the position of the punching component or changing the punching direction, the spatial avoidance is achieved by rotating the fixed seat circumferentially. The spatial attitude optimization of the fixed seat is completed without changing the original punching process position and punching direction. Furthermore, the automatic layout efficiency of the punching component in the dense punching area is improved by reducing invalid attitude calculations through hierarchical angle search, recursive backtracking and search pruning.
[0104] Thus, after completing the parametric generation of the punch, die, and fixed seat, and adjusting the spatial posture of the fixed seat, a standard component model of a punching die that matches the corresponding punching features is formed.
[0105] After completing the above modeling, the batch automatic modeling stage will begin. All standard part modeling data will be organized using a unified parameter file to achieve automatic batch generation of punching die component models.
[0106] The parameter file serves as the unified data carrier for the entire automated modeling process. Each set of parameters corresponds to all the modeling information required for a punching feature, including the hole type, the coordinates of the cutting edge mounting center, the normal vector, the rotation angle, and all structural parameters corresponding to the standard part model. Each set of parameters is stored sequentially in a unified format, forming a complete standard part modeling dataset, providing a unified data input for batch processing by the system.
[0107] After the system starts, it only needs to read all the parameter data once to complete the entire modeling process, including automatic selection of standard parts, completion of parameter library, generation of main common structure, determination of cutting edge spatial posture, construction of cutting edge geometric contour, and creation of 3D solid, according to the data of each group in the parameter file. It also generates dies and fixing seats that match each punch according to the correspondence between the punch features, without the need for manual selection of standard parts, repeated input of parameters, or separate model building.
[0108] Since all standard parts adopt a unified data organization method and modeling process, the system can automatically traverse all data in the parameter file and automatically call the corresponding modeling algorithm according to the corresponding hole type. It can sequentially generate models of different types of standard parts such as A-type round punch, D-type rectangular punch, R-type rounded rectangular punch, E-type waist punch and G-type double-sided flattened round punch. At the same time, it can automatically construct the die and fixed seat models corresponding to the punch, thereby realizing continuous automatic modeling of punching mold components.
[0109] For example, when the mold contains 100 A-type punches, 50 D-type punches, 30 R-type punches, 20 E-type punches, and 10 G-type punches, the system only needs to read the parameter file once to automatically complete the model creation of all standard parts, without the need for manual modeling operations.
[0110] Through the parameter file-driven mechanism described above, various technical modules such as automatic selection of standard parts, parameter completion, reuse of common features of main body, determination of cutting edge spatial posture and direct modeling of geometric contours are organically integrated into a unified automatic modeling process. This enables large-scale batch automatic generation of punching die components such as punches, dies and fixed seats, providing a unified, efficient and easily expandable automatic modeling solution for the rapid design of standard parts for complex stamping dies.
[0111] By directly calling the NX modeling interface to create 3D solid models, there is no need to rely on template modification, sketch adjustment or solid movement. This enables direct parameter-driven solid generation, improves model generation efficiency, and reduces model maintenance costs. It establishes a unified, efficient and easily scalable modeling method for different types of standard parts.
[0112] To improve the modeling speed of punching dies, standard part models and structural parameters of the model can be automatically matched and completed based on the punching feature parameters of the model to be modeled. Since the main structure of different types of punches has high consistency, a unified modeling framework is pre-established. Based on the standard part parameter set and the pre-built unified modeling framework, the common main structure of the model to be modeled can be generated. This allows the structural differences between different hole types to be concentrated at the cutting edge at the working end, achieving shared modeling of the common main structure, reducing repetitive modeling work, and improving modeling efficiency. Through hole type categories, pre-built cutting edge reconstruction rules, and the defined rules for the local coordinate system and rotation angle parameters, the spatial orientation of the cutting edge of the model to be modeled can be accurately determined. This achieves automatic determination of the cutting edge's direction in any spatial orientation without manual adjustment, improving not only the overall modeling efficiency of punching dies but also the accuracy and consistency of complex spatial modeling.
[0113] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0114] The following are device embodiments of the present invention. For details not described in detail, please refer to the corresponding method embodiments described above.
[0115] Figure 5A schematic diagram of the automatic modeling device for punching dies provided in an embodiment of the present invention is shown. For ease of explanation, only the parts related to the embodiment of the present invention are shown, and are described in detail below: like Figure 5 As shown, the automatic modeling device for punching dies includes: The acquisition module 510 is used to acquire the punching feature parameters of the model to be modeled; wherein, the punching feature parameters include the hole type. Output module 520 is used to automatically match standard part models and complete the structural parameters of the model to be modeled based on punching feature parameters, and output the standard part parameter set; The first generation module 530 is used to generate the main common structure of the model to be modeled based on the standard part parameter set and the pre-built unified modeling framework. The determination module 540 is used to determine the spatial orientation of the cutting edge of the model to be modeled based on the hole type, the pre-built cutting edge reconstruction rules, and the constructed unified local coordinate system and rotation angle parameter definition rules. The second generation module 550 is used to determine the geometric contour of the cutting edge based on the punching feature parameters and the preset contour solving method; and to generate the solid structure of the cutting edge based on the contour and spatial orientation of the cutting edge. The third generation module 560 is used to generate the model to be modeled based on the main common structure and the solid structure of the cutting edge of the model to be modeled.
[0116] In one possible implementation, the output module 520 is used to determine the standard part category corresponding to the model to be modeled based on the hole type category; Based on the standard part category and the key working dimensions extracted from the punching feature parameters, the standard part specifications corresponding to the model to be modeled are determined; wherein, the key working dimensions are determined based on the hole type category. Based on the total length of the punch and assembly constraint parameters of the model to be modeled, and the standard part specifications corresponding to the model to be modeled, the standard part model is automatically matched. Based on the standard part model and standard part specification library, complete the structural parameters of the model to be modeled and output the standard part parameter set.
[0117] In one possible implementation, the determining module 540 is used to determine the cutting edge construction algorithm corresponding to the hole type based on the hole type and the cutting edge reconstruction rule, and to determine the type of the cutting edge. The unit normal vector is determined based on the cutting edge mounting center coordinates and hole feature normal vector in the punching feature parameters. Based on the unit normal vector, a unified local coordinate system is constructed along the positive X-axis and positive Y-axis of the global coordinate system. Based on the unified local coordinate system and the rules for defining rotation angle parameters, the spatial orientation of the cutting edge is determined.
[0118] In one possible implementation, the determining module 540 is used to project the positive X-axis direction of the global coordinate system onto the plane determined by the unit normal vector to obtain the first reference direction of the unified local coordinate system. Based on the right-hand rule, the second reference direction of the unified local coordinate system is obtained through the cross product of vectors; A unified local coordinate system is constructed based on the first reference direction, the second reference direction, and the Z-axis direction of the unified local coordinate system; wherein, the Z-axis direction is the direction of the unit normal vector.
[0119] In one possible implementation, the origin of a unified local coordinate system is determined based on the coordinates of the cutting edge mounting center. The hole feature normal vector is normalized to obtain the unit normal vector.
[0120] In one possible implementation, the second generation module 550 is used to generate the solid structure of the cutting edge at the target spatial location based on a unified local coordinate system, the profile of the cutting edge, and the spatial orientation of the cutting edge.
[0121] In one possible implementation, the model to be modeled is generated based on the main common structure of the model to be modeled and the solid structure of the cutting edge, including: Based on the main common structure of the model to be modeled and the solid structure of the cutting edge, the parametric modeling of the punch model of the model to be modeled is completed. Based on the punching feature parameters and the results of parametric modeling of the punch model, the structural parameters of the die and the fixing seat of the model to be modeled are generated; The model to be modeled is generated based on the parametric modeling of the punch model and the structural parameters of the die and the fixed seat.
[0122] Figure 6 This is a schematic diagram of an electronic device provided in an embodiment of the present invention. For example... Figure 6 As shown, the electronic device 6 of this embodiment includes a processor 60 and a memory 61. The memory 61 stores a computer program 62. When the processor 60 executes the computer program 62, it implements the steps in the various method embodiments described above. Alternatively, when the processor 60 executes the computer program 62, it implements the functions of each module / unit in the various device embodiments described above.
[0123] For example, computer program 62 may be divided into one or more modules / units, which are stored in memory 61 and executed by processor 60 to complete the present invention. The one or more modules / units may be a series of computer program instruction segments capable of performing a specific function, which describe the execution process of computer program 62 in electronic device 6.
[0124] Electronic device 6 may include, but is not limited to, processor 60 and memory 61. Those skilled in the art will understand that... Figure 6 This is merely an example of electronic device 6 and does not constitute a limitation on electronic device 6. It may include more or fewer components than shown, or combine certain components, or different components. For example, electronic device 6 may also include input / output devices, network access devices, buses, etc.
[0125] The processor 60 can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor.
[0126] The memory 61 can be an internal storage unit of the electronic device 6, such as a hard disk or RAM. The memory 61 can also be an external storage device of the electronic device 6, such as a plug-in hard disk, Smart Media Card (SMC), Secure Digital (SD) card, or Flash Card. Furthermore, the memory 61 can include both internal and external storage units of the electronic device 6. The memory 61 is used to store the computer program 62 and other programs and data required by the electronic device 6. The memory 61 can also be used to temporarily store data that has been output or will be output.
[0127] For the sake of simplicity and clarity, only the above-described functional modules / units are used as examples. In practical applications, the functions described above can be assigned to different functional modules / units as needed. These modules / units can be implemented in hardware, software, or a combination of both.
[0128] This invention also provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it implements the methods described in the above-described method embodiments.
[0129] This invention also provides a computer program product, including a computer program. When the computer program is executed by a processor, it implements the methods described in the above-described method embodiments.
[0130] Computer programs include computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. Computer-readable media can include: any entity or device capable of carrying computer program code, recording media, USB flash drives, portable hard drives, magnetic disks, optical disks, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc.
[0131] In the above embodiments, the descriptions of each embodiment have their own emphasis. Parts not detailed or described in a particular embodiment can be referred to in the relevant descriptions of other embodiments. Unless otherwise specified or in conflict with logic, the terminology and / or descriptions between different embodiments are consistent and can be referenced interchangeably. Technical features in different embodiments can be combined to form new embodiments based on their inherent logical relationships.
[0132] The above-described embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included within the protection scope of the present invention.
Claims
1. An automatic modeling method for punching dies, characterized in that, include: Obtain the punching feature parameters of the model to be modeled; wherein, the punching feature parameters include the hole type; Based on the punching feature parameters, the standard part model is automatically matched and the structural parameters of the model to be modeled are completed, and the standard part parameter set is output. Based on the standard parts parameter set and the pre-built unified modeling framework, the main common structure of the model to be modeled is generated; Based on the hole type, the pre-built cutting edge reconstruction rules, and the constructed local coordinate system and rotation angle parameter definition rules, the spatial orientation of the cutting edge of the model to be modeled is determined. Based on the punching feature parameters and the preset contour solving method, the geometric contour of the cutting edge is determined; based on the contour of the cutting edge and the spatial orientation of the cutting edge, the solid structure of the cutting edge is generated. The model to be modeled is generated based on the main common structure of the model to be modeled and the solid structure of the cutting edge.
2. The automatic modeling method for punching dies according to claim 1, characterized in that, Based on the punching feature parameters, the system automatically matches standard part models and completes the structural parameters of the model to be modeled, and outputs a set of standard part parameters, including: Based on the hole type category, determine the standard part category corresponding to the model to be modeled; Based on the standard part category and the key working dimensions extracted from the punching feature parameters, the standard part specifications corresponding to the model to be modeled are determined; wherein, the key working dimensions are determined based on the hole type category; Based on the set total length of the punch and assembly constraint parameters of the model to be modeled, and the standard part specifications corresponding to the model to be modeled, the standard part model is automatically matched. Based on the standard part model and standard part specification library, complete the structural parameters of the model to be modeled, and output the standard part parameter set.
3. The automatic modeling method for punching dies according to claim 1, characterized in that, The determination of the spatial orientation of the cutting edge of the model to be modeled, based on the hole type, pre-constructed cutting edge reconstruction rules, and constructed local coordinate system and rotation angle parameter definition rules, includes: Based on the hole type and the cutting edge reconstruction rule, a cutting edge construction algorithm corresponding to the hole type is determined, and the type of the cutting edge is determined. Based on the cutting edge mounting center coordinates and hole feature normal vector in the punching feature parameters, determine the unit normal vector; Based on the unit normal vector, the positive X-axis and positive Y-axis of the global coordinate system are used to construct the local coordinate system; Based on the local coordinate system and the rules for defining rotation angle parameters, the spatial orientation of the cutting edge is determined.
4. The automatic modeling method for punching dies according to claim 3, characterized in that, The construction of the local coordinate system based on the unit normal vector, the positive X-axis direction, and the positive Y-axis direction of the global coordinate system includes: Projecting the positive X-axis direction of the global coordinate system onto the plane defined by the unit normal vector yields the first reference direction of the local coordinate system; Based on the right-hand rule, the second reference direction of the local coordinate system is obtained through the cross product of vectors; The local coordinate system is constructed based on the first reference direction, the second reference direction, and the Z-axis direction of the local coordinate system; wherein the Z-axis direction is the direction of the unit normal vector.
5. The automatic modeling method for punching dies according to claim 3, characterized in that, The determination of the unit normal vector based on the cutting edge mounting center coordinates and hole feature normal vector in the punching feature parameters includes: Based on the coordinates of the cutting edge installation center, determine the origin of the local coordinate system; The hole feature normal vector is normalized to obtain the unit normal vector.
6. The automatic modeling method for punching dies according to any one of claims 1-5, characterized in that, The step of generating the solid structure of the cutting edge based on its contour and spatial orientation includes: Based on the local coordinate system, the contour of the cutting edge, and the spatial orientation of the cutting edge, the solid structure of the cutting edge is generated at the target spatial location.
7. The automatic modeling method for punching dies according to any one of claims 1-5, characterized in that, The process of generating the model to be modeled based on the main common structure of the model to be modeled and the solid structure of the cutting edge includes: Based on the main common structure of the model to be modeled and the solid structure of the cutting edge, the parametric modeling of the punch model of the model to be modeled is completed. Based on the punching feature parameters and the results of parametric modeling of the punch model, the structural parameters of the die and the fixing seat of the model to be modeled are generated; Based on the results of parametric modeling of the punch model and the structural parameters of the die and the fixed seat, the model to be modeled is generated.
8. An automatic modeling device for punching dies, characterized in that, include: The acquisition module is used to acquire the punching feature parameters of the model to be modeled; wherein, the punching feature parameters include the hole type; The output module is used to automatically match the standard part model and complete the structural parameters of the model to be modeled based on the punching feature parameters, and output the standard part parameter set. The first generation module is used to generate the main common structure of the model to be modeled based on the standard parts parameter set and the pre-built unified modeling framework. The determination module is used to determine the spatial orientation of the cutting edge of the model to be modeled based on the hole type, the pre-constructed cutting edge reconstruction rules, and the constructed local coordinate system and rotation angle parameter definition rules. The second generation module is used to determine the geometric contour of the cutting edge based on the punching feature parameters and a preset contour solving method; and to generate the solid structure of the cutting edge based on the contour of the cutting edge and the spatial orientation of the cutting edge. The third generation module is used to generate the model to be modeled based on the main common structure of the model to be modeled and the solid structure of the cutting edge.
9. An electronic device, characterized in that, It includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the method as described in any one of claims 1 to 7.
