GreatLight CNC Machining Factory logo
CNC Machining
Rapid Prototyping
Materials
Industries
News
About GL

Get Instant Quote

File formats explained

What Files Do CNC Machines Use?

['A CNC machine has no idea what a STEP file is. It only reads G-code. Everything you send us — STEP, STL, IGES, DXF, DWG, a PDF drawing — has to be translated into toolpaths first.', 'This page explains what each format actually carries, where it breaks, and how to decide what to send. Written for design engineers and buyers preparing a first RFQ.']

STEP for 3D solidsDXF for flat profilesG-code runs the tool
what files do cnc machines use
Quick answer

Key takeaways

The machine reads one thingG-code. Every CAD format is an input to CAM software, not to the machine.
STEP is the safest defaultSend a STEP AP214 solid and a PDF drawing with tolerances; that pair covers most jobs.
STL loses design intentTriangle meshes have no true cylinders or flats. Fine for roughing, weak for tight fits.
DXF is 2D onlyPerfect for laser and waterjet flat parts, useless for a contoured 3D surface.
A drawing is not optionalDatums, threads and surface finish rarely survive the geometry alone.
The pipeline

From CAD file to spindle: why the format matters

Every machined part travels through three stages. Your CAD system produces a model. A CAM programmer converts that model into toolpaths. The machine controller executes those toolpaths as G-code. The question of what files do CNC machines use has two answers, because the controller only ever sees the third stage.

That gap is where most RFQ problems start. A file can look perfect on your screen and still arrive with gaps, reversed normals, or a single merged body where you intended three separate parts. The CAM programmer then has to rebuild geometry before any cutting starts.

Format choice sets how much rebuilding is needed. Boundary-representation formats such as STEP and IGES carry true analytic surfaces: a Ø20 mm bore stays a Ø20 mm cylinder. Mesh formats such as STL and OBJ approximate that same bore with flat triangles, and the approximation is baked in.

There is no universally correct format. There is a correct format for each part type, tolerance band, and downstream process. The sections below cover each one.

  • 1
    CAD modelYour design intent: solids, surfaces, features, assemblies.
  • 2
    CAM toolpathStock model, cutters, feeds, speeds, workholding, toolpath strategy.
  • 3
    G-codeThe only file the machine controller actually reads and runs.
3D solids

STEP: the default for machined metal parts

STEP (ISO 10303) is the format we ask for first on any 3D job. It stores true B-rep geometry: planes, cylinders, cones, torus surfaces and NURBS, plus assembly structure and material properties. When your model has a Ø12 H7 bore, the STEP file describes a Ø12 cylinder, not a stack of triangles.

That precision is what CAM software needs. Toolpath algorithms detect cylindrical faces and generate helical or circular interpolation directly. Mesh geometry forces the CAM system to fit arcs back onto triangles, and the fit introduces small deviations that show up in the finished part.

Send STEP AP214 or AP242. Both carry color and assembly data, which helps when a part is one of forty in a fixture assembly. AP203 works too, but drops some metadata.

One caution: STEP files do not carry tolerances, datums, thread callouts or surface finish. Those live on the 2D drawing. Send both.

  • 1
    Best forMilled and turned 3D parts, complex pockets, blended surfaces, assemblies.
  • 2
    Watch forExport the part, not the whole top-level assembly, unless you want every component quoted.
  • 3
    Pair withA PDF drawing carrying tolerances, threads and finish callouts.
Meshes

STL, OBJ and 3MF: when a triangle mesh is enough

STL stores a surface as a cloud of triangles. Each triangle is defined by three vertices and a normal vector. There is no unit, no material, no color, and no way to say which triangles form a face you care about. It is the lowest-common-denominator format.

That is fine when the geometry is organic or the tolerance is loose. A bracket with a ±0.5 mm profile tolerance on a curved outer edge will machine perfectly well from a good STL. Meshes are also the native output of most 3D scanners and lattice design tools.

It falls apart when precision matters. A Ø25 mm bore tessellated at 0.05 mm chord deviation is still a polygon, and a reamer will not produce a round hole from a polygon. Same for flatness on a sealing face. If the feature has a tolerance tighter than roughly ±0.05 mm, do not send a mesh.

