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

Get Instant Quote

CAD to G-code

Can a CNC Machine Read CAD Files?

A CNC control cannot open a .dwg, .step or .sldprt directly. It reads G-code. This page covers what happens between your CAD file and the first cut: which formats carry usable geometry, where CAM fits in, and how to tell whether a file problem is your model, your translator or your post-processor. Written for design engineers and buyers who send files to a machine shop.

STEP / IGES / DXF±0.005 mm127 CNC machinesNDA on request
Can A CNC Machine Read Cad Files?
The core answer

The control reads G-code, not CAD geometry

The short answer is no. A machining center does not open your CAD file. It executes G-code, a line-by-line instruction set such as G01 X102.5 Y48.0 F250, M06 T2, M08. By the time those lines reach the control, the geometry has already been reduced to tool positions, feed rates, spindle speeds and tool changes.

CAD files hold a much richer data set: surfaces, sketches, parametric features, assembly mates, tolerances. None of that is machine-readable at the controller level. The controller has no concept of a fillet or a datum. It only knows where the tool tip should be, how fast to move, and which tool is in the spindle.

So when someone asks whether a CNC machine can read CAD files, the honest answer is: not the file, but the geometry inside it. That geometry has to be translated first, and the translator is CAM software plus a post-processor. Everything that goes wrong between design and chips usually goes wrong in that translation step.

Formats

Which file formats the shop floor actually uses

Native CAD formats such as .sldprt, .ipt, .catia or .f3d are vendor-specific. They can be useful when the shop runs the same CAD seat, but they carry history trees, configurations and sometimes external references that do not survive a transfer. Sending a native file to a shop running different software is a gamble.

Neutral formats are the safer handoff. STEP (.step, .stp) is the default choice for 3D solids and is what we prefer for machining quotes. IGES (.igs) still appears in older aerospace and tooling workflows, but it stores surfaces rather than solids and can leave gaps between faces. Parasolid (.x_t) and ACIS (.sat) are common in mold and die work.

For 2D profiles, DXF and DWG are the standard. A DXF is not what the machine reads, but it is often the cleanest way to transmit a cut outline, a bend line or a laser path. STL and 3MF carry mesh data only. They are fine for 3D printing and rough visualization, but a triangle mesh cannot hold an arc or a tolerance, so we avoid STL for machined parts.

PDF drawings still matter. A STEP file tells us the shape; a PDF with datums, GD&T and surface callouts tells us what actually has to be held. Send both when the part has tight features.

  • 1
    Best for machiningSTEP AP214 or AP242, solid bodies, millimeters or inches stated
  • 2
    AcceptableIGES, Parasolid, ACIS, native files when we share the CAD platform
  • 3
    2D cutting and sheetDXF or DWG with a clean closed profile on one layer
  • 4
    Avoid for machined partsSTL, OBJ, 3MF meshes and screenshots of a model
Reference

File formats and what the shop can do with them

How each format behaves when it reaches the CAM seat.

FormatCarriesUse it forWatch out for
STEP (.step, .stp)Solid B-rep, exact curves3D machined parts, assembliesUnit mismatch; missing tolerance callouts
IGES (.igs)Trimmed surfacesLegacy aerospace, toolingGaps between faces; open shells
DXF / DWG2D lines, arcs, polylinesSheet metal, laser, waterjetSplines; duplicate overlapping entities
Parasolid / ACISSolid kernel dataMold and die workVersion compatibility
STL / 3MFTriangle mesh only3D printing, visualizationNo arcs, no true radii, faceted walls
PDF drawingDatums, GD&T, notesInspection requirementsNot a geometry source on its own
Workflow

How CAM turns CAD into toolpaths

CAM software imports the neutral geometry, then you tell it what to remove and how. You pick the stock, the workholding, the tool list, the stepover, the depth of cut and the entry strategy. The software calculates a toolpath that respects the tool shank, the holder and the remaining material.

Then the post-processor converts those internal toolpaths into the dialect your control speaks. This is where machine-specific details enter: G54 versus G55 work offsets, M-codes for through-spindle coolant, high-speed look-ahead settings, rotary axis direction, and whether the machine uses G28 or G30 for return.

A post is not a generic export filter. A 5-axis post for a trunnion machine differs from a post for a mill-turn center even when both cut the same part. If a shop changes machines and forgets to regenerate with the correct post, the program can run, look plausible, and still scrap the part on the first pass.

