Featured image of G-Code Converter – What Can Be Converted to and from G-Code

G-Code Converter – What Can Be Converted to and from G-Code

Aug 3, 2019 by Benjamin Goldschmidt

Ever wondered what file types can be converted to and from G-code? Learn about and see examples of what's possible with a G-code converter!

Advertisement

Using a G-Code Converter What Code?

Image of: What Code?
Cross section of some 3D printed cubes. (Source: All3DP)

G-code is a programming language that tells a 3D printer how to print an object. The individual commands perform different functions. For example, “G28” tells the printer to move the print head to home. Another code, “G0”, tells the printer to move as rapidly as possible to the next location.

The RepRap wiki lists 13 different flavors of G-code used with various 3D printers. From this, we can see that it is common for 3D printers to use G-code even if they perform similar functions. With so many flavors of G-code out there, it is useful to know what file formats can be converted to and from G-code.

Using a G-Code Converter Converting to G-Code: Direct Method

Slic3r, like many other slicers, has the ability to convert several file types to G-code directly.
Slic3r, like many other slicers, has the ability to convert several file types to G-code directly. Source: slic3r.org

Given that G-code is the universal language for 3D printing, it’s possible to convert most 2D and 3D files into G-code. To aid our discussion, we’ll break this up into direct conversions (one step) vs indirect (many step) conversions.

The following file formats can be converted directly into G-code using the popular slicers Cura, Slic3r, or Simplify3D. That said, other file types may exist that can be directly converted in other slicers.

  • SVG files (*.svg) (Cura)
  • 3MF files (*.3mf) (Cura, Simplify3D)
  • OBJ files (*.obj) (Cura, Slic3r, Simplify3D)
  • STL files (*.stl) (Cura, Slic3r, Simplify3D)
  • AMF files (*.amf) (Slic3r)

Using a G-Code Converter Converting to G-Code: Indirect Method

OpenJSCAD is a powerful online software for converting various file types to STL.
OpenJSCAD is a powerful online software for converting various file types to STL. Source: openjscad.org

Indirect conversions involve first converting a file to an STL. Next, the STL file can be converted into G-code using a slicer. Using this method, a wide variety of files can be converted to G-code. To illustrate, the following is a list of file types supported by Fusion 360 alone:

  • Autodesk Fusion 360 Archive files (*.f3d)
  • Autodesk Inventor files (*.ipt, *.iam)
  • CATIA V5 files (*.CATProduct, *.CATPart)
  • DXF files (*.dxf)
  • DWG files (*.dwg)
  • FBX files (*.fbx)
  • IGES files (*.ige, *.iges, *.igs)
  • OBJ files (*.obj)
  • Pro/ENGINEER and Creo Parametric files (*.asm, *.prt)
  • Pro/ENGINEER Neutral files(*.neu)
  • Rhino files (*.3dm)
  • SAT/SMT files (*.sab, *.sat, *.smb, *.smt)
  • SolidWorks files (*.prt, *.asm, *.sldprt, *.sldasm)
  • STEP files (*.ste, *.step, *.stp)
  • SketchUp files (*.skp)

Want to convert your files for free? Well, there are ways to use Fusion 360 for free, but if you’re looking for a totally free tool, there are many free CAD programs out there. You just have to check that they support conversion to STL.

Advertisement

Using a G-Code Converter Converting from G-Code

Voxelizer is capable of converting G-code back into an STL format with ease.
Voxelizer is capable of converting G-code back into an STL format with ease. Source: support.zmorph3d.com

Converting from G-code to another format is typically difficult to do compared to going the other way round. This is because G-code often has added materials from the slicing software, such as supports and brims, which are unrelated to the actual model. These objects show up as part of the 3D model when converted from G-code to another format. Nevertheless, two methods exist to convert G-code back to STL (and then to another format).

These methods include MakePrintable’s G-code reverser service as well as the Voxelizer software. More information can be found about this process in our article about converting from g-code to STL. With this information, you should be able to convert nearly every type of file to G-code and back again.

Feature image source: All3DP

License: The text of "G-Code Converter – What Can Be Converted to and from G-Code" by All3DP is licensed under a Creative Commons Attribution 4.0 International License.

Subscribe to updates from All3DP

You are subscribed to updates from All3DP

You can’t subscribe to updates from All3DP. Learn more… Subscribe

You can’t subscribe to updates from All3DP. Learn more…

Advertisement

Recommended for you

Topics

Follow us


Advertisement