Programming method for choke plug type parts

By importing 2D drawing files, parsing and recognizing views, and using feature recognition algorithms to automatically generate CNC machining paths, the problems of low programming efficiency, poor consistency, and low recognition accuracy of traditional blind-type parts have been solved, achieving efficient and accurate automated programming.

CN121600542APending Publication Date: 2026-03-03BEIJING JINGDIAO GRP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-10-30
Publication Date
2026-03-03

AI Technical Summary

Technical Problem

Traditional programming of complex parts relies on human experience, which is inefficient, inconsistent, and prone to errors. Furthermore, existing automated programming software has low recognition accuracy when dealing with complex geometric features, requiring a lot of manual intervention.

Method used

By importing 2D drawing files, parsing and recognizing multiple views, aligning coordinates, using feature recognition algorithms to automatically identify the geometric features of obtuse-type parts, and automatically generating CNC machining paths, regular expressions are used to match keyword text to generate corresponding CNC machining paths.

Benefits of technology

It enables intelligent and automated programming of complex parts, improves programming efficiency and consistency of machining results, avoids human misjudgment and errors, and reduces reliance on operator experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121600542A_ABST
    Figure CN121600542A_ABST
Patent Text Reader

Abstract

The invention provides a choke plug type part programming method, which comprises the following steps of: importing a two-dimensional drawing file in a preset format, and analyzing the two-dimensional drawing file; according to an analysis result, identifying a plurality of views in the two-dimensional drawing file, and performing coordinate alignment on the plurality of views; through a feature recognition algorithm, recognizing geometric features of the choke plug part in the plurality of views after coordinate alignment; and based on the identified geometric features, generating a numerical control machining path corresponding to the geometric features. According to the method, the traditional tedious steps of drawing interpretation, feature recognition, path planning and the like depending on artificial experience are converted into programmed and automatic processing flows, so that the programming efficiency and the consistency of processing results are remarkably improved, misjudgment and mistakes easily occurring in manual operation are avoided, and the dependence on the experience of operators is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of CNC programming and intelligent manufacturing technology, and in particular to a programming method for obscure parts. Background Technology

[0002] As a key component in glass bottle molding, the machining accuracy of enclosed parts directly affects product quality. Traditional enclosed part programming methods rely heavily on human experience, resulting in the following problems: First, programming efficiency is low, requiring a skilled engineer several hours to program a complex enclosed part; second, consistency is poor, with significant differences between programs written by different engineers; and third, it is prone to errors, as misjudgments can easily occur when manually identifying features in drawings.

[0003] While some existing automated programming software possesses certain feature recognition capabilities, it still suffers from low recognition accuracy and poor adaptability when handling parts with complex geometric features, such as spherical heads. Especially when processing multi-layered information and complex geometric relationships in DXF drawings, significant manual intervention is often required. Summary of the Invention

[0004] This invention provides a programming method for obscure parts to address the deficiencies in existing technologies.

[0005] This invention provides a programming method for obscured parts, comprising the following steps: Import a 2D drawing file in a preset format and parse the 2D drawing file; Based on the analysis results, multiple views in the two-dimensional drawing file are identified, and the coordinates of the multiple views are aligned. Using feature recognition algorithms, the geometric features of obscured parts are identified in multiple views after coordinate alignment. Based on the identified geometric features, a CNC machining path corresponding to the geometric features is generated.

[0006] According to the programming method for obscure parts provided by the present invention, the step of parsing the two-dimensional drawing file includes: Regular expressions are used to match and identify keyword text in the two-dimensional drawing file.

[0007] According to a programming method for obscure parts provided by the present invention, the step of identifying multiple views in the two-dimensional drawing file based on the parsing results and aligning the multiple views according to their coordinates includes: Based on the analysis results, the top view and the front view are distinguished from the two-dimensional drawing file; The top view and the front view are graphically transformed so that the intersection of their center lines coincides with the origin of a preset coordinate system.

[0008] According to a programming method for obscured parts provided by the present invention, when the geometric features include air groove features, the step of generating a CNC machining path corresponding to the identified geometric features includes: In the top view, a semi-circular outline conforming to preset size rules is identified; Locate the straight line that connects to the endpoint of the semicircular contour; Perform geometric transformations on the straight line to generate air groove processing graphics. The geometric transformations include translation and extension operations. Based on the air groove machining pattern, a CNC machining path for the air groove feature is generated.

[0009] According to a programming method for obscured parts provided by the present invention, when the geometric features include positioning hole features, the step of generating a CNC machining path corresponding to the identified geometric features includes: In the top view, a circular outline matching the preset positioning hole pattern is identified; Extract the center point coordinates and diameter parameters of the circular contour; Obtain the depth information of the positioning hole in the main view; Based on the center point coordinates, diameter parameters, and depth information, a CNC machining path for the positioning hole feature is generated.

[0010] According to a programming method for obscured parts provided by the present invention, when the geometric features include handle hole features, the step of generating a CNC machining path corresponding to the identified geometric features includes: In the top view, a handle hole outline conforming to a preset shape rule is identified. The handle hole outline includes interconnected arc segments and straight line segments. Extract the geometric parameters of the handle hole profile, including the radius of the arc, the length of the line, and the position coordinates; Obtain the depth and angle information of the handle hole in the main view; Based on the geometric parameters, depth information, and angle information, a CNC machining path for the handle hole feature is generated.

[0011] According to a programming method for obscure parts provided by the present invention, when the geometric feature includes a positioning groove feature, the step of generating a CNC machining path corresponding to the identified geometric feature includes: In the top view, the outline of the positioning groove that conforms to the preset groove shape characteristics is identified; Extract the groove width, groove length, and position information of the positioning groove contour; Obtain the depth information of the positioning groove in the main view; Based on the groove width, groove length, position information, and depth information, a CNC machining path for the positioning groove feature is generated.

[0012] According to a programming method for obscured parts provided by the present invention, when the geometric features include oblique hole features, the step of generating a CNC machining path corresponding to the identified geometric features includes: Identify the inlet location of the oblique hole in the top view; The outline of the oblique hole is identified in the main view, and the tilt angle and depth information of the oblique hole are extracted. Based on the inlet location, tilt angle, and depth information, calculate the spatial coordinate system of the inclined hole; Based on the spatial coordinate system, a CNC machining path for the oblique hole feature is generated.

