Mold automatic bottoming hole method based on nx software
By using an automatic die-cutting method based on NX software, threaded bottom holes are automatically matched and generated, solving the problem of errors in threaded bottom holes in die design and improving programming efficiency and accuracy.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHONGQING PINGWEI AUTOMOBILE TECH CO LTD
- Filing Date
- 2023-01-03
- Publication Date
- 2026-04-17
AI Technical Summary
In existing mold design techniques, the design of threaded bottom holes on the mold body is prone to errors and has low work efficiency. Programmers in subsequent processes need to manually look up tables to determine the threaded hole size.
An automatic die-drilling method based on NX software is adopted. By configuring the thread hole parameter table, establishing the user coordinate system, matching the through holes and countersunk holes on the insert or standard part, the threaded bottom hole is automatically generated.
In the subsequent CNC programming stage, the correct threaded bottom holes are automatically generated in batches, reducing the error rate, improving work efficiency, and simplifying programming operations.
Smart Images

Figure CN116029124B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of mold processing technology, and specifically to an automatic bottom hole drilling method for molds based on NX software. Background Technology
[0002] In the field of machining technology, a pilot hole typically refers to a hole pre-drilled before tapping internal threads. In other words, machining internal threads requires first creating a pilot hole on the product, and then forming the internal thread based on that pilot hole. The nominal diameter of the internal thread, the diameter of the pilot hole, and the depth of the hole must conform to national standards, which can usually be found in machining handbooks. In addition, many locating pin holes also require pre-machining of pilot holes.
[0003] NX is an interactive CAD / CAM (Computer-Aided Design and Computer-Aided Manufacturing) system with powerful functions that can easily construct various complex entities and shapes. With the development of PC hardware and the rapid growth of individual users, the application of NX on PCs has grown rapidly and has become a mainstream application software for 3D design in the mold industry.
[0004] When using NX software for mold design, the mold body typically includes numerous inserts and standard parts, which are secured to the mold body via bolts, locating pins, and other connectors. However, in actual design, designers only design countersunk holes and through holes for bolts on the inserts or standard parts. If the standard part has data records in the standard parts library, there is no need to design countersunk holes and through holes; it can be directly called. Considering the possibility of future modifications to the mold body, the corresponding threaded bottom holes on the mold body are not drawn in the initial mold design. The dimensions of the threaded bottom holes are derived from the countersunk holes and through holes on the inserts or standard parts by subsequent processes (such as CNC programming), and then programmed for machining.
[0005] While the above method can minimize the possibility of misalignment between the insert locking through-hole and the threaded bottom hole of the mold body, it places more stringent demands on the programmers in subsequent processes. Programmers need to find the correspondence between through-holes, drilled holes, and screw specifications, and then determine the diameter of the threaded bottom hole based on the screw specifications. Undoubtedly, because subsequent programming involves manual table lookups, the current method for designing mold threaded holes still suffers from errors and low efficiency. Summary of the Invention
[0006] In view of this, the present invention provides an automatic bottom hole drilling method for molds based on NX software, which aims to solve the technical problems pointed out in the background art.
[0007] To achieve the above objectives, the technical solution of the present invention is as follows:
[0008] An automatic die-cutting method for molds based on NX software, which is based on the CNC programming program of NX software, and its key features include the following steps:
[0009] Step 1: Configure the threaded hole parameter table, which includes hole type, through hole diameter, countersunk hole diameter, pilot hole diameter, and pilot hole depth;
[0010] Step 2: Embed the thread hole parameter table from Step 1 into the CNC programming program;
[0011] Step 3: Load the mold body in NX software and save the mold body as the target body;
[0012] Step 4: Establish a user coordinate system, whose Z-axis is parallel to the axis of the threaded hole, through hole, or countersunk hole;
[0013] Step 5: Select the inlays and / or standard parts, loop through each entity, find the plane with the smallest Z value in the user coordinate system, and store it in an array, which is defined as: FaceArray1; at the same time, store all faces with curvature radii smaller than the specified threshold Φ in another array, which is defined as: FaceArray2;
[0014] Step 6: Loop through each element in FaceArray1, get the edge line of the face, find the radius of curvature of the edge line, and when the radius of curvature of the edge line matches the diameter of the through hole in the thread hole parameter table, it is initially determined to be a through hole of the corresponding specification. Convert this curve into an arc and get the coordinates of the center point of the arc.
[0015] Step 7: Loop through each face in FaceArray2 and find the cylindrical face that has the same center coordinates of the arc obtained in Step 6 in the user coordinate system. There are usually two cylindrical faces, corresponding to the through hole and the countersunk hole respectively. If the diameter of the countersunk hole also matches the specifications of the threaded hole as initially determined, the diameter and depth of the bottom hole of the threaded hole can be determined.
[0016] Step 8: Based on the coordinates of the arc center point, the diameter of the bottom hole, and the depth of the bottom hole obtained in Steps 6 and 7, automatically generate the threaded bottom hole on the mold body.
[0017] Preferably, in step six, if multiple edge lines are obtained, each edge line is cycled until the radius of curvature of one of the edge lines successfully matches the diameter of the through hole in the threaded hole parameter table.
[0018] Preferably, in step four, any locking surface is selected on the mold body, and the normal of the locking surface is appropriately oriented, i.e., the Z-axis direction.
[0019] Preferably, step one further includes configuring a pin hole parameter table, which includes hole type, through hole diameter, bottom hole diameter, and bottom hole depth.
[0020] Preferably, the specified threshold Φ is set to 40mm.
[0021] Compared with the prior art, the beneficial effects of the present invention are:
[0022] The automatic die hole drilling method for molds based on NX software provided by this invention can automatically generate correct threaded bottom holes in batches on the mold body in the CNC programming stage of the subsequent process, based directly on the diameter of the through holes and countersunk holes on the inserts or standard parts, without requiring any screening or judgment by the programmer. Attached Figure Description
[0023] Figure 1 Thread hole parameter table and pin hole parameter table configured for the embodiment;
[0024] Figure 2 This is a schematic diagram showing the relationship between the holes on the mold body 1 and the insert 2. Detailed Implementation
[0025] The present invention will be further described below with reference to the embodiments and accompanying drawings.
[0026] An automatic die-cutting method for molds based on NX software, which is based on the CNC programming program of NX software, includes the following steps:
[0027] Step 1: Please refer to Figure 1 Configure the threaded hole parameter table and the pin hole parameter table. The threaded hole parameter table includes hole type, through hole diameter, countersunk hole diameter, bottom hole diameter, and bottom hole depth; the pin hole parameter table includes hole type, through hole diameter, bottom hole diameter, and bottom hole depth.
[0028] Step 2: Embed the thread hole parameter table from Step 1 into the CNC programming program;
[0029] Step 3: Load the mold body in NX software and save the mold body as the target body;
[0030] Step 4: Establish a user coordinate system. Select any locking surface on the mold body, with the normal direction of this locking surface being the Z-axis direction of the coordinate system. The X and Y axes of the coordinate system are located on the locking plane. The Z-axis of the user coordinate system is parallel to the axis of the threaded hole, through hole, or countersunk hole.
[0031] Step 5: Select the inlays and / or standard parts, loop through each entity, find the plane with the smallest Z value in the user coordinate system, and store it as an array, which is defined as: FaceArray1; at the same time, store all faces with curvature radii less than the specified threshold Φ into another array, which is defined as: FaceArray2.
[0032] Step 6: Loop through each element in the array FaceArray1 to get the edge lines of the face. There are usually multiple edge lines. Loop through each edge line and find the radius of curvature of the edge line. When the radius of curvature of one of the edge lines matches the diameter of the through hole in the thread hole parameter table, it is initially determined to be a through hole of the corresponding specification. Convert this curve into an arc and obtain the coordinates of the center point of the arc.
[0033] Step 7: Loop through each face in the FaceArray2 array and find the cylindrical face that has the same center coordinates of the arc obtained in Step 6 in the user coordinate system. There are usually two cylindrical faces, corresponding to the through hole and the countersunk hole respectively. If the diameter of the countersunk hole also matches the preliminarily determined thread hole specification, then the diameter and depth of the bottom hole of the thread hole can be determined.
[0034] Step 8: Based on the coordinates of the arc center point, the diameter of the bottom hole, and the depth of the bottom hole obtained in Steps 6 and 7, automatically generate the threaded bottom hole on the mold body.
[0035] By employing the above method, through the preliminary matching in step six and the confirmed matching in step seven, the accuracy of threaded hole position and size identification can be fully guaranteed, greatly reducing the error rate. Furthermore, after embedding the threaded hole parameter table into the program, operators only need to specify the mold body, the vector of the locking direction, and select the standard parts and inserts—a few simple operations—to automatically generate the pilot hole in the system. It can be seen that the entire operation process is very simple, requiring no filtering or judgment from the programmer.
[0036] In step five, the specified threshold Φ can be set according to the maximum value of the hole on the mold. In this embodiment, the specified threshold Φ is set to 40mm.
[0037] After the NX software's CNC programming program stores the thread hole parameter table, arrays FaceArray1 and FaceArray2, the process of generating a threaded bottom hole c on the mold body 1 can be summarized as follows: Please refer to the attached document. Figure 2For each element in the loop array FaceArray1, obtain the edge line corresponding to the through hole a. If the radius of curvature of this edge line matches the through hole diameter in the thread hole parameter table, it is preliminarily determined that the threaded bottom hole c on the mold body 1 is a matching threaded hole in the parameter table, and the center point coordinates of the through hole a are obtained. Then, loop array FaceArray2 to find the cylindrical surface with the same center coordinates in the user coordinate system. There are usually two cylindrical surfaces, corresponding to the through hole a and the countersunk hole b, respectively. If the diameter of the countersunk hole b is the same as the countersunk hole diameter in the parameter table, the relevant parameters of the threaded hole bottom can be determined to be the corresponding column in the thread hole parameter table. Then, the threaded bottom hole c is automatically generated on the mold body 1 according to the countersunk hole diameter and depth parameter values in the corresponding column. By repeating the above process, all threaded bottom holes can be automatically generated on the mold body 1.
[0038] The method provided in this embodiment can also be used to automatically generate positioning pin holes on the mold body 1. Since the pin holes on the inserts and standard parts only have through holes and not countersunk holes, the automatic generation of pin holes only requires one loop through the FaceArray1 array to make a judgment.
[0039] Finally, it should be noted that the above description is merely a preferred embodiment of the present invention. Those skilled in the art, under the guidance of the present invention, can make various similar representations without departing from the spirit and claims of the present invention, and such modifications all fall within the protection scope of the present invention.
Claims
1. An automatic die-cutting method for molds based on NX software, the method being based on the CNC programming program of NX software, characterized in that, Includes the following steps: Step 1: Configure the threaded hole parameter table, which includes hole type, through hole diameter, countersunk hole diameter, pilot hole diameter, and pilot hole depth; Step 2: Embed the thread hole parameter table from Step 1 into the CNC programming program; Step 3: Load the mold body in NX software and save the mold body as the target body; Step 4: Establish a user coordinate system, whose Z-axis is parallel to the axis of the threaded hole, through hole, or countersunk hole; Step 5: Select the inlays and / or standard parts, loop through each entity, find the plane with the smallest Z value in the user coordinate system, and store it in an array, which is defined as: FaceArray1; at the same time, store all faces with curvature radii smaller than the specified threshold Φ in another array, which is defined as: FaceArray2; Step 6: Loop through each element in FaceArray1, get the edge line of the face, find the radius of curvature of the edge line, and when the radius of curvature of the edge line matches the diameter of the through hole in the thread hole parameter table, it is initially determined to be a through hole of the corresponding specification. Convert this curve into an arc and get the coordinates of the center point of the arc. Step 7: Loop through each face in FaceArray2 and find the cylindrical face that has the same center coordinates of the arc obtained in Step 6 in the user coordinate system. There are usually two cylindrical faces, corresponding to the through hole and the countersunk hole respectively. If the diameter of the countersunk hole also matches the specifications of the threaded hole as initially determined, the diameter and depth of the bottom hole of the threaded hole can be determined. Step 8: Based on the coordinates of the arc center point, the diameter of the bottom hole, and the depth of the bottom hole obtained in Steps 6 and 7, automatically generate the threaded bottom hole on the mold body.
2. The NX software based automatic draft hole placement method for a mold according to claim 1, wherein: In step six, if multiple edge lines are obtained, each edge line is cycled until the radius of curvature of one of the edge lines successfully matches the diameter of the through hole in the threaded hole parameter table.
3. The NX software based automatic draft hole placement method for a mold according to claim 1, wherein: In step four, any locking surface is selected on the mold body, and the normal vector of the locking surface is the Z-axis direction.
4. The NX software based automatic draft hole placement method for a mold according to claim 1, wherein: Step one also includes configuring a pin hole parameter table, which includes hole type, through hole diameter, bottom hole diameter, and bottom hole depth.
5. The NX software based automatic draft hole placement method for a mold according to claim 1, wherein: The specified threshold Φ is set to 40mm.
Citation Information
Patent Citations
An efficient hole table calculation method based on three-dimensional characteristics
CN109741321A