Wow I'm confused. DXF is a CAD language. G code is machine or CAM language. Unless I'm missing something, I doubt you're on the right track with this entire idea.
Generally you use a dxf CAD drawing to help create a G code program using a CAD/CAM interface and post processor. All of them need some knowledgeable intermediary user input.