Mill G code Generator

More
8 years 3 months ago #113979 by BigJohnT
Replied by BigJohnT on topic Mill G code Generator
Link is updated, runs as stand alone or with Axis, not sure how Gmocappy works.

JT

Please Log in or Create an account to join the conversation.

More
8 years 3 months ago #114087 by Grotius
Replied by Grotius 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.
Code:
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.

Please Log in or Create an account to join the conversation.

More
8 years 3 months ago #114088 by Clive S
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.

More
8 years 3 months ago - 8 years 3 months ago #114129 by BigJohnT
Replied by BigJohnT on topic Mill G code Generator

Grotius wrote: 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.

Code:
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: 8 years 3 months ago by BigJohnT.

Please Log in or Create an account to join the conversation.

More
8 years 3 months ago #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?

Please Log in or Create an account to join the conversation.

More
8 years 3 months ago - 8 years 3 months ago #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
Last edit: 8 years 3 months ago by BigJohnT.
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

Time to create page: 0.212 seconds
Powered by Kunena Forum