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

Get Instant Quote

AutoCAD to CNC workflow

How to Use AutoCAD With a CNC Machine

AutoCAD gives you accurate 2D geometry, but it does not machine anything by itself. This guide walks through the whole chain of using AutoCAD with a CNC machine: drawing setup, DXF and DWG export, CAM toolpaths, workholding, and the checks that keep a part inside ±0.005 mm. Written for engineers and CAM programmers who need parts cut in metal, not just drawn on screen.

DXF and DWG export2D vs 3D limits±0.005 mm toleranceDFM in 12 hours
how to use autocad with cnc machine
Quick answer

Key takeaways

AutoCAD is the front halfIt produces geometry. CAM software turns that geometry into G-code.
Layer discipline saves hoursCut profiles, holes, and engraving on separate layers so CAM imports cleanly.
2D is enough for 3-axis workPlates, brackets, and profiles cut fine from DXF outlines with Z depths set in CAM.
Model the 3D features, not the screenIf the part has pockets, fillets, or undercuts, build real solids or STEP files.
Always send a STEP or DXF, not a PDFPDFs carry no usable geometry and get quoted as a guess.
Drawing setup

Set Up the AutoCAD Drawing Before You Touch the CNC

Most scrap starts in the drawing, not at the spindle. Open AutoCAD with units set to millimeters or inches, never unitless. Type UNITS and pick decimal millimeters with 0.000 precision if the shop works in metric. Mixing a 25.4 factor into a 4,000 mm plate is the fastest way to cut a part in half.

Draw at 1:1 in model space. Never scale the geometry to fit a title block. If the bracket is 180 mm long, it is 180 drawing units long. Viewport scale belongs in layouts only, and CAM software ignores layouts entirely.

Set object snaps to endpoint, midpoint, center, and intersection. Turn off nearest. Nearest snapping is the main reason a hole lands 0.3 mm off center and the mating pin will not press in.

Use layers as a machining map, not just for color. One layer for the outside profile, one for through holes, one for tapped holes, one for engraving or bend lines. Name them in plain English so the CAM programmer can assign a tool to each layer without guessing.

Geometry choices

2D Drafting vs 3D Solids for CNC Work

Two-dimensional outlines cover a large share of CNC work: plates, flanges, gaskets, brackets, and laser or waterjet blanks. Draw the closed contour with polylines, keep every corner exactly where the print says, and let CAM assign depth. A closed polyline with no gaps or self-intersections imports in seconds.

Parts with pockets, counterbores, chamfers, ribs, or blended fillets need real 3D geometry. AutoCAD can build solids with EXTRUDE, SUBTRACT, and FILLETEDGE, and those solids export as STEP for CAM and for the machine shop's own setup. A flat drawing of a pocket tells the machinist almost nothing about depth or corner radius.

Keep the model clean. Remove stray points, zero-length lines, and duplicate geometry. Explode blocks only when they block CAM selection, and then purge the drawing. A file with 4,000 entities where 60 belong slows every downstream step.

For turned parts, model the profile as a revolved solid or draw a clean half-section. CAM turning software reads the profile and the centerline, and an open or doubled centerline produces a broken toolpath.

If the geometry came from a customer's STEP file, do not remodel it in AutoCAD unless the shop asks. Import it, check the critical dimensions against the print, and note any mismatch in writing.

Tolerances

Tolerances and Fit Values That Survive Machining

AutoCAD lets you type any number. The machine can only hold a range. GreatLight holds ±0.005 mm (±0.0002 in) on critical features, and that number should shape what you draw. Do not put ±0.01 mm on a cosmetic edge, and do not leave a press-fit bore at nominal size with no tolerance at all.

For a typical steel dowel pin, a light press fit runs about 0.010 to 0.020 mm smaller than the pin diameter. For aluminum, add roughly 0.005 mm because the softer material moves more under the same cut. These are starting values, not universal rules, and the pin supplier's data sheet wins.