[0013] According to a programming method for obscure parts provided by the present invention, when the geometric features include surface features, the step of generating a CNC machining path corresponding to the identified geometric features includes: Identify the boundary contours of surface features in the top view; Extract the cross-sectional curve of the surface feature from the main view; Based on the boundary contour and cross-sectional curve, a three-dimensional surface model of the surface feature is constructed; Determine the positions of a predetermined number of probe points on the three-dimensional curved surface model; Based on the location of the detection point, a CNC machining path for the surface feature is generated.

[0014] According to a programming method for obscured parts provided by the present invention, when the geometric features include internal cavity features, the step of generating a CNC machining path corresponding to the identified geometric features includes: Select the cross-sectional lines that characterize the contour of the inner cavity from the main view; Match the trajectory line associated with the cross-section line in the top view; Based on the cross-sectional line and the trajectory line, an initial internal cavity surface is generated through a sweeping operation; The initial inner cavity surface is filled with holes to generate a complete three-dimensional model of the inner cavity; Based on the complete three-dimensional model of the internal cavity, a CNC machining path for the internal cavity features is generated.

[0015] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement any of the above-described programming methods for the type of component.

[0016] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the programming method for the type of component described above.

[0017] The present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the programming method for the type of obscure parts as described above.

[0018] The programming method for obscured parts provided by this invention imports and parses 2D drawing files, automatically identifies multiple views and aligns their coordinates, and then uses a feature recognition algorithm to identify various key geometric features of the obscured parts. Based on the recognition results, it automatically generates corresponding CNC machining paths, realizing intelligent and automated generation from 2D drawings to the final CNC machining program. Because this invention transforms the tedious steps of traditionally relying on manual experience for drawing interpretation, feature recognition, and path planning into a programmed and automated processing flow, it significantly improves programming efficiency and the consistency of machining results, avoids misjudgments and errors easily occurring in manual operation, and reduces reliance on operator experience. Attached Figure Description

[0019] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0020] Figure 1 This is a flowchart illustrating the programming method for obscure parts provided by the present invention.

[0021] Figure 2 This is a schematic diagram of the positioning hole processing template provided by the present invention.

[0022] Figure 3 This is a schematic diagram of the front view provided by the present invention. Detailed Implementation

[0023] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.

[0024] Traditional programming methods for complex, closed-loop parts rely heavily on the engineer's personal experience, which has significant drawbacks. First, programming efficiency is low; for geometrically complex closed-loop parts, a skilled engineer often needs several hours to complete the CNC program. Second, consistency is poor; different engineers' understanding of drawings and programming habits lead to significant differences in the final machining programs, affecting product standardization and quality stability. Third, it is prone to errors; when manually identifying and analyzing the numerous geometric features contained in two-dimensional drawings (such as DXF format drawings), it is easy to miss or misjudge features due to negligence or lack of experience, leading to machining errors.

[0025] To address these issues, some automated programming software has emerged. While these programs possess a degree of automatic graphic feature recognition capability, their effectiveness is less than ideal when applied to specific parts with complex geometric features, such as end caps. Specifically, these programs generally suffer from low recognition accuracy and poor adaptability when processing DXF drawings of end cap parts. Particularly when analyzing multi-layered information and complex geometric relationships (such as air grooves, oblique holes, and internal cavity surfaces) within the drawings, their algorithms lack robustness and often fail to accurately identify features. Ultimately, significant manual intervention and correction by programmers are still required, which not only contradicts the original intention of automated programming but also fails to meet the urgent needs of the mold industry for high efficiency, high precision, and high consistency.

[0026] In response, this invention provides a programming method for obscure parts, aiming to solve the technical problems in related technologies, such as reliance on human experience, low efficiency, poor consistency, and susceptibility to errors in obscure part programming, as well as the low recognition accuracy and need for a large amount of manual intervention required by traditional automated programming software when processing complex obscure parts. The method achieves intelligent parsing and automatic feature recognition of obscure part DXF drawings, and automatically generates stable and reliable CNC machining paths, thereby significantly improving the automation level, efficiency, and machining consistency of programming.

[0027] in, Figure 1 This is a flowchart illustrating the programming method for obscure parts provided by this invention, as shown below. Figure 1 As shown, the method includes steps 110, 120, 130 and 140.

[0028] Step 110: Import a 2D drawing file in a preset format and parse the 2D drawing file.

[0029] Here, a pre-formatted 2D drawing file can be understood as a standardized data file containing part geometric and design information, which can be a DXF (Drawing Exchange Format) file, a DWG file, etc. Since the DXF format has good compatibility and universality and can be supported by most CAD and CAM software, it is preferred to use the DXF format as the pre-formatted format for 2D drawing files in this embodiment.

[0030] Importing can be understood as loading a user-specified 2D drawing file into the software environment executed in this embodiment for subsequent processing. Parsing the 2D drawing file aims to extract key information useful for subsequent processing from the complex drawing file. The parsing process may include identifying graphic elements (such as lines, circles, arcs, text, etc.) and their attributes (such as color, layer, line type, etc.) in the file.

[0031] As an optional implementation, to accurately obtain key design intent and constraint information from drawings, the parsing step may include matching and recognizing keyword text in the drawing file. For example, regular expression matching technology can be used to match specific text content (such as part names, materials, technical requirements, etc.) in the DXF file. In this way, non-geometric information in the drawings can be automatically obtained and classified, providing a basis for subsequent feature recognition and process decisions, avoiding the tediousness and error-proneness of manual reading and data entry.

[0032] As an optional embodiment, a drawing cleaning operation can also be performed during the parsing process. For example, after the drawing is loaded into the software, it can be cleaned according to preset rules, such as keeping only specific layers and deleting unprotected layers. This can effectively remove auxiliary information unrelated to the geometry of the part itself, such as drawing frames, title blocks, and dimensioning, simplifying the drawing content and reducing the computational complexity and interference of subsequent view recognition and feature recognition steps, thereby improving the accuracy and efficiency of the processing.

[0033] Step 120: Based on the analysis results, identify multiple views in the 2D drawing file and align the coordinates of the multiple views.

[0034] Specifically, multiple views typically refer to multiple two-dimensional orthogonal projections used to fully represent the shape of a three-dimensional object, such as the front view, top view, and left view. For rotating parts like those with a convex shape, their geometry is usually fully represented by a single front view and a single top view.