OBJ and 3MF improve on STL by adding units, color and multiple objects. 3MF is the better choice for additive work. For subtractive machining, the geometry underneath is still a mesh, so the same limitation applies.

  • 1
    Chord deviationSet it to 0.01–0.02 mm before export, or the facets become visible.
  • 2
    Watertight checkNon-manifold edges stall CAM software. Run a repair pass first.
  • 3
    Units missingSTL has no unit field. State millimetres in the RFQ email.
Legacy and 2D

IGES, DXF and DWG: older translators and flat profiles

IGES (Initial Graphics Exchange Specification) predates STEP and still appears in aerospace and tooling supply chains. It handles 2D and 3D wireframe, surfaces and solids, but it is a looser standard. Trimming boundaries can fail and surfaces can arrive as thousands of small patches that need stitching.

Use IGES when your customer's legacy CAD system only exports IGES. Otherwise convert to STEP. If you must send IGES, send surfaces rather than wireframe, and check that the model came through as one closed body rather than a patchwork.

DXF is a 2D format. It carries lines, arcs, polylines, splines, layers and dimensions. It does not carry a 3D solid. For flat parts — sheet metal blanks, gaskets, plates, brackets cut from 1–20 mm stock — a clean DXF is the ideal input for laser, waterjet and plasma cutting, and it is also useful to a mill programmer for profiling a 2D contour.

DWG is AutoCAD's native format and holds 2D and 3D data. Many shops can open it directly. If you are unsure which one the shop prefers, send both DXF and DWG, plus a PDF for reference.

  • 1
    DXF layersDelete construction and dimension layers before export. Keep one layer for the cut profile.
  • 2
    Closed contoursAny open polyline becomes an unclosed cut path. Close every profile.
  • 3
    IGES surfacesAsk for a single closed shell; loose patches add programming time.
The machine side

G-code and M-code: what the controller actually runs

G-code is the instruction set the machine executes. G00 moves at rapid feed. G01 cuts in a straight line at a programmed feed rate. G02 and G03 cut arcs. G54 selects a work offset. M03 and M05 start and stop the spindle. M08 turns coolant on.

The CAM programmer generates this from your STEP file plus a stock model and a tool library. Feeds and speeds come from material, cutter geometry and rigidity. A 6 mm three-flute carbide end mill in 6061-T6 might run at 12,000 rpm and 2,500 mm/min, while the same cutter in 17-4PH stainless drops to a fraction of that.

You rarely need to send G-code. It is machine-specific: a program written for one controller and fixture setup usually will not run on another. The exceptions are legacy parts with no surviving CAD model, where a proven program is the only remaining record.

What you can send that helps: a CAM file, a setup sheet, or the original toolpath project. It tells us how the part was previously held and cut, which shortens programming time on a repeat order.

  • 1
    G-code is disposableIt is regenerated whenever stock, tooling or fixture changes.
  • 2
    Send the model, not the programUnless the CAD model is lost and the program is all you have.
  • 3
    Setup sheets are goldThey document workholding on parts that are hard to fixture.
Documentation

Drawings, PDFs and native CAD: the supporting layer

Geometry answers where to cut. The drawing answers how close, how smooth and how to inspect. A PDF is the practical way to send it because it opens everywhere and cannot be silently edited. Native CAD files (SLDPRT, IPT, CATPart, X_T) are usable if the shop runs the same software, but version mismatches are common and files can carry reference geometry you did not intend to release.

A useful drawing carries a title block with part number and revision, a datum scheme, tolerance callouts, thread specifications, surface finish by area, and a material and finish note. It also marks critical dimensions. Everything else can run to the general tolerance block.

If the part has no drawing, say so and give us the tolerance band in the email. For most non-critical brackets and covers, a general tolerance of ±0.1 mm on machined dimensions and ±0.2 mm on non-mating features is enough. GreatLight holds ±0.005 mm where a drawing requires it, and inspects 100% of parts before shipment.

One more file worth mentioning: the neutral Parasolid X_T. It transfers solids cleanly between CAD systems and is a good fallback when a STEP export is failing.

  • 1
    PDF over native CADNo version conflicts, no accidental release of internal geometry.
  • 2
    Call out finishRa 0.8–1.6 μm covers most mating faces; Ra 0.2–0.8 μm for seals and bearings.
  • 3
    Mark critical dimsInspection time follows the number of toleranced features, not the part size.
Export checklist

How to prepare a file package that quotes in 12 hours