This is also why we ask for the model rather than a program. If you send G-code, we cannot adjust stock allowance, re-sequence operations or move a datum without reverse-engineering the whole setup.

Troubleshooting

Why a file gets rejected or fails to import

Most import failures are geometric, not software bugs. A common one is a surface model exported as IGES where two faces meet with a gap of a few microns. Visually it looks closed. CAM sees an open shell and refuses to build a solid toolpath.

Unit errors are the next biggest source. A part modeled in inches and imported as millimeters comes in 25.4 times too large. It imports fine. The setup fails at the vise.

Splines and imported curves cause trouble on 2D work. A DXF profile built from thousands of tiny spline segments is technically a closed contour, but the CAM lead-in and lead-out cannot attach cleanly, and the resulting toolpath leaves witness marks at the entry point. Converting those splines to arcs and lines usually fixes it.

Then there is the post. A program that runs perfectly in simulation can alarm out on the machine because the control does not recognize a canned cycle or a coolant M-code. When that happens, the geometry was never the problem.

  • 1
    Open shellsStitch or heal the surfaces, then re-export as a solid
  • 2
    Wrong unitsState mm or inch in the export dialog, not just in the drawing title block
  • 3
    Spline-heavy DXFConvert splines to arcs and lines before sending
  • 4
    Post mismatchRegenerate the program with the post for that specific machine
Before you send

What to check before the file leaves your desk

Export a solid, not a surface set. A watertight STEP body gives CAM everything it needs. If your CAD system warns about a non-manifold body during export, fix it there rather than hoping the shop will patch it.

Put units in the file, not only in the email. Then confirm orientation: which face is the primary datum, which axis is Z. A part that arrives rotated 90° is not a disaster, but it adds setup discussion that a drawing note would have avoided.

State the critical tolerances. Machining to ±0.005 mm across a whole part is rarely necessary and rarely cheap. If three bores need that tolerance and the rest is general, say so. We check every part before shipment, and inspection reports are available on request.

Finally, mention the material and finish. Aluminum 6061-T6, 7075, 17-4PH stainless, Ti-6Al-4V and Inconel 718 all behave differently at the cutter. PEEK and carbon fibre bring their own tool wear and dust considerations. The CAM strategy changes with the material, so the earlier we know, the better the first program.

FAQs

Common questions

Can a CNC machine read a .dwg or .sldprt file directly?

No. Those are design formats, and the control expects G-code. A .dwg or .sldprt must pass through CAM software, which builds toolpaths and a post-processor that writes the specific G-code dialect for that machine.

Some controls can display a DXF as a background graphic for setup reference. That is a visual aid, not a machining instruction.

Is DXF the format the machine actually reads?

DXF is not machine code. It is a 2D interchange format for profiles, and it is widely used because almost every CAD and CAM package can open it.

On a plasma, laser or waterjet table, the controller software may import a DXF and generate the cut path on the fly. On a milling machine, the DXF normally goes into CAM first.

What is the best format to send for a CNC quote?

A STEP file with a solid body, plus a PDF drawing when the part has GD&T, datums or tight tolerances. State the units and the material.

If the part is a flat profile, a clean DXF is fine. If it is a 3D machined part, skip the STL.

Why does my file import but the toolpath looks wrong?

Usually the geometry came in as surfaces rather than a solid, or the units are off, or the profile has self-intersecting splines. The import succeeded because the data loaded, not because it was clean.

Send the CAD file along with the drawing and describe the critical features. We run a DFM check and flag geometry problems before cutting.

Do you need the CAD file or can you work from a drawing?

For simple turned parts and 2.5D profiles, a dimensioned drawing is often enough. For contoured surfaces, pockets with draft, or 5-axis work, we need the model.

A STEP file plus a drawing is the combination that produces the fewest questions and the fastest quote.

Can you machine from a mesh or a scan?

It is possible for some shapes, but mesh data has no true arcs or radii, so tolerances on round features suffer. Scans usually need to be converted to a solid or re-modeled before machining.

If a part only exists as a scan, tell us early. We will say whether re-modeling is required.

Send us a STEP file and get a DFM review

Upload your CAD file and drawing. We return a quotation with free DFM analysis within 12 hours, and production can start within 24 hours.

12-hour quoteFree DFM analysis100% inspectionNDA on request

Trusted by engineers and manufacturers worldwide

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