How to generate suitable toolpath for the design reading from dxf?


I am reading from *.dxf and I want to put the lines and arcs in order based on their distance so that toolpath can follow that sequence for the optimized path (less travel). How can I look for the adjacent entity from the current position?


Looking forward to your kind responses.

Asked on July 3, 2020 in CNC.

Please tell us what CNC software you are using

on July 3, 2020.

The machine and software come from a Chinese manufacturer YUNCO Precision . I am writing code in their given format, they call it YC format.

Layer, 0, 1    /*Layer,Normal,tool*/

0.1689,4.6694,1,0,0                 /*X1,Y1,angle,start,tool*/

0.0189,4.6694,0,1,0               /*X2,Y2,0,end,tool*/

on July 14, 2020.


Sounds like a very niche use-case!


I would suggest speaking with the ‘Yunco’ manufacturers, or maybe they have their own support community?


If you’re interested to learn more about the DXF file format, we published this on Scan2CAD a while ago: The DXF File Specification

on July 21, 2020.
Add Comment
1 Answer(s)

Luke is right in asking for the software, different CNC software have different needs.

Additionally, .dxf might not be the best format to use for CNC (again, depending on the software). You might want to stick with G-Code formats (.cnc, .nc, .tap).

Answered on July 21, 2020.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.