[0035] Identifying multiple views can be understood as using an algorithm to distinguish which elements belong to the top view and which belong to the front view based on the parsed set of graphic elements. As an optional implementation, identification can be based on the spatial distribution and relative positional relationships of the graphic elements. For example, by filtering all center lines of a specific color (such as a red center line), and considering the layout of the center lines (e.g., intersecting center lines typically correspond to the top view, while horizontal or vertical center lines typically correspond to the front view) and the density of the associated contour lines, the top view contour lines and the front view contour lines can be distinguished.

[0036] Coordinate alignment of multiple views refers to performing graphic transformations such as translation and rotation on the identified multiple views in the software's virtual three-dimensional space to restore them to the correct relative positions that conform to drafting standards and three-dimensional spatial logic.

[0037] As an optional embodiment, the top view and the front view can be graphically transformed so that the intersection of their center lines coincides with the origin (0,0,0) of the preset world coordinate system.

[0038] Step 130: Identify the geometric features of the obtuse-type part in multiple views after coordinate alignment using a feature recognition algorithm.

[0039] Specifically, geometric features can be understood as geometric shape units on a part that have specific engineering significance and processing attributes. For obtuse-type parts, these geometric features may include air groove features, positioning hole features, handle hole features, positioning slot features, oblique hole features, surface features, and internal cavity features, etc.

[0040] Furthermore, feature recognition algorithms can be understood as a set of computer program logic used to automatically search, locate, and extract the aforementioned geometric feature parameters in a coordinate-aligned view. These algorithms are typically rule-based, meaning the recognition rules are defined according to how each feature is represented on a two-dimensional drawing.

[0041] As an optional embodiment, the feature recognition algorithm can integrate information from different views for comprehensive judgment. For example, when identifying a positioning hole feature, the algorithm can search for a circular outline that conforms to a preset diameter range in the top view and search for the depth information of the hole represented by two parallel line segments at the corresponding position in the front view. When the information in the two views can be successfully matched (e.g., the distance between the two parallel lines in the front view is equal to the diameter of the circle in the top view), the existence of a positioning hole feature can be confirmed, and its complete parameters such as center point coordinates, diameter, and depth can be extracted. Similarly, for air groove features, This step transforms the process of engineers identifying images based on experience into automated machine algorithms, which is not only faster but also avoids misidentification and omissions caused by human negligence or fatigue, ensuring the completeness and accuracy of feature extraction.

[0042] Step 140 generates a CNC machining path corresponding to the identified geometric features.

[0043] Here, the CNC machining path is a set of trajectory instructions and process parameters that guide the CNC machine tool cutting tool to perform machining.

[0044] Generating corresponding CNC machining paths based on identified geometric features can be understood as automatically planning one or more reasonable machining paths for each identified geometric feature, according to a preset process knowledge base or machining template. This process typically includes automatically selecting appropriate tools, setting cutting parameters, determining machining strategies, and calculating specific tool trajectory coordinates.

[0045] As an alternative implementation, the generation of the processing path can be dynamically associated with features. Figure 2 This is a schematic diagram of the positioning hole processing template provided by the present invention, as shown below. Figure 2 As shown, once the positioning hole features are identified, a preset positioning hole processing template can be automatically invoked. This template may include multiple processes such as ball hole positioning, drilling, and tapping. The identified hole diameter and other parameters are filled into the template, thereby automatically generating a series of specific processing paths. The path parameters (such as surface height, processing depth, etc.) can be recalculated or modified as needed.

[0046] The programming method for obscured parts provided in this embodiment imports and parses 2D drawing files, automatically identifies multiple views and aligns their coordinates, and then uses a feature recognition algorithm to identify various key geometric features of the obscured parts. Based on the recognition results, it automatically generates corresponding CNC machining paths, realizing intelligent and automated generation from 2D drawings to the final CNC machining program. Because this embodiment transforms the tedious steps of traditionally relying on manual experience for drawing interpretation, feature recognition, and path planning into a programmed and automated processing flow, it significantly improves programming efficiency and the consistency of machining results, avoids misjudgments and errors that are prone to occur in manual operation, and reduces reliance on operator experience.

[0047] Based on the above embodiments, the parsing of two-dimensional drawing files includes: Regular expressions are used to match and identify keyword text in 2D drawing files.

[0048] Specifically, keyword text can be understood as a text string existing in a two-dimensional drawing file, used to describe non-geometric design information such as part name, material grade, technical requirements, heat treatment specifications, and surface roughness. Because the location and format of keyword text in drawings are not fixed, traditional methods are difficult to use automatically. For example, in drawings of parts with a "blind" or similar components, keyword text might include "blind," "material: 45#," and "quenched HRC48-52," etc.

[0049] Regular expressions can be understood as logical formulas or patterns used to describe and match sets of strings. Because different design institutes or engineers may have stylistic differences in text annotations on their drawings—for example, material annotations might be written as "Material: Cr12MoV", "Material: Cr12MoV", or "Material Material: Cr12MoV"—simple text string search methods often cannot cover all cases.

[0050] To address this, this embodiment employs regular expressions to match and identify keyword text, specifically by pre-setting a series of regular expression patterns for different keywords (such as material, heat treatment, etc.). When parsing the 2D drawing file, all extracted text entities are traversed, and these regular expression patterns are used to match them one by one.

[0051] This embodiment, by further employing regular expressions to match and identify keyword text in 2D drawing files during parsing, can automatically and accurately extract key non-geometric process information such as materials and technical requirements from drawing files with different formats and styles. This effectively overcomes the problems of low efficiency and easy errors in manual recognition caused by non-standard text annotations and inconsistent positions in traditional drawing information extraction.

[0052] Based on any of the above embodiments, according to the parsing results, multiple views in a two-dimensional drawing file are identified, and the coordinates of the multiple views are aligned, including: Based on the analysis results, the top view and the front view are distinguished from the two-dimensional drawing file; Perform a graphical transformation on the top view and the front view so that the intersection of their centerlines coincides with the origin of the preset coordinate system.

[0053] Specifically, the main purpose of distinguishing between the top view and the front view is to accurately identify the outlines and other related elements that constitute the top view and the front view, respectively, from the analyzed and preliminarily cleaned set of elements. For typical rotating parts like the "bent-head" type, its two-dimensional drawings usually include one front view and one top view.

