FreeCAD US
Workbench with a 3D printer, a machined aluminum bracket and a laptop showing a triangulated mesh
Fig. 1: The same FreeCAD body exported twice — as a triangle mesh for printing and as a B-rep solid for machining.

Export log / FreeCAD US

STL and STEP Export Guide

This page records the last stage of the FreeCAD workflow: the moment a finished parametric model leaves the source file and becomes a file a slicer or a CAM post-processor can read. Every setting below is written with the value that is used in practice, not the default that ships with the program.

Two formats are covered, because they answer two different questions. STL answers "what shape does the printer see", STEP answers "what surfaces does the machine see". Choosing the wrong one is the most common reason a part comes back undersized or faceted.

0.05 mm

Deviation used for print-ready meshes on a 0.4 mm nozzle.

AP214

STEP schema that keeps part names, colors and assembly structure.

84 + 50n

Bytes in a binary STL holding n triangles, header included.

01 / Before the export button

Four model-side factors that decide the export quality

Export settings can only preserve what the model already contains. A sketch with missing constraints produces a body that shifts when a parameter changes, and a mesh built from a broken solid fails the slicer regardless of deviation. The four items below are checked before any file leaves FreeCAD.

Units are set once, at the start

FreeCAD stores the model in millimetres internally, but a document created from an imperial template still writes millimetres into the export. The unit field is missing from STL entirely, so a slicer that assumes inches scales the part by 25.4. The unit check belongs to the first sketch, not to the export dialog.

Open setup guide

Fully constrained sketches hold their shape

A sketch with two degrees of freedom still produces a valid solid, but the geometry can move when a dimension is edited later. Export files are versioned artefacts; a model that drifts between revisions produces parts that no longer match the drawing. Constraint count is read from the solver messages before the file is released.

Open constraint tutorial

One body, one solid, one file

A Part Design body that contains a single contiguous solid exports cleanly. Two separate solids inside one body are written to STEP as a compound, and most CAM importers treat a compound as an assembly with loose parts. The Pad and Pocket workflow keeps the result a single solid.

Open Part Design guide
glyph-ui

Parameters live in a spreadsheet, not in the dialog

When wall thickness and hole spacing come from a spreadsheet, the exported revision is reproducible: change one cell, rebuild, export again. Hard-coded dimensions force a manual re-edit for every variant, and manual edits are where export mismatches start. The spreadsheet workflow documents the binding step.

Open parametric guide

02 / Mesh export

STL export settings: deviation, angular deflection, format

The STL path in FreeCAD runs through File → Export with the STL format selected, or through the Mesh Design workbench when a mesh object is needed inside the document. The dialog exposes three values that fully decide the triangle count: deviation, angular deflection and the binary flag. Deviation is the maximum allowed distance between the original surface and the tessellated triangle, measured in millimetres.

The default of 0.50 mm is intended for visual previews, not for manufacturing. On a 0.4 mm nozzle a 0.50 mm chord error is visible as faceting on every curved wall, and on a small fillet it can remove the feature entirely.

  • Deviation0.05 mm for FDM printing, 0.02 mm for resin, 0.10–0.20 mm for a visual mockup that will never be machined.
  • Angular deflection0.10–0.20 rad keeps cylinders round; the shipped default of 0.50 rad flattens a 20 mm shaft into a visible polygon.
  • Binary flagBinary STL costs 84 bytes plus 50 bytes per triangle. ASCII is human-readable and five to six times larger — useful for debugging, wasteful for delivery.
  • UnitsSTL carries no unit field at all. FreeCAD writes millimetres; the receiving software decides what those numbers mean.

Triangle count follows the deviation directly. A 60 mm bracket exported at 0.05 mm typically lands between 60,000 and 120,000 triangles, which is a 2–4 MB binary file. Dropping the deviation to 0.01 mm can push the same part past one million triangles with no visible gain at a 0.2 mm layer height, and the slicer spends noticeably longer preparing the job.

Working rule: set the deviation to at most one quarter of the layer height, and never below 0.02 mm for FDM. A 0.2 mm layer pairs with 0.05 mm deviation; a 0.12 mm layer pairs with 0.03 mm.

03 / Solid exchange

STEP export: schema, units and exact geometry

STEP is an ISO 10303 exchange format that stores the exact boundary representation of a solid: analytic planes and cylinders, NURBS surfaces, edges and vertices. Nothing is triangulated. The receiving system rebuilds a real solid, which is why a STEP file can be measured, sectioned and toolpathed without the chord error that an STL carries.

FreeCAD writes STEP through File → Export or Part → Export. The schema selection in the export panel is the only setting that changes the result, and it changes it more than most users expect.

AP214

Carries part names, colors and assembly structure. The safest default for a job shop that opens the file in several programs.

AP203

Drops colors and layers but is accepted by older CAM kernels that reject newer headers. Use it when the shop asks for it.

AP242

The newest schema, with model-based definition support. Export it only when the receiving software declares compatibility.

Units in the header

Unlike STL, STEP records millimetres in the file header, so an importer can convert automatically instead of guessing.

