Processing method and device for importing DXF file in plate processing process, processor and computer readable storage medium thereof
By importing DXF files, the processing surfaces and reference points of the graphics are determined, and layer colors and processing attributes are set. This solves the problem of the inability to quickly process complex graphics in existing technologies, and enables efficient and accurate board processing.
Patent Information
- Application Number
- CN202510980836.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-16
- Publication Date
- 2025-10-31
AI Technical Summary
Existing cutting equipment cannot quickly process complex shapes such as handles and straighteners, resulting in the inability to meet customers' on-site customization needs.
By importing DXF files, the machining surfaces and reference points of the graphic are determined, layer colors and machining attributes are set, and appropriate tools are selected for machining.
It improves processing flexibility and adaptability, enhances the efficiency of on-site customization services, ensures processing accuracy and quality, and improves the safety of the processing process.
Smart Images

Figure CN120874155A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of panel cutting equipment processing, and more particularly to the field of CNC door and wall cabinet processing. Specifically, it relates to a method, apparatus, processor, and computer-readable storage medium for importing DXF files for processing during the panel processing of CNC door and wall cabinet models. Background Technology
[0002] Due to limitations in the processing capabilities of cutting equipment, complex shapes, such as handles and straighteners, cannot be processed. Therefore, customers typically use equipment like six-sided drills, door and wall cabinet cutters, and PTP (Potentially Transformed Metal) machines for these tasks. However, given the diverse shapes of hardware parts, conventional wizard-based methods are no longer sufficient to quickly meet customers' on-site customization needs. Therefore, a new processing method (importing DXF files) is required to enable the processing of target shapes when wizard-based methods cannot meet the customer's requirements. Summary of the Invention
[0003] The purpose of this invention is to overcome the shortcomings of the prior art and provide a method, apparatus, processor and computer-readable storage medium for importing DXF files for processing CNC door and wall cabinet models during panel processing, which is simple to operate, has small error and a wide range of applications.
[0004] To achieve the above objectives, the present invention provides a method, apparatus, processor, and computer-readable storage medium for importing DXF files for processing sheet metal parts during CNC door and wall cabinet machining, as follows:
[0005] This method for importing DXF files for processing sheet metal parts during CNC door and wall cabinet machining is characterized by the following steps:
[0006] (1) Determine the graphic processing surface of the DXF graphic;
[0007] (2) Determine the position on the plate by using the graphic reference point, and determine the position of the machining element by adjusting the coordinates of the reference point;
[0008] (3) Create a new layer. Different colors need to be set for different layers. Set the processing attributes of the layers according to the colors.
[0009] Preferably, step (1) specifically comprises:
[0010] By drawing the quadrant to which the graphic belongs, we can determine the processing surface of the graphic and whether the processing element is a front element or a side element.
[0011] Preferably, step (2) specifically includes the following steps:
[0012] (2.1) Determine the reference position of the regular shape;
[0013] (2.2) Determine the reference position of the irregular shape.
[0014] Preferably, step (2.2) specifically includes the following steps:
[0015] (2.2.1) Manually add a reference point to the graphic, or use the default first point of the graphic as the reference point;
[0016] (2.2.2) Determine the coordinates of the figure.
[0017] Preferably, step (2.2.2) specifically includes the following steps:
[0018] If it is the Z-axis coordinate of a side element, then the Y-axis coordinate of the first quadrant is converted into the position of the upper surface of the board relative to the graphic; if it is the Y-axis coordinate of a front element, then the Y-axis coordinate of the fourth quadrant, which is the Y-axis coordinate when the board was imported, is converted.
[0019] Preferably, step (3) specifically includes the following steps:
[0020] (3.1) Determine the machining method for the graphic, and determine whether to mill the bottom internally or machine along the centerline;
[0021] (3.2) Determine the depth of graphic processing;
[0022] (3.3) Determine the cutting tools for machining the graphic.
[0023] Preferably, step (3.3) specifically includes the following steps:
[0024] If it is a front element, select the front machining tool; if it is a side element, select the side machining tool.
[0025] This device, used for importing DXF files for processing during the sheet metal fabrication process of CNC door and wall cabinet machines, is characterized by comprising:
[0026] A processor is configured to execute computer-executable instructions;
[0027] The memory stores one or more computer-executable instructions, which, when executed by the processor, implement the various steps of the method described above for importing DXF files for processing sheet metal parts during the CNC door and wall cabinet model.
[0028] The processor used to implement the import and processing of DXF files during the panel processing of CNC door and wall cabinet models is characterized in that the processor is configured to execute computer-executable instructions, and when the computer-executable instructions are executed by the processor, the various steps of the above-mentioned method for importing and processing DXF files during the panel processing of CNC door and wall cabinet models are implemented.
[0029] The main feature of this computer-readable storage medium is that it stores a computer program that can be executed by a processor to implement the various steps of the above-described method for importing DXF files for processing sheet metal parts during the CNC door and wall cabinet model.
[0030] This invention relates to a method, apparatus, processor, and computer-readable storage medium for importing DXF files during the machining of CNC door and wall cabinet components. This improves machining flexibility and adaptability, and enhances the efficiency of on-site customization services. By accurately determining the machining surface and position of the graphic, and precisely setting the reference points, this technical solution optimizes the machining positioning of the graphic, ensuring machining accuracy and quality, enhancing the operability of graphic machining, and improving the safety of the machining process. Attached Figure Description
[0031] Figure 1 This is a flowchart illustrating the method of importing DXF files for processing sheet metal parts during the CNC door and wall cabinet model according to the present invention.
[0032] Figure 2 This is a schematic diagram illustrating the method of importing DXF files for processing sheet metal parts in the CNC door and wall cabinet model according to the present invention.
[0033] Figure 3 This is a schematic diagram of the Z-axis coordinates of the side elements in the method for importing DXF files for processing sheet metal parts in the CNC door and wall cabinet model according to the present invention.
[0034] Figure 4 This is a schematic diagram of the operation interface of the method for importing DXF files for processing sheet metal parts in the CNC door and wall cabinet model according to the present invention. Detailed Implementation
[0035] To more clearly describe the technical content of the present invention, the following description is provided in conjunction with specific embodiments.
[0036] The present invention provides a method for importing DXF files for processing sheet metal parts during the CNC door and wall cabinet model, comprising the following steps:
[0037] (1) Determine the graphic processing surface of the DXF graphic;
[0038] (2) Determine the position on the plate by using the graphic reference point, and determine the position of the machining element by adjusting the coordinates of the reference point;
[0039] (3) Create a new layer. Different colors need to be set for different layers. Set the processing attributes of the layers according to the colors.
[0040] In a preferred embodiment of the present invention, step (1) specifically comprises:
[0041] By drawing the quadrant to which the graphic belongs, we can determine the processing surface of the graphic and whether the processing element is a front element or a side element.
[0042] In a preferred embodiment of the present invention, step (2) specifically includes the following steps:
[0043] (2.1) Determine the reference position of the regular shape;
[0044] (2.2) Determine the reference position of the irregular shape.
[0045] In a preferred embodiment of the present invention, step (2.2) specifically includes the following steps:
[0046] (2.2.1) Manually add a reference point to the graphic, or use the default first point of the graphic as the reference point;
[0047] (2.2.2) Determine the coordinates of the figure.
[0048] In a preferred embodiment of the present invention, step (2.2.2) specifically includes the following steps:
[0049] If it is the Z-axis coordinate of a side element, then the Y-axis coordinate of the first quadrant is converted into the position of the upper surface of the board relative to the graphic; if it is the Y-axis coordinate of a front element, then the Y-axis coordinate of the fourth quadrant, which is the Y-axis coordinate when the board was imported, is converted.
[0050] In a preferred embodiment of the present invention, step (3) specifically includes the following steps:
[0051] (3.1) Determine the machining method for the graphic, and determine whether to mill the bottom internally or machine along the centerline;
[0052] (3.2) Determine the depth of graphic processing;
[0053] (3.3) Determine the cutting tools for machining the graphic.
[0054] In a preferred embodiment of the present invention, step (3.3) specifically includes the following steps:
[0055] If it is a front element, select the front machining tool; if it is a side element, select the side machining tool.
[0056] The present invention relates to an apparatus for importing DXF files for processing during the sheet metal machining process of CNC door and wall cabinet models, wherein the apparatus includes:
[0057] A processor is configured to execute computer-executable instructions;
[0058] The memory stores one or more computer-executable instructions, which, when executed by the processor, implement the various steps of the method described above for importing DXF files for processing sheet metal parts during the CNC door and wall cabinet model.
[0059] The present invention relates to a processor for importing DXF files for processing during the panel machining process of CNC door and wall cabinet models. The processor is configured to execute computer-executable instructions. When the computer-executable instructions are executed by the processor, the various steps of the above-described method for importing DXF files for processing during the panel machining process of CNC door and wall cabinet models are implemented.
[0060] The computer-readable storage medium of the present invention stores a computer program that can be executed by a processor to implement the various steps of the method described above for importing DXF files for processing sheet metal parts in the CNC door and wall cabinet model.
[0061] In DXF, each independent, continuous element is considered a separate processing element (except for special layers, such as reference point layers). A separate processing element includes: closed shapes, and non-closed continuous (polylines or lines with connected ends) line segments. DXF graphics are only supported for import when the CNC board is in the fourth quadrant.
[0062] In a specific embodiment of the present invention, the specific operation steps are as follows:
[0063] 1. Determine the machining surface of the graphic
[0064] DXF graphics need to support drawing processing elements on both the side and front sides simultaneously, and the front side of the graphic is determined by drawing the quadrant to which the graphic belongs.
[0065] • Positive elements: Positive elements are drawn in the fourth quadrant.
[0066] • Side elements: Side elements are drawn in the first quadrant and require software conversion. Importing DXF files is currently limited to parts located in the fourth quadrant.
[0067] 2. Determine the position of the graphic
[0068] The position of a DXF graphic element on the board is determined by the position of a reference point on the board. The reference point coordinates describe the element's reference position, with the origin at the top-left corner of the element's bounding rectangle. The element's position is ultimately determined by adjusting the reference point coordinates.
[0069] • Adjust the X and Y coordinates of the front element
[0070] • Adjust the X and Z positions of the side elements.
[0071] • Each individual processing element can be positioned independently.
[0072] The graphic reference point is used to confirm the position of the graphic in the X direction after it is imported, and the Z coordinate of the side is determined based on the position of the Y.
[0073] 2.1 Reference Position of Regular Graphics
[0074] For regular shapes, such as circles and rectangles, the system defaults to using the center of the circle or rectangle as the reference position of the shape.
[0075] 2.2 Other Graphical Reference Points
[0076] 2.2.1 Specifications for drawing benchmark points
[0077] For single-line elements (non-closed elements) or more complex graphics, a reference point needs to be manually added to confirm its position. If not specified, the system defaults to the first point of the graphic as the reference point. The reference point graphic must meet the following requirements:
[0078] Layer number: 0
[0079] Layer name: 0
[0080] ●Layer color: Unrestricted (red is recommended)
[0081] ● Graphic shape: 5mm circle (other shapes are ignored by the system, not processed, and not displayed)
[0082] • Graphic location:
[0083] 1) Closed figure: The reference point figure must be within a closed region.
[0084] 2) Non-closed shapes: The center of the reference point shape needs to intersect with the processing element.
[0085] 2.2.2 Determination of Graphical Coordinates
[0086] The reference point for the drawing is used to confirm the position of the drawing in the X direction after importation. The positions in other directions are determined as follows:
[0087] Z-coordinate of side elements: When drawing, the Y-coordinate in the first quadrant is converted into the position of the upper surface of the board relative to the graphic, such as... Figure 3 The reference point is located 10mm down from the surface of the plate on the side of the plate, which can be understood as the graphic being flipped downwards along the Y=0 coordinate axis;
[0088] Y-coordinate of front element: When drawing, the Y-coordinate of the fourth quadrant is the same as the Y-coordinate when the part is imported.
[0089] 3. DXF layer
[0090] Different layers need to be added before drawing:
[0091] Layer 0 is used as the reference point layer; it is not recommended to draw processing elements there.
[0092] Machining elements require the creation of additional layers. The layer names are not required, but different layers need to be set with different colors. The system can set the machining attributes of the layer separately based on the default layer color, such as depth, tool number, bottom milling, or machining along the centerline.
[0093] 3.1 Determine the graphic processing method
[0094] To meet the specific processing needs of different customers, the processing methods are divided into:
[0095] Internal milling: Milling is performed on the interior of the closed graphic, with the DXF graphic representing the outermost edge of the processed element. Note that if the graphic element is tangent to the edge of the board, anti-explosion edge processing is required, referring to the handle design.
[0096] Machining along the centerline: The tool center moves along the path described by the element, and the tool is lifted after each element is completed.
[0097] 3.2 Determine the depth of graphic processing
[0098] 3.3 Determine the cutting tools for graphic machining
[0099] Front element: Optional front machining tool, such as a vertical milling cutter (including all types of vertical milling cutters) or a drill bit that matches the hole diameter.
[0100] Side elements: Optional side machining tools, such as horizontal milling cutters (including all types of vertical milling cutters) or drills that match the hole diameter.
[0101] according to Figure 1 The specific steps of the technical solution of the present invention are illustrated in the following embodiments:
[0102] (1) Select the DXF file;
[0103] (2) Determine the machining surface of the graphic;
[0104] (3) Determine the quadrant to which the graphic belongs. If it is in the first quadrant, then the processing element is determined to be a side element; if it is in the fourth quadrant, then the processing element is determined to be a front element.
[0105] (4) Set the reference point of the graphic. If it is automatic, select the first point of the graphic as the reference point; if it is manual, select layer 0.
[0106] (5) Select the machining method: machining along the centerline or machining by internal milling;
[0107] (6) Set the processing depth;
[0108] (7) Select the cutting tool. If it is a side element, use a horizontal milling cutter or a drill bit; if it is a front element, use a vertical milling cutter or a drill bit.
[0109] For the specific implementation scheme of this embodiment, please refer to the relevant descriptions in the above embodiments, which will not be repeated here.
[0110] It is understood that the same or similar parts in the above embodiments can be referred to each other, and the contents not described in detail in some embodiments can be referred to the same or similar contents in other embodiments.
[0111] It should be noted that in the description of this invention, the terms "first," "second," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance. Furthermore, in the description of this invention, unless otherwise stated, "a plurality of" means at least two.
[0112] Any process or method description in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing a particular logical function or process, and the scope of the preferred embodiments of the invention includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as will be understood by those skilled in the art to which embodiments of the invention pertain.
[0113] It should be understood that various parts of the present invention can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented in software or firmware stored in memory and executed by a suitable instruction execution device. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0114] Those skilled in the art will understand that all or part of the steps of the methods in the above embodiments can be implemented by a program instructing related hardware. The corresponding program can be stored in a computer-readable storage medium. When the program is executed, it includes one or a combination of the steps of the method embodiments.
[0115] Furthermore, the functional units in the various embodiments of the present invention can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.
[0116] The storage media mentioned above can be read-only memory, disk, or optical disk, etc.
[0117] In the description of this specification, references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0118] This invention relates to a method, apparatus, processor, and computer-readable storage medium for importing DXF files during the machining of CNC door and wall cabinet components. This improves machining flexibility and adaptability, and enhances the efficiency of on-site customization services. By accurately determining the machining surface and position of the graphic, and precisely setting the reference points, this technical solution optimizes the machining positioning of the graphic, ensuring machining accuracy and quality, enhancing the operability of graphic machining, and improving the safety of the machining process.
[0119] In this specification, the invention has been described with reference to specific embodiments thereof. However, it will be apparent that various modifications and variations can be made without departing from the spirit and scope of the invention. Therefore, the specification and drawings should be considered illustrative rather than restrictive.
Claims
1. A method for importing DXF files for processing sheet metal parts during CNC door and wall cabinet machining, characterized in that... The method includes the following steps: (1) Determine the graphic processing surface of the DXF graphic; (2) Determine the position on the plate by using the graphic reference point, and determine the position of the machining element by adjusting the coordinates of the reference point; (3) Create a new layer. Different colors need to be set for different layers. Set the processing attributes of the layers according to the colors.
2. The method for importing DXF files for processing sheet metal parts during CNC door and wall cabinet machining, as described in claim 1, is characterized in that... The specific steps (1) are as follows: By drawing the quadrant to which the graphic belongs, we can determine the processing surface of the graphic and whether the processing element is a front element or a side element.
3. The method for importing DXF files for processing sheet metal parts during CNC door and wall cabinet machining, as described in claim 1, is characterized in that... Step (2) specifically includes the following steps: (2.1) Determine the reference position of the regular shape; (2.2) Determine the reference position of the irregular shape.
4. The method for importing DXF files for processing sheet metal parts during CNC door and wall cabinet machining, as described in claim 3, is characterized in that... Step (2.2) specifically includes the following steps: (2.2.1) Manually add a reference point to the graphic, or use the default first point of the graphic as the reference point; (2.2.2) Determine the coordinates of the figure.
5. The method for importing DXF files for processing sheet metal parts during CNC door and wall cabinet machining, as described in claim 4, is characterized in that... Step (2.2.2) specifically includes the following steps: If it is the Z-axis coordinate of a side element, then the Y-axis coordinate of the first quadrant is converted into the position of the upper surface of the board relative to the graphic; if it is the Y-axis coordinate of a front element, then the Y-axis coordinate of the fourth quadrant, which is the Y-axis coordinate when the board was imported, is converted.
6. The method for importing DXF files for processing sheet metal parts during CNC door and wall cabinet machining, as described in claim 1, is characterized in that... Step (3) specifically includes the following steps: (3.1) Determine the machining method for the graphic, and determine whether to mill the bottom internally or machine along the centerline; (3.2) Determine the depth of graphic processing; (3.3) Determine the cutting tools for machining the graphic.
7. The method for importing DXF files for processing sheet metal parts during CNC door and wall cabinet machining, as described in claim 1, is characterized in that... Step (3.3) specifically includes the following steps: If it is a front element, select the front machining tool; if it is a side element, select the side machining tool.
8. A device for importing DXF files for processing during the sheet metal machining process of CNC door and wall cabinet models, characterized in that... The device includes: A processor is configured to execute computer-executable instructions; The memory stores one or more computer-executable instructions, which, when executed by the processor, implement the steps of the method for importing DXF files for processing sheet metal parts during the CNC door and wall cabinet model, as described in any one of claims 1 to 7.
9. A processor for importing and processing DXF files during the sheet metal processing of CNC door and wall cabinet models, characterized in that... The processor is configured to execute computer-executable instructions, which, when executed by the processor, implement each step of the method for importing DXF files for processing sheet metal parts during the CNC door and wall cabinet model as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, It stores a computer program that can be executed by a processor to implement the various steps of the method for importing DXF files for processing sheet metal parts during the CNC door and wall cabinet model as described in any one of claims 1 to 7.