Surface finish interacts with tolerance. A bore held at Ra 0.8–1.6 μm behaves differently from one at Ra 1.6–3.2 μm, and tight fits usually need the finer range. Put the finish callout on the drawing so the CAM programmer picks the right stepover and feed.

Call out datums that a machinist can actually touch. A datum on a curved surface or on a theoretical intersection cannot be indicated. Pick a flat face or a bore, letter it A, and reference the rest from there.

Export

Export DXF and DWG Files the CAM Software Will Accept

The export step decides whether the next person spends ten minutes or two hours. Run OVERKILL to remove overlapping lines, then AUDIT to catch drawing errors. Use PURGE to strip unused layers and blocks. Save a clean master copy before any export.

For 2D work, export DXF in a version the shop can read. R12 or 2000 DXF is the safest common denominator for lasers, waterjets, and many CAM packages. Use 2013 or 2018 DXF when the CAM software is current and you need splines preserved.

For 3D work, use STEP AP214 as the default. STL is only for 3D printing and produces faceted surfaces that no machinist wants. IGES still appears in aerospace supply chains, but STEP is the better first choice.

Name the file so it can be found: part-number_revision_material.dxf. Send the drawing PDF next to the geometry file, never instead of it. A PDF proves intent; it does not cut metal.

CAM and setup

From DXF to G-Code: What the CAM Programmer Does

CAM software imports the DXF or STEP, then assigns tools, depths, and strategies. The programmer sets stock size, work offset, and clearance plane. Nothing on this list lives in AutoCAD, which is why the drawing has to be unambiguous.

Toolpath choices follow the geometry. A 6 mm flat end mill cannot cut an internal corner tighter than 3 mm radius, so the drawing should not call for a 1 mm inside corner on a pocket floor. Use a smaller tool or change the corner radius on the print.

Depth of cut depends on material and tool. In 6061 aluminum, a 10 mm carbide end mill commonly runs 1.5 to 3 mm axial depth at 3,000 to 8,000 rpm. In 316 stainless, expect roughly a third of that depth and lower surface speed.

Simulation catches the rest. Run the toolpath in the CAM simulator, check for gouges and rapid collisions, then post to the controller format. Fanuc, Siemens, and Heidenhain each want slightly different output, and the post processor handles it.

Shop floor

Workholding and First-Article Checks on the Machine

A perfect DXF still fails on a badly held part. For plate work, clamp on the outside margin and leave tabs or a sacrificial backing so the part does not move when the profile is cut through. Thin walls under 1.5 mm chatter unless you support them.

Set the work offset from a known datum face, not from a random corner. Touch off the tool, record the offset, and cut a test feature first. A 10 mm test pocket tells you whether the setup is square before you commit to the full profile.

Measure the first article while it is still on the machine. Check the critical bore, the overall length, and one hole-to-hole distance. If one is out, adjust the offset and re-cut rather than finishing the batch and sorting later.

Every GreatLight order gets a raw material check, in-process monitoring, and a final inspection before shipment. Reports are available on request, which matters when the part goes into an assembly line.

Step by step

How to Use AutoCAD With a CNC Machine: 7 Steps

Follow these in order. Each step lists what to do and the mistake to avoid.

  • 1
    1. Set units and precisionType UNITS, choose decimal millimeters, set precision to 0.000. Draw at 1:1 in model space. Mistake to avoid: scaling geometry to fit a title block.
  • 2
    2. Build the geometry on named layersSeparate profile, through holes, tapped holes, and engraving. Keep polylines closed. Mistake to avoid: snapping to nearest and shifting a hole by 0.3 mm.
  • 3
    3. Add dimensions and tolerancesDimension the features that matter. Use ±0.005 mm only on critical fits, wider values elsewhere. Mistake to avoid: tolerancing a curved surface as a datum.
  • 4
    4. Clean the fileRun OVERKILL, AUDIT, and PURGE. Delete stray points and duplicate lines. Mistake to avoid: exporting a file with 4,000 unused entities.
  • 5
    5. Export DXF or STEPDXF R12 or 2000 for 2D cutting, STEP AP214 for 3D. Send the PDF alongside, never alone. Mistake to avoid: sending STL for a milled part.
  • 6
    6. Write the setup noteState material, stock size, critical datums, and finish callouts such as Ra 0.8–1.6 μm. Mistake to avoid: leaving the material grade blank.
  • 7
    7. Review the CAM outputCheck tool diameters against corner radii, run the simulation, then post for Fanuc, Siemens, or Heidenhain. Mistake to avoid: assuming a 6 mm tool cuts a 1 mm corner.