[0054] As an alternative implementation, the method for distinguishing between top views and front views can be based on the identification and analysis of center lines. Center lines in mechanical drawings are typically represented by specific colors (e.g., red) and line types (e.g., thin dotted lines). Therefore, all center lines can first be filtered out from all resolved elements based on attributes such as color and line type. Subsequently, the views are distinguished by analyzing the spatial layout of the center lines.

[0055] In a top view, the center lines typically form a cross shape, so the center of the top view can be located by searching for two center lines of similar length, approximately perpendicular, and intersecting. A front view usually has a long horizontal center line running the entire length of the view, serving as its axis of rotation; therefore, the front view can be located by searching for a center line that matches this characteristic.

[0056] Next, a graphical transformation is performed on the top view and the front view so that the intersection of their centerlines coincides with the preset coordinate system origin. Here, graphical transformation refers to a global translation and / or rotation operation on all elements of the distinguished top and front views. The preset coordinate system origin usually refers to the world coordinate system origin (WCS) in the software, with coordinates (0,0,0). The intersection of the centerlines is the view reference point; in the top view, it is the intersection of the cross lines, and in the front view, it is the intersection of the main axis and other reference lines.

[0057] As an optional embodiment, the alignment process can be specifically implemented as follows: Calculate the position offset vectors of the intersection points of the center lines of the top view and the front view relative to the origin (0,0,0) of the preset coordinate system. Apply the negative vectors of the above displacement offset vectors to all elements in the top and front views to perform translation, so that the center points of both views are moved to the origin of the coordinate system.

[0058] Furthermore, to ensure that the view orientation conforms to the standard three-view projection relationship, it is possible to further check whether the horizontal centerline of the front view is parallel to one of the principal axes of the coordinate system, and whether the centerline of the top view is parallel to the X-axis and Y-axis respectively. If they are not parallel, calculate the deviation angle and perform a rotation transformation on all elements of the corresponding view to correct their orientation.

[0059] This embodiment automatically distinguishes the front view and the top view based on inherent features such as centerline layout, and uses graphic transformation to align the center of the view to a unified coordinate origin, thereby achieving automated and high-precision alignment of multiple views in a two-dimensional drawing.

[0060] Based on any of the above embodiments, when the geometric feature includes an air groove feature, a CNC machining path corresponding to the identified geometric feature is generated, including: Identify the semicircular outline that conforms to the preset size rules in the top view; Locate the straight line that connects to the endpoint of the semicircular profile; Perform geometric transformations on straight lines to generate air groove processing graphics. Geometric transformations include translation and extension operations. Based on the air groove machining graphic, a CNC machining path for the air groove feature is generated.

[0061] Specifically, the preset size rules can be understood as one or more screening conditions set for the key geometric parts of the air groove feature based on the design and manufacturing process knowledge of the air groove type parts, in order to accurately distinguish the air groove feature from other graphic elements.

[0062] As an optional embodiment, the rule can be set as follows: the outline must be semicircular (i.e., the central angle is 180 degrees), and its radius R should be within a specific range, such as 1mm ≤ R ≤ 5mm. Using this rule, the semicircular outline belonging to the air groove feature can be quickly and accurately located among all elements in the top view.

[0063] After successfully identifying the semicircular outline, the coordinates of its two endpoints can be obtained. Next, the database of elements in the top view is searched for straight line elements that coincide with (or are within a very small margin of error of) these two endpoint coordinates. Locating the lines that connect to these lines aims to find the outline of the air duct body. In 2D drawings, an air duct is typically composed of two parallel straight lines connected by a semicircle. By finding the line connecting to the semicircle, the direction and approximate location of the air duct can be determined.

[0064] Considering that the straight contours directly identified from the drawings are usually the edge lines of the air grooves and cannot be directly used as the center movement trajectory of the tool, geometric transformations are required to generate air groove machining graphics that meet the actual machining requirements. In this embodiment, the geometric transformations preferably include translation and extension operations.

[0065] The translation operation can be understood as shifting the identified straight line profile a certain distance into the air groove to generate the centerline of the air groove. As an optional embodiment, the translation distance can be set to be equal to the radius R of the identified semicircular profile, and the translation direction is perpendicular to the straight line itself and points inward into the air groove. Through this translation operation, the centerline of the air groove can be accurately calculated from its edge profile, and this centerline will serve as the reference for toolpath planning.

[0066] The extension operation can be understood as extending the centerline segment obtained after the translation operation outward. As an optional embodiment, the end of the centerline segment (i.e., the end away from the semicircle) can be extended by a preset length along its own direction. For example, it can be extended by a fixed safety value (such as 2mm), or by a dynamic value related to the radius of the selected machining tool. Through the above translation and extension operations, the outline on the original drawing is transformed into a groove machining drawing that can be directly used for machining and includes process considerations.

[0067] After obtaining the air groove machining drawing, it can be placed on the corresponding layer and a preset process library can be invoked. For example, a flat-end mill or ball end mill with a matching diameter is automatically selected based on the width of the air groove, and the air groove machining drawing is used as the center trajectory of the tool. Subsequently, combined with the technical requirements (such as depth information) obtained from the drawing analysis, reasonable process parameters such as cutting depth, feed rate, and spindle speed are set, and finally, a CNC machining path is generated to drive the CNC machine tool to perform air groove milling.

[0068] Based on any of the above embodiments, when the geometric features include positioning hole features, a CNC machining path corresponding to the identified geometric features is generated, including: Identify the circular outline that matches the preset positioning hole pattern in the top view; Extract the center point coordinates and diameter parameters of the circular profile; Obtain the depth information of the positioning hole in the main view; Based on the center point coordinates, diameter parameters, and depth information, a CNC machining path for the positioning hole feature is generated.

[0069] Specifically, the preset positioning hole pattern can be understood as a set of rules used to define and filter positioning holes. As an optional embodiment, the preset positioning hole pattern may include a limitation on the diameter range. For example, the diameter of the positioning holes of end caps is usually within a specific range (e.g., 8mm to 16mm), so only circular outlines with diameters falling within this preset range can be searched in the top view, thereby initially filtering out circular features that are not positioning holes.

