Export a 3D-printable STL from SolidWorks
The short version
To export an STL from SolidWorks, open the part, choose File > Save As, set Save as type to STL (*.stl), click Options..., pick Binary output, a Unit that matches your printer software, and Fine resolution, then save. The checks before and after the export decide whether the print works, so this lesson covers those too.
This guide uses the standoff block from the SolidWorks tutorial for beginners: a 60 by 40 by 20 mm block with two 6 mm holes. Any single part works the same way.
Key points before you start:
- An STL describes only the outside skin of a part as a mesh of flat triangles. It stores no features, no material, and no units.
- The mesh is only as good as the solid it came from. Gaps, open surfaces, or extra bodies carry straight into the file.
- Your slicer decides the size of the print from the raw numbers in the file, so the unit you export in matters.
The part has to be a closed solid first
A printer needs a watertight body: every face meets its neighbors, with no holes in the skin. A model built only from extrusions and cuts is almost always closed. A model built from surfaces, imported geometry, or many edits is where problems hide.
- Expand the Solid Bodies folder at the top of the FeatureManager design tree. For a one-piece print it should hold exactly one body. If you see a Surface Bodies folder with content, the part is not finished: knit those faces into a solid, as shown in the SolidWorks surfacing tutorial.
- On the Evaluate tab, click Check. Run it on all items and read the result. Invalid faces, invalid edges, or short edges point to geometry that may tessellate badly.
- Rebuild with Ctrl+Q and fix any feature that shows an error or a warning in the tree before you export.
- Click Mass Properties on the Evaluate tab. A closed solid reports a volume. If the volume is far from what you expect, a body or a cut is not doing what you think.
If the part came in from another program, Import Diagnostics (Tools > Evaluate) can heal faulty faces and close small gaps. Run it before you edit the body.
Units, scale, and orientation
An STL file has no units. It holds coordinates and nothing else, so a 60 mm edge exported in millimeters is written as 60. If the slicer reads that file as inches, the print is 25.4 times too big. Export the same part in centimeters, and a slicer expecting millimeters shows a block 6 mm long, ten times too small.
The fix: export in the unit your slicer expects, usually millimeters, and check the size after import. The Unit setting in the STL options can differ from the part's own units, so set it on purpose.
- Check the document units on the status bar, or under Tools > Options > Document Properties > Units.
- Use Measure on the Evaluate tab to confirm one known edge, such as the 60 mm length of the block.
- In the slicer, compare the reported size with that number before you print anything.
Print orientation vs modeling orientation
In SolidWorks the Top Plane faces up the Y axis, while many slicers treat Z as up. A block you modeled sitting on the Top Plane can arrive lying on its side. That is not an error in the file. Rotate the part in the slicer, or use its lay-flat tool to put a chosen face on the bed.
Choose the print orientation for the part, not for how you modeled it. For the standoff block, the 60 by 40 mm face down gives the most bed contact and prints the holes as clean vertical circles.
STL export settings
With the part checked, export it:
- Choose File > Save As. In some releases the same dialog is also under File > Export As.
- Set Save as type to STL (*.stl).
- Click Options... to open the export options.
- Under Output as, choose Binary. Pick the Unit, usually Millimeters.
- Under Resolution, choose Fine to start.
- Turn on Show STL info before file saving if you want to see the triangle count and file size before you commit.
- Click OK, name the file, and click Save.
What each setting does
Resolution controls how finely curved faces are cut into triangles. Flat faces need only a few triangles at any setting, so the block's sides look the same either way. Its holes and fillets are where the setting shows.
| Setting | What it controls | When to use it |
|---|---|---|
| Binary | Compact file format | The default for printing; every common slicer reads it |
| ASCII | Plain text format, much larger | Only when a tool asks for it or you want to read the file |
| Coarse | Few large triangles on curved faces | Quick checks and large parts with few curves |
| Fine | Many smaller triangles | Most printed parts |
| Custom: Deviation | How far the mesh may stray from the true surface | Lower it if facets show on large curved faces |
| Custom: Angle | How much the direction may change between neighboring triangles | Lower it if small holes and fillets look faceted |
Fine is wasted on a part with no visible curves, and on any detail smaller than your nozzle or layer can reproduce. A finer mesh than the printer can resolve only makes the file bigger and slower to slice. Coarse is the risk on small holes: a 6 mm hole drawn with too few triangles prints slightly undersized, because each flat facet cuts inside the true circle.
Assemblies
For an assembly, the options add Save all components of an assembly in a single file. Checked, you get one STL with every part in place, which suits a print-in-place model whose parts do not touch. Unchecked, you get one file per component, which is what you want when each part prints separately. Check for interferences, in the same section, flags overlapping parts before you write a single merged file.
Re-import and inspect
Never send a file you have not looked at. Open the STL again:
- Choose File > Open, set the file type to STL, and click Options... to import it as a graphics body, the lightest option for a visual check.
- Rotate the mesh and look at every curved face and every hole.
- Open it in your slicer too, which is the program that will actually make the part.
Common red flags:
- The wrong size. A tiny or huge model in the slicer means a unit mismatch.
- Visible flat facets on curves. Re-export with a finer resolution or a lower Custom Deviation.
- Holes, slivers, or missing faces. The source part was not a closed solid. Go back to the checks above.
- More than one shell where you expected one. An extra body was in the part. Delete it or combine it before export.
Split, shells, and wall thickness
Some parts need more than a clean export:
- Too big for the bed. Use Split to cut the part into pieces, and add a lip or pins so the halves line up when glued.
- A hollow housing. Use the Shell feature with a wall your printer can build reliably, and check the thinnest spot with Measure.
- Thin walls and fine features. Anything thinner than a couple of extrusion widths may print weak or not at all. Thickness Analysis, where your license includes it, colors thin areas so you can find them fast.
The Maker projects hub gathers the lessons on designing around real hardware. Rhino Basics week 06, which models an Arduino board and a stepper motor for a housing, shows how to plan clearances before you shape the outside.
Common mistakes
- Exporting with a surface body still in the part. The STL looks fine and prints with a hole.
- Trusting the default unit. Set Unit in the options and check one known dimension in the slicer.
- Choosing ASCII for no reason. The file is larger and gains nothing for printing.
- Maxing out the resolution. A finer mesh than the printer can resolve slows everything down.
- Exporting a whole assembly as one file when the parts need to print separately.
Recap
Check that the part is one closed solid, confirm the units and a known dimension, export as Binary at Fine resolution, then reopen the file and inspect it before it reaches the printer. For more lessons in this series, go back to the SolidWorks tutorials hub or browse the full CAD tutorial library.