What leaves FreeCAD is the final shape of the body, not the feature tree. A suppressed Pad, a fillet that failed to rebuild, or a Pocket applied to the wrong face is baked into the exchange file with no warning at export time. The check is visual and geometric: open the exported STEP in a second program, or re-import it into an empty document and compare the bounding box against the source. The modeling best practices page covers the rebuild discipline that prevents most of these defects.

04 / Verification

Mesh checks before slicing or machining

After export, the mesh is verified in the Mesh workbench through Meshes → Analyze → Check solid mesh. The tool reports non-manifold edges, duplicated faces, self-intersections and flipped normals in one pass. A mesh that passes all four checks is watertight and can be handed to a slicer without manual repair.

Watertight

Every edge is shared by exactly two triangles. A single open hole forces the slicer to guess where the inside ends, and the guess is usually wrong.

Non-manifold edges

Three or more faces sharing one edge. This is the classic cause of a failed print and of a CAM importer refusing the file outright.

Normals

Normals must point outward. Flipped normals produce an inverted shell that the slicer reads as negative volume, and the part prints inside out.

Duplicate vertices

Harmless for printing, harmful for CAM. Duplicates inflate the file and can make a toolpath retract at a point where the surface is continuous.

The solid itself is checked first, before meshing. Part → Check geometry runs a BOP check on the shape and reports invalid curves, self-intersections and tolerance failures that would otherwise be inherited by the mesh. A part that fails the BOP check will not export a reliable STL, no matter how fine the deviation is set.

05 / Machining hand-off

CNC notes: why STEP goes to CAM and STL does not

CAM software works from surfaces and tolerances, not from triangles. An STL forces the CAM kernel to re-fit surfaces from a faceted approximation, and every toolpath inherits that chord error. STEP hands the toolpath generator the original cylinders, planes and fillets, so a 10 mm bore is toolpathed as a 10 mm bore.

A 0.05 mm mesh deviation sits inside a typical ±0.1 mm machining tolerance and will appear on a CMM report as a form error on curved surfaces. On a flat plate the difference is invisible; on a bearing seat it is a rejected part.

  • 012.5D pockets and drilling: export the solid as STEP, or the profile sketch as DXF when the shop programs from 2D.
  • 02Threads are modeled as cosmetic features. CAM generates them from the tool table, not from helical geometry in the model.
  • 03Chamfers and radii stay in the model. A note on a drawing is not geometry, and CAM reads geometry only.
  • 04One solid per file. A compound forces the shop to separate parts manually before the first toolpath is generated.

The standard hand-off package for a US job shop is a STEP file in AP214 with millimetre units, one solid per file, plus a PDF drawing for inspection dimensions. The beginner guide covers the modeling stages that come before this point.

06 / Records

File naming and revision discipline

The file name is the only metadata that survives email, FTP and a shop's file server. A consistent pattern lets a machinist identify the part, the revision and the export preset without opening anything. The pattern used here is part number, short description, revision letter, ISO date, then extension.

PART-1042_bracket-mount_rev-C_2026-02-14.step
PART-1042_bracket-mount_rev-C_2026-02-14_dev005.stl
PART-1042_bracket-mount_rev-C_2026-02-14_dev02.stl
PART-1042_bracket-mount_rev-C_2026-02-14.FCStd

Characters and order

Part number first, then a short description, then the revision letter, then the ISO date. No spaces, no parentheses, no non-ASCII characters — every one of them breaks a script somewhere downstream.

Source next to the export

The .FCStd file is stored beside the STEP and STL it produced. STEP keeps the shape but not the feature tree, so the source is the only way to rebuild a revision.

Never overwrite a release

A released revision stays untouched. Changes increment the letter. Two files with the same name and different contents are the most expensive kind of confusion in a shop.

Preset in the name

When two meshes are delivered, the deviation is written into the name: _dev005 for 0.05 mm, _dev02 for 0.20 mm. The recipient then knows which file is for printing and which is a preview.

07 / Questions

Export questions asked most often

Why does my STL open 25.4 times too large?

The STL format has no unit field. The exporter writes millimetres and the importing program assumes inches. The fix is in the slicer or importer settings, not in FreeCAD — set the import unit to millimetres and the part returns to its real size.

Should I export the whole body or a selected feature?

Select the Body in the tree, not a single feature. Exporting a selected feature writes only that shape, which is usually one Pad without the pockets cut into it. The result looks correct in a viewer and is wrong on the machine.

Does STEP keep the parametric history?

No. STEP stores the final shape as a boundary representation. The sketch tree, constraints and spreadsheet links stay in the .FCStd file, which is why the source is archived with every release.

Binary or ASCII STL?

Binary for everything that leaves the computer. ASCII is five to six times larger and exists for debugging mesh problems in a text editor, not for delivery to a printer or a shop.

How many triangles are too many?

Slicers handle one to three million triangles without complaint, though preparation time grows noticeably. CAM importers are less forgiving: above roughly 500,000 triangles the surface re-fitting step becomes slow and unreliable.

08 / Continue

Continue through the FreeCAD workflow

Export is the last link in a chain that starts with a constrained sketch and a spreadsheet of parameters. The pages below document the earlier stages with the same level of detail used here.