[0070] As another alternative embodiment, the positioning hole pattern can also be spatially distributed regularly. For example, the positioning holes are typically distributed in a specific number (such as 2 or 4) along a circumferential array. Based on this, it can be further checked whether the initially screened circular contours meet this spatial layout requirement regarding quantity and symmetry, in order to improve the accuracy of identification.

[0071] Next, the center point coordinates and diameter parameters of the circular outline are extracted, and the depth information of the positioning hole is obtained from the main view. Considering the expressive characteristics of two-dimensional drawings, the depth information of the hole cannot be obtained from the top view and needs to be extracted by associating it with the main view.

[0072] As an optional embodiment, the x-coordinate of the center point of the positioning hole extracted from the top view (e.g., x=50.0) can first be mapped to the already coordinate-aligned front view. Then, a search is performed in the front view along the vertical line of this x-coordinate to find the vertical line segment representing the boundary of the hole. The depth information of the hole can be obtained by calculating the difference in Z-coordinates between the two endpoints of this vertical line segment. For example, if the Z-coordinate of the contour line representing the top surface of the hole is 0, and the Z-coordinate of the contour line representing the bottom surface of the hole is -20.0, then the depth of the positioning hole is determined to be 20.0 mm. Figure 3 This is a schematic diagram of the front view provided by the present invention, such as... Figure 3 As shown, the depth information is the vertical length of the sidewall profile that constitutes the hole.

[0073] Finally, based on the center point coordinates, diameter parameters, and depth information, a CNC machining path for the positioning hole feature is generated.

[0074] Based on any of the above embodiments, when the geometric feature includes a handle hole feature, a CNC machining path corresponding to the identified geometric feature is generated, including: In the top view, identify the handle hole outline that conforms to the preset shape rules. The handle hole outline includes interconnected arc segments and straight line segments. Extract the geometric parameters of the handle hole profile, including the radius of the arc, the length of the line, and the position coordinates; Obtain the depth and angle information of the handle hole in the main view; Based on geometric parameters, depth information, and angle information, a CNC machining path for the handle hole feature is generated.

[0075] Specifically, the handle hole profile can be understood as the projected shape of the handle hole in a top view. Preset shape rules refer to a set of geometric constraints used to define and identify this specific profile. For example, the rule could be: the handle hole profile is a shape enclosed by two straight line segments of equal length and parallel to each other, and two semicircular arc segments of the same radius connecting the ends of the two straight line segments respectively.

[0076] As an optional embodiment, all arcs with radii within a preset range can be searched and paired in all elements of the top view first. Then, it is determined whether these paired arcs are semicircles and whether the line connecting their centers is perpendicular to the common tangent connecting their endpoints (i.e., the straight line segments forming both sides of the waist-shaped hole). When a set of "double arc-double straight line" combinations that satisfy the topological relationship and dimensional constraints is found, a complete handle hole profile can be identified.

[0077] Next, after identifying the handle hole contour, the geometric parameters of the handle hole contour are extracted from the primitive attributes that constitute the contour. Among them, the geometric parameters are key data that quantitatively describe the two-dimensional shape and position of the handle hole, and the geometric parameters include the radius of the arc, the length of the line, and the position coordinates.

[0078] For example, the radius of the arc can be directly read from the data structure of the arc primitives that make up the contour. The length of the straight line can be obtained by calculating the coordinate difference between the two endpoints of the straight line segment that makes up the contour. The position coordinates can be defined as the coordinates of the geometric center of the waist-shaped hole contour.

[0079] Since the top view only provides the shape and position of the handle hole in the XY plane, the required machining depth and possible tilt angle information need to be obtained from the front view. Depth information can be understood as the Z-axis distance the tool needs to cut. As an alternative embodiment, the depth value can be determined by searching for lines representing the bottom or wall of the hole within the corresponding area in the front view based on the position coordinates obtained from the top view.

[0080] Furthermore, considering that the handle hole is usually not perpendicular to the end face of the part, it is necessary to obtain its angle information. The angle information refers to the angle between the central axis of the handle hole and the main axis of the part. As an optional embodiment, two parallel oblique lines representing the sidewall of the handle hole can be identified at the corresponding position in the front view. By calculating the inclination angle of these two oblique lines, the machining angle of the handle hole can be accurately obtained.

[0081] Finally, based on geometric parameters, depth information, and angle information, a CNC machining path for the handle hole feature is generated. As an optional embodiment, an inclined local coordinate system or machining plane can first be automatically created based on the acquired angle information, with the Z-axis of this coordinate system coinciding with the central axis of the handle hole. Subsequently, within this inclined coordinate system, the two-dimensional motion trajectory of the tool is planned according to the extracted geometric parameters, and the depth of cut in the Z-axis is controlled based on the depth information.

[0082] This embodiment accurately extracts the complete three-dimensional geometric information and spatial orientation of the tilt handle hole by combining information from the top view and the front view. Based on this, it automatically generates the tilt surface machining path that originally required complex manual operation, which greatly simplifies the programming work for such non-standard, tilt features and significantly improves the automation level and accuracy of programming.

[0083] Based on any of the above embodiments, when the geometric feature includes a positioning groove feature, a CNC machining path corresponding to the identified geometric feature is generated, including: Identify the positioning groove outline that conforms to the preset groove shape characteristics in the top view; Extract the groove width, groove length, and position information of the positioning groove contour; Obtain the depth information of the positioning slot in the main view; Based on the slot width, slot length, position information, and depth information, a CNC machining path for the positioning slot feature is generated.

[0084] Specifically, the preset groove feature can be understood as a combination of primitives with specific geometric topological relationships. For example, for a common oblong positioning groove, this feature can be defined as a closed contour consisting of "two parallel straight line segments" and "two semicircular arcs connecting the two ends of the two straight line segments respectively". This embodiment accurately locates the positioning groove contour by searching and matching this specific primitive combination pattern in the top view.

[0085] After successfully identifying the two-dimensional contour of the positioning groove, the groove width, groove length, and position information of the positioning groove contour are further extracted. As an optional embodiment, the groove width can be the perpendicular distance between two parallel straight line segments; the groove length can be the distance between the centers of two semicircles plus the diameter of the semicircles; the position information can include the geometric center coordinates of the positioning groove contour and the rotation angle of its major axis relative to the coordinate system.

