Creating g-Code?

How is DraftSight Professional (3D) used to create g-Code?