Run through this before you attach anything to the RFQ.

  • 1
    Save as STEP AP214 or AP242Export the individual part, not the top-level assembly, unless every component is in scope.
  • 2
    Check for gaps and reversed normalsRun a geometry check in your CAD system. A watertight solid avoids a rebuild round-trip.
  • 3
    Export the DXF for flat partsKeep one closed cut-profile layer. Delete construction, dimension and hatch layers.
  • 4
    Generate the PDF drawingTitle block, revision, datums, tolerances, thread callouts, finish by area, material note.
  • 5
    State quantity, material and finishFor example: 25 pieces, 6061-T6, clear anodize, Ra 1.6 μm on mating faces.
  • 6
    Note the tolerance band if there is no drawingWrite it in the email so the programmer does not have to guess.
Format matrix

Which CNC file format to send for which part

Pick the row that matches your part type. When two formats apply, send the stronger one plus the drawing.

FormatGeometry carriedSend it whenMain limitation
STEP (.step, .stp)3D B-rep solids and surfacesAny 3D milled or turned partNo tolerances or finish data
STL (.stl)Triangle mesh, no unitsOrganic shapes, loose tolerancesNo true arcs or flats
IGES (.igs, .iges)2D/3D wireframe and surfacesLegacy CAD that cannot export STEPSurface stitching failures
DXF (.dxf)2D lines, arcs, polylinesFlat parts, laser and waterjetNo 3D solid at all
DWG (.dwg)2D and 3D AutoCAD dataShop runs AutoCAD nativelyVersion compatibility issues
PDF drawingDimensions, tolerances, notesAlways, alongside the modelNot machine-readable geometry
G-code (.nc, .tap)Toolpaths and machine movesRepeat order, CAD model lostTied to one machine and fixture
Parasolid (.x_t)3D B-rep solidsSTEP export keeps failingNeeds a compatible CAD seat

What to send, in one line

Send STEP for any 3D part, DXF for flat parts, and always attach a PDF drawing. Keep the STL for reference only, and never send G-code unless the original model is gone.

FAQs

Frequently asked questions

What is the difference between STL and STEP files?

STEP stores true boundary-representation geometry: cylinders, planes and NURBS surfaces with real dimensions. A Ø20 mm bore is mathematically a Ø20 mm cylinder.

STL stores the same shape as a mesh of flat triangles. The bore becomes a polygon that only approximates a circle. For tolerances tighter than about ±0.05 mm, that difference is visible in the finished part.

Can you machine from a DXF file alone?

Yes, if the part is flat and cut from sheet or plate. DXF carries the 2D profile, and we generate the cut path plus any holes and slots directly from it.

No, if the part has 3D features such as pockets, bosses or contoured surfaces. A DXF has no Z depth, so a mill programmer cannot build a solid from it.

What are CAM files used for?

CAM files hold the manufacturing plan between the CAD model and the G-code: stock definition, workholding, tool list, step-over, step-down, feeds and speeds.

They are useful on repeat orders because they show how the part was previously held and cut. A solid machined in two setups can become one with a better fixture, and the CAM file records that decision.

Which format is best for detailed engineering drawings?

PDF. It renders identically on every machine, cannot be edited without leaving a trace, and is easy to control for revision.

Native drawing files work if the shop uses the same CAD package, but version mismatches cost time. Send the native file only when the PDF is not enough.

Do you accept IGES files?

Yes. IGES is still common in aerospace and tooling supply chains, and our programmers handle it regularly.

If you have a choice, export STEP instead. IGES export sometimes splits a single solid into many trimmed surfaces, which adds programming time before cutting can start.

Can I send a native SolidWorks or Inventor file?

Yes. We accept SLDPRT, IPT, X_T and similar native formats, and a neutral STEP is always welcome alongside them.

If you are unsure about version compatibility, a STEP plus PDF pair removes the risk entirely.

Send your files and get a DFM review in 12 hours

Upload STEP, STL, IGES, DXF, DWG or a PDF drawing. Our engineers check geometry, tolerances and manufacturability, then return a quotation with free DFM feedback. Production can start within 24 hours, and uploads stay confidential under NDA on request.

12-hour quoteFree DFM analysis±0.005 mm tolerance100% inspection

Follow our work

More machining notes from the shop floor

We publish setup notes, tooling trials and inspection data from the factory floor.

FacebookTikTokYouTubeLinkedInInstagramThreadsPinterest

Trusted by engineers and manufacturers worldwide

Tesla Ford Motor Company BYD Auto Denso Magna International Boeing Airbus Medtronic KUKA FANUC