[0086] Since the top view only provides information within the XY plane, this embodiment needs to combine the information from the front view to obtain the depth information of the positioning groove in order to obtain the complete three-dimensional dimensions of the positioning groove. By mapping the position information extracted from the top view to the corresponding area of ​​the front view, a U-shaped or rectangular outline, typically composed of two vertical lines and one horizontal line, corresponding to the positioning groove can be found in the front view. The vertical dimension of this outline is then determined as the depth information of the positioning groove.

[0087] Finally, based on the groove width, groove length, position information, and depth information, a CNC machining path for the positioning groove feature is generated. As an optional embodiment, this generation process can be an automated workflow based on a preset process template. For example, a "positioning groove machining template" can be invoked, which contains machining strategies for grooves of different sizes.

[0088] First, based on the extracted slot width, one or more flat end mills of suitable diameter are automatically selected from the tool library. Then, combining the acquired slot width, slot length, position information, and depth information, a specific toolpath is automatically generated.

[0089] Through the above-described processing flow for the positioning groove feature, this embodiment achieves automated and high-precision programming of this typical feature. It fully automates the tedious manual measurement, parameter input, and toolpath design processes, greatly improving programming efficiency. Furthermore, by using standardized machining templates, it ensures the uniformity and stability of the machining process, effectively avoiding dimensional errors or improper processes that may be introduced by manual operation, thus guaranteeing the machining quality of the positioning groove on obscured parts.

[0090] Based on any of the above embodiments, when the geometric feature includes an oblique hole feature, a CNC machining path corresponding to the identified geometric feature is generated, including: Identify the inlet location of the inclined hole in the top view; Identify the outline of the oblique hole in the main view and extract the tilt angle and depth information of the oblique hole; Based on the inlet location, tilt angle, and depth information, calculate the spatial coordinate system of the inclined hole; Based on the spatial coordinate system, a CNC machining path for the inclined hole feature is generated.

[0091] Specifically, the entry point of a slanted hole can be understood as the starting point on the surface of the part when the CNC tool begins cutting the slanted hole. In the top view of a two-dimensional drawing, due to projection, a circular slanted hole usually appears as an elliptical outline, or remains circular at a specific projection angle.

[0092] Next, the outline of the oblique hole is identified in the front view, and the tilt angle and depth information of the oblique hole are extracted. Here, the outline of the oblique hole is typically represented in the front view as two parallel straight lines that are not parallel to the central axis of the part. The tilt angle refers to the angle between the central axis of the oblique hole and the main axis of the part. As an optional embodiment, this angle can be determined by calculating the slope of the identified outline. The depth information refers to the effective length of the oblique hole. As an optional embodiment, this depth can be obtained by measuring the length of the oblique hole outline in the front view, or by measuring the projected distance from the entrance point of the oblique hole to its endpoint.

[0093] By comprehensively analyzing the top view and the front view, this embodiment can completely extract all the key parameters characterizing the three-dimensional attitude of the inclined hole from the two-dimensional drawings, avoiding the tediousness and inaccuracy of manual drawing reading and measurement.

[0094] Then, based on the inlet location, tilt angle, and depth information, the spatial coordinate system of the inclined hole is calculated. Here, the spatial coordinate system of the inclined hole is a local coordinate system established for the inclined hole feature. The purpose of establishing this spatial coordinate system is to transform a complex inclined machining problem that requires multi-axis linkage to complete in the world coordinate system into a simple machining problem that only requires feeding along a single axis in a local coordinate system.

[0095] After successfully establishing the spatial coordinate system of the inclined hole, the preset drilling template can be called to generate the CNC machining path of the inclined hole feature.

[0096] This embodiment addresses the common oblique hole feature in oblique-shaped parts. It extracts the 2D position and 3D orientation information from the top and front views, respectively, and creates a dedicated local spatial coordinate system based on this information. Finally, a standardized machining strategy is applied within this coordinate system to generate the toolpath. Because this embodiment decomposes the complex 3D positioning and path planning problem of oblique holes into a combination of 2D feature recognition and 1D path generation, it achieves complete automation of oblique hole machining programming. This greatly simplifies the programming difficulty for such non-standard features, avoids the huge errors that may be introduced when manually calculating angles and coordinates, and ensures the accuracy and efficiency of oblique hole machining.

[0097] Based on any of the above embodiments, when the geometric features include surface features, generating a CNC machining path corresponding to the identified geometric features includes: Identify the boundary contours of surface features in the top view; Extract the cross-sectional curves of surface features from the main view; A three-dimensional surface model of the surface features is constructed based on the boundary contour and cross-sectional curve. Determine the positions of a predetermined number of probe points on the three-dimensional curved surface model; Based on the location of the probe point, a CNC machining path for the surface features is generated.

[0098] Specifically, a surface feature can be understood as a reference surface on a closed-end part used for on-machine measurement during CNC machining to determine the precise position and orientation of the workpiece. A boundary profile refers to a closed curve that defines the range of this surface feature in a two-dimensional top view. In this embodiment, the boundary line representing the surface feature can be searched and identified according to preset rules within the coordinate-aligned top view data.

[0099] Then, the cross-sectional curve of the surface feature is extracted from the front view. Here, the cross-sectional curve refers to the curve representing the surface feature along a specific cross-sectional shape in the two-dimensional front view. Since the front view and the top view have been precisely aligned in coordinates in step 120, the outermost contour line can be extracted as the cross-sectional curve within the area in the front view corresponding to the boundary contour of the top view.

[0100] Next, based on the boundary contour and cross-sectional curve, a three-dimensional surface model of the surface features is constructed to reintegrate the geometric information extracted from the two-dimensional view into an accurate three-dimensional mathematical model.

[0101] Then, a predetermined number of probe point positions are determined on the 3D surface model. Here, the probe points are a series of specific coordinate points calculated on the constructed 3D surface model. The predetermined number can be determined based on the measurement accuracy and feature shape.

[0102] Finally, based on the location of the probe points, a CNC machining path for the surface features is generated. Here, the CNC machining path does not refer to the cutting path, but rather to the probe path that guides the machine tool probe for automated measurement.

