How to convert a dfx or dwg file to g code

Is there software to convert a dfx or dwg file to g code.

Accepted answer

nothing has changed try to convert your iges file to dxf then go to

it can help you

1 Other answer

G code is not a conversion of a file format.
G-code is a file that tells a machine what path to follow, with a specified tool diameter, when to lift the tool, how fast to move the tool, when to turn on/off the spindle etc...
Its a flow of commands that are sent to a machine,, not a CAD format.
So G code for the same part, on two different CNC machines will be different.