Choosing your path

When Using AutoCAD With a CNC Machine Works Best

Pick the row that matches your part.

Part typeBest drawing methodExport formatTypical result
Flat plate, bracket, gasket2D closed polylinesDXF R12 or 2000Fast 3-axis profiling
Pocketed housing3D solid with real depthsSTEP AP214Accurate pocket floors
Turned shaftRevolved solid or half-sectionSTEP AP214Clean turning profile
Sheet metal blank2D flat pattern with bend linesDXF R12Laser or waterjet ready
Complex contoured surface3D surface modelSTEP AP2145-axis toolpaths
Engraving and markingSeparate layer, closed outlinesDXF 2000Text height 1.5 mm minimum
Large weldment plate2D profile up to 4,000 mmDXF 2000Fits the 4,000 mm travel
Prototype, geometry unsettled2D or rough 3DSTEP AP214DFM feedback in 12 hours

Draw it clean, and the machine does the rest

AutoCAD handles the geometry. Layer discipline, honest tolerances, and a STEP or DXF export decide whether the part comes off the machine to size. When the drawing is ambiguous, call the shop before you cut.

FAQs

AutoCAD With CNC Machine: Common Questions

Can I send only a DXF file for a milled part?

Yes, if the part is flat and every feature is a through cut or a simple pocket you have dimensioned on the print. The CAM programmer sets depth from the drawing.

If the part has stepped pockets, counterbores, or 3D blends, send STEP as well. A DXF alone leaves those depths to interpretation.

Does AutoCAD produce G-code directly?

No. AutoCAD produces geometry. You need CAM software or a machine shop to convert the DXF or STEP into G-code for a specific controller.

Some shops use CAM macros and templates, which is why a clean, well-named file shortens quoting and programming time.

What DXF version should I export?

R12 or 2000 DXF is the safest choice for lasers, waterjets, and older CAM packages. Use 2013 or 2018 when the receiving software is current and splines must stay as splines.

If you are unsure, export 2000 DXF and keep the original DWG available.

How do I handle threads in AutoCAD?

Draw the tap drill diameter as a circle on the tapped-hole layer and note the thread callout, such as M6 × 1.0, in the drawing note.

Do not draw the thread helix. The machinist taps or thread mills it, and the helix adds clutter that CAM ignores.

What tolerance can the machine actually hold?

GreatLight holds ±0.005 mm (±0.0002 in) on critical features, with surface finish between Ra 0.2–0.8 μm and Ra 1.6–3.2 μm depending on the operation.

Tolerances tighter than the process can hold raise cost without improving the part. Put the tight value only where the fit needs it.

Can you review my drawing before I finalize it?

Yes. Send the DXF or STEP and the PDF, and we return a DFM analysis with the quotation, normally within 12 hours.

We flag thin walls, tight internal corners, missing datums, and features that would need a second setup. No minimum order quantity applies, from one prototype to 10,000+ parts.

Send your AutoCAD file and get a DFM review

Upload a DXF or STEP file and we return a quotation with free DFM analysis, normally within 12 hours. Production can start within 24 hours, and every part is inspected before shipment.

12-hour quote100% inspectionNo minimum order quantityNDA on request

Follow our work

More AutoCAD and CNC machining notes

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