[0103] This embodiment automatically constructs a 3D model of a surface feature by identifying its contours and cross-sections in the top and front views, and then accurately calculates the position of the detection points based on this model. Finally, it generates an automatic detection path, achieving automatic, high-precision on-machine measurement and positioning of the workpiece before machining. Since this detection path is generated fully automatically based on the original drawing information, compared to the traditional method requiring experienced engineers to manually operate the machine tool for alignment or manually write complex detection macro programs, it greatly improves the efficiency and positioning accuracy of the machining preparation stage, and avoids workpiece clamping errors caused by manual operation errors or programming mistakes.

[0104] Based on any of the above embodiments, when the geometric features include internal cavity features, a CNC machining path corresponding to the identified geometric features is generated, including: Select the cross-sectional lines that characterize the contour of the internal cavity in the main view; Match the trajectory line associated with the section line in the top view; Based on the cross-section line and trajectory line, the initial internal cavity surface is generated through a sweeping operation; The initial inner cavity surface is filled with holes to generate a complete three-dimensional model of the inner cavity; Based on the complete 3D model of the internal cavity, a CNC machining path for the internal cavity features is generated.

[0105] Specifically, a section line can be understood as the outline used to define the shape of the internal cavity along a certain cutting plane in the front view. Since the end-type parts are bodies of revolution, their front view can usually fully express the two-dimensional cross-sectional shape of the internal cavity.

[0106] As an optional implementation, based on drawing specifications, a set of continuous curves or line segments located inside the main outline of the part and belonging to a specific layer or having a specific color can be selected. These selected line segments are then connected to form one or more closed outlines, each of which represents an independent cross-sectional line.

[0107] Next, match the trajectory lines associated with the section line in the top view. Here, the trajectory line can be understood as the path followed by the section line as it moves in three-dimensional space. For rotating bodies like the spherical part, the trajectory line is usually one or more circles or arcs in the top view. Matching the trajectory lines associated with the section line means establishing the correspondence between the section line in the front view and the trajectory line in the top view, thereby determining the radius and range of rotation of the section line in three-dimensional space.

[0108] Subsequently, based on the cross-section line and the trajectory line, an initial internal cavity surface is generated through a sweep operation. The sweep operation can be understood as moving the two-dimensional cross-sectional profile (i.e., the cross-section line) along a specified three-dimensional path (i.e., the trajectory line), and the spatial region swept during the movement constitutes a three-dimensional surface or solid.

[0109] After the initial inner cavity surface is generated by sweeping, it may have open boundaries at its top or bottom, making it not a closed entity. Therefore, in this embodiment, after generating the initial inner cavity surface, surface filling processing is performed on the initial inner cavity surface to generate a complete three-dimensional model of the inner cavity.

[0110] The surface patching process aims to close these open boundaries by generating new surface patches, creating a complete, seamless closed model. As an optional implementation, all open boundary loops on the initial inner cavity surface can be automatically detected, and a planar patch or a more complex fitted surface patch can be automatically generated based on the shape of the boundary loops to perform surface patching.

[0111] After obtaining a complete three-dimensional model of the internal cavity, a CNC machining path for the internal cavity features is generated based on the complete three-dimensional model of the internal cavity.

[0112] This embodiment solves the technical problem that traditional methods cannot accurately reproduce the three-dimensional shape of complex internal cavities from two-dimensional drawings, which leads to cumbersome and error-prone CAM programming by filtering section lines in the main view, matching trajectory lines in the top view, and combining sweeping and hole-filling operations to accurately reconstruct the complete three-dimensional model of the internal cavity.

[0113] Based on any of the above embodiments, the present invention also provides a programming method for obscure parts, specifically including: S1. Import DXF format drawings and perform text keyword matching.

[0114] S2. Identify the top view and front view in the drawing and make the intersection of the center lines coincide with the origin of the world coordinate system.

[0115] S3. Identify air grooves, positioning holes, handle holes, positioning slots, oblique holes, surface detection points, and internal cavities through feature recognition algorithms, and generate corresponding processing paths for these features.

[0116] Specifically, S1 includes: Regular expression matching technology is used to match keyword text in DXF format drawings, and the drawings are loaded into the software to delete unprotected layers.

[0117] S2 specifically includes: By filtering all the red center lines, the top view outline and the front view outline are distinguished; the top view and the front view are graphically transformed so that the intersection of the center lines coincides with the origin of the world coordinate system.

[0118] S3 specifically includes: Identify a semicircle with a diameter of 6mm in the top view Z0 plane, locate the connecting yellow straight line based on the endpoint of the semicircle, translate the longest line segment in the same group to coincide with the center of the circle, and extend the outer side of the line segment by 4mm; break the line segment at the center of the circle, ensuring that the direction of the line segment points to the center of the circle, and place the broken line segment in the corresponding layer, and recalculate the processing path associated with this feature.

[0119] Filter all line segments in the main view with X+ direction and direction vector of (0,0,1) or (0,0,-1), filter line segments whose Z range contains -9, and if there are multiple line segments, select the line segment with the largest X coordinate; modify the surface height parameter of all paths in the [Positioning Hole] path group to the X value of this line segment, and recalculate the path.

[0120] Filter the X+ direction line segments in the main view, selecting line segments with direction vectors of (0,0,1) or (0,0,-1) and Z ranges including [L+32] (L is the Z value of the lowest straight line in the main view). If multiple line segments exist, select the line segment with the largest X coordinate. Modify the surface height parameter of all paths in the [Handle Hole] path group to the X value of this line segment, and recalculate the path.

[0121] Filter the X+ direction of the main view, locate the vertical line with the largest X value, search for connected arcs or line segments along the negative Z direction, define the lowest vertical line segment as L2 with an X coordinate of X2, the second lowest vertical line segment as L1 with an X coordinate of X1, copy L2, and extend it in the Z direction to the same height as the connected arc, then extend the endpoints by 5mm to get L3, translate L3 along Y+ by 5mm and copy it to get L4, translate L3 along Y- by 5mm and copy it to get L5, connect the endpoints on the same side of L4 and L5 to get rectangle J1, move J1 to the [Positioning Slot] layer, enumerate the [Positioning Slot] path group, set the surface height to |X2|, the bottom height to |X1|, and recalculate the path.

[0122] Filter three oblique lines in the main view with the same X coordinate at one endpoint (error ±0.01), locate the middle line segment, and perform a Z-axis mirroring operation if its X value is less than 0; calculate the angle based on the line connecting the center of the air groove and the origin, rotate and copy the middle line segment to the [Oblique Hole] layer, enumerate the [Oblique Hole] path group and recalculate the path.

