Mill G code Generator
12 Jul 2018 21:08 #114088
by Clive S
There is an option for this in PathPilot although I have never tried it.
Replied by Clive S on topic Mill G code Generator
My goal is to load a dxf directly into linuxcnc.
There is an option for this in PathPilot although I have never tried it.
Please Log in or Create an account to join the conversation.
13 Jul 2018 14:29 - 13 Jul 2018 14:29 #114129
by BigJohnT
I wrote a dxf to g code program using golang as the engine and python and glade as the interface. I don't see how it is possible to directly import a dxf file into LinuxCNC because you would need to define the start and end points, speed, feed etc somehow. The program I wrote is rather simple and only starts at the first entity and goes to the last one it finds so the dxf needs to be drawn as the cut path would go.
I'm not a part of the dxf2gcode project.
JT
Replied by BigJohnT on topic Mill G code Generator
Hi John,
A question.
My goal is to load a dxf directly into linuxcnc.
I see ezdxf can do some work. It can make a dxf file and make a line in the code example.import ezdxf dwg = ezdxf.new('R2010') # create a new DXF R2010 drawing, official DXF version name: 'AC1024' msp = dwg.modelspace() # add new entities to the model space msp.add_line((0, 0), (10, 0)) # add a LINE entity dwg.saveas('line.dxf')
In g-code the same line looks like :
G01 X0 Y0
G01 X10 Y0
In short, it looks like if you want to load a dxf file into linuxcnc, you must synchronize this to g-code due a text file. Also
inverting a g-code to dxf is possible this way.
Do you know anyone has done this before in python? I saw your name somewhere in the dxf2gcode project.
I wrote a dxf to g code program using golang as the engine and python and glade as the interface. I don't see how it is possible to directly import a dxf file into LinuxCNC because you would need to define the start and end points, speed, feed etc somehow. The program I wrote is rather simple and only starts at the first entity and goes to the last one it finds so the dxf needs to be drawn as the cut path would go.
I'm not a part of the dxf2gcode project.
JT
Last edit: 13 Jul 2018 14:29 by BigJohnT.
Please Log in or Create an account to join the conversation.
13 Jul 2018 20:49 #114148
by Grotius
Replied by Grotius on topic Mill G code Generator
Hi John,
I am interested in your application and will try is i think sunday. It sounds more promising then the dxf2gcode project to me.
Are you the same person as the JT tutorials?
I am interested in your application and will try is i think sunday. It sounds more promising then the dxf2gcode project to me.
Are you the same person as the JT tutorials?
Please Log in or Create an account to join the conversation.
13 Jul 2018 22:09 - 13 Jul 2018 22:11 #114153
by BigJohnT
Replied by BigJohnT on topic Mill G code Generator
Aye, I am JT and my web site is gnipsel.com and the name comes from a movie called No Time for Sargent's. I'm also JT-Shop on the IRC. IIRC you can open the dxf2gcode from Axis and send the result to Axis I don't know about other GUI's.
JT
JT
Last edit: 13 Jul 2018 22:11 by BigJohnT.
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19197
- Thank you received: 6434
13 Jul 2018 22:13 #114154
by tommylight
Yes he is ........or is he???? Yup, me thinks he is !
Replied by tommylight on topic Mill G code Generator
Are you the same person as the JT tutorials?
Yes he is ........or is he???? Yup, me thinks he is !
Please Log in or Create an account to join the conversation.
Time to create page: 0.185 seconds