[0123] Identify the entire circle in plane Z0 from the top view, sort by diameter and take the second largest diameter circle D2, and write the point (-D2 / 2+7,0,0) into the path [Top Surface Point (Z0 Position)]. From the front view, take the midpoint of the vertical line segment with the largest Xmax and write it into the path [Outer Circle Point (Center Position)]. Take the Zmin endpoint of L1 and write it into the path [Bottom Surface Point (Reference Z Datum for Fitting Fixture)]. Recalculate the paths for each.

[0124] In the main view, select the cross-sectional line with a Z-coordinate of 0 at one end, a Z-coordinate of the center of the circle greater than 0, and the largest |X|. In the top view, match the trajectory line that intersects the center line of the main view and the distance from the intersection point to the center of the circle is |X|, and perform a sweep operation. Then, complete the generation of the inner cavity surface by filling the hole with a curved surface. Put the complete inner cavity surface into the specified layer and recalculate the processing path associated with the feature.

[0125] The programming device for closed-end parts provided by the present invention is described below. The programming device for closed-end parts described below and the programming method for closed-end parts described above can be referred to in correspondence.

[0126] Based on any of the above embodiments, the present invention also provides a structural schematic diagram of a programming device for obscure parts, the device comprising: The parsing unit is used to import two-dimensional drawing files in a preset format and parse the two-dimensional drawing files; Alignment unit, used to identify multiple views in a 2D drawing file based on the parsing results, and to align the coordinates of the multiple views; The recognition unit is used to identify the geometric features of the obtuse-type part in multiple views after coordinate alignment using a feature recognition algorithm; The generation unit is used to generate a CNC machining path corresponding to the identified geometric features.

[0127] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0128] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0129] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; 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; and these 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.

Claims

1. A programming method for obscure parts, characterized in that, include: Import a 2D drawing file in a preset format and parse the 2D drawing file; Based on the analysis results, multiple views in the two-dimensional drawing file are identified, and the coordinates of the multiple views are aligned. Using feature recognition algorithms, the geometric features of obscured parts are identified in multiple views after coordinate alignment. Based on the identified geometric features, a CNC machining path corresponding to the geometric features is generated.

2. The programming method for obscure parts according to claim 1, characterized in that, The parsing of the two-dimensional drawing file includes: Regular expressions are used to match and identify keyword text in the two-dimensional drawing file.

3. The programming method for obscure parts according to claim 1, characterized in that, The step of identifying multiple views in the 2D drawing file based on the parsing results and aligning the coordinates of the multiple views includes: Based on the analysis results, the top view and the front view are distinguished from the two-dimensional drawing file; The top view and the front view are graphically transformed so that the intersection of their center lines coincides with the origin of a preset coordinate system.

4. The programming method for obscure parts according to claim 3, characterized in that, When the geometric feature includes an air groove feature, generating a CNC machining path corresponding to the identified geometric feature includes: In the top view, a semi-circular outline conforming to preset size rules is identified; Locate the straight line that connects to the endpoint of the semicircular contour; Perform geometric transformations on the straight line to generate air groove processing graphics. The geometric transformations include translation and extension operations. Based on the air groove machining pattern, a CNC machining path for the air groove feature is generated.

5. The programming method for obscure parts according to claim 3, characterized in that, When the geometric feature includes a positioning hole feature, generating a CNC machining path corresponding to the identified geometric feature includes: In the top view, a circular outline matching the preset positioning hole pattern is identified; Extract the center point coordinates and diameter parameters of the circular contour; Obtain the depth information of the positioning hole in the main view; Based on the center point coordinates, diameter parameters, and depth information, a CNC machining path for the positioning hole feature is generated.

6. The programming method for obscure parts according to claim 3, characterized in that, When the geometric feature includes a handle hole feature, generating a CNC machining path corresponding to the identified geometric feature includes: In the top view, a handle hole outline conforming to a preset shape rule is identified. The handle hole outline includes interconnected arc segments and straight line segments. Extract the geometric parameters of the handle hole profile, including the radius of the arc, the length of the line, and the position coordinates; Obtain the depth and angle information of the handle hole in the main view; Based on the geometric parameters, depth information, and angle information, a CNC machining path for the handle hole feature is generated.

7. The programming method for obscure parts according to claim 3, characterized in that, When the geometric feature includes a positioning groove feature, generating a CNC machining path corresponding to the identified geometric feature includes: In the top view, the outline of the positioning groove that conforms to the preset groove shape characteristics is identified; Extract the groove width, groove length, and position information of the positioning groove contour; Obtain the depth information of the positioning groove in the main view; Based on the groove width, groove length, position information, and depth information, a CNC machining path for the positioning groove feature is generated.

8. The programming method for obscure parts according to claim 3, characterized in that, When the geometric feature includes an oblique hole feature, generating a CNC machining path corresponding to the identified geometric feature includes: Identify the inlet location of the oblique hole in the top view; The outline of the oblique hole is identified in the main view, and the tilt angle and depth information of the oblique hole are extracted. Based on the inlet location, tilt angle, and depth information, calculate the spatial coordinate system of the inclined hole; Based on the spatial coordinate system, a CNC machining path for the oblique hole feature is generated.

9. The programming method for obscure parts according to claim 3, characterized in that, When the geometric features include surface features, generating a CNC machining path corresponding to the identified geometric features includes: Identify the boundary contours of surface features in the top view; Extract the cross-sectional curve of the surface feature from the main view; Based on the boundary contour and cross-sectional curve, a three-dimensional surface model of the surface feature is constructed; Determine the positions of a predetermined number of probe points on the three-dimensional curved surface model; Based on the location of the detection point, a CNC machining path for the surface feature is generated.

10. The programming method for obscure parts according to claim 3, characterized in that, When the geometric feature includes an internal cavity feature, generating a CNC machining path corresponding to the identified geometric feature includes: Select the cross-sectional lines that characterize the contour of the inner cavity from the main view; Match the trajectory line associated with the cross-section line in the top view; Based on the cross-sectional line and the trajectory line, an initial internal cavity surface is generated through a sweeping operation; The initial inner cavity surface is filled with holes to generate a complete three-dimensional model of the inner cavity; Based on the complete three-dimensional model of the internal cavity, a CNC machining path for the internal cavity features is generated.