Chapter 21

From Onshape to Manufacturing Files

πŸ“– About 15 minutes 🎯 2 checkpoints
0 / 2 steps completed

Chapter Goal: Learn how to export files from Onshape in the correct format so your Snapmaker can recognize and manufacture your parts. This is the first step in turning a CAD design into a physical object.

Earlier chapters (Chapters 13-15) covered the general principles of 3D printing, laser cutting, and CNC milling. Starting from this chapter, we'll use the Snapmaker in our lab to walk through the entire process from design to finished part, step by step.

⚠️ Safety First: A teacher must be present before operating any manufacturing equipment. This tutorial only covers software operation and parameter settings β€” it cannot replace in-person safety training.

A. What Format Does Each Process Need?

Onshape can export many formats, but each manufacturing process only accepts specific ones:

Process Required Format Description
3D Printing STL Triangle mesh file describing the 3D shape of a part
CNC Milling STL or STEP Luban supports STL; professional CAM software prefers STEP
Laser Cutting DXF or SVG 2D vector file describing the contour lines of the cut path
Laser Engraving SVG or PNG Either vector or raster works; vector produces better results

Easy Rule of Thumb: 3D processes (printing, CNC) use STL; 2D processes (laser cutting) use DXF/SVG.

B. Exporting STL Files (for 3D Printing and CNC)

Steps

  1. Open the part you want to manufacture in Onshape (a single part in a Part Studio)
  2. Right-click the part β†’ Export
  3. Select STL as the format
  4. Resolution:
    • Fine β€” larger file but smoother surfaces, recommended for 3D printing
    • Medium β€” good enough for most cases, recommended for CNC
    • Coarse β€” smaller file but faceted surfaces, generally not recommended
  5. Confirm the units are set to Millimeter β€” Luban uses millimeters by default
  6. Click OK to download the file

Note: You are exporting a single part, not the entire assembly. If you need to manufacture multiple parts, export each one separately. An assembly exported as STL merges all parts into one, making individual machining impossible.

Checking the STL File

After exporting, open the file in Luban and verify:

C. Exporting DXF Files (for Laser Cutting)

Laser cutting is a 2D operation β€” the laser follows contour lines to cut flat sheet material. So you need to export the cross-section profile of your part, not the entire 3D shape.

Method 1: Export from a Sketch (Recommended)

  1. Open the Sketch containing the cutting contour
  2. Right-click the sketch β†’ Export
  3. Select DXF as the format
  4. Click OK to download

Method 2: Export from a Face

  1. If the part is already built, select the flat face you want to cut (e.g., the front of a plate)
  2. Right-click β†’ Export as DXF/DWG
  3. Select DXF as the format
  4. Confirm units are set to millimeters

Common Issue: The DXF dimensions are wrong in Luban? Check the unit settings when exporting from Onshape and make sure they match Luban (both should use millimeters). If it's still off, try manually scaling in Luban.

βœ…
Checkpoint 1: Can you export files from Onshape in the correct format?

Try it: Export an STL and a DXF file from a part you made earlier, and verify the files open correctly.

D. Getting to Know Snapmaker Luban

Luban is Snapmaker's companion software. It converts your design files into machine instructions (G-code) that the Snapmaker can execute. All Snapmaker models use this single software.

Installing Luban

  1. Visit the Snapmaker website's download page and select your operating system (Windows / macOS)
  2. Download the latest version of Luban and install it
  3. On first launch, select Snapmaker 2.0 A350/A350T/F350 (our lab's model, work area 320 Γ— 350 mm)

Luban Interface Overview

When Luban launches, you'll see three main modes:

Mode Purpose Related Chapter
3D Printing Import STL β†’ Slice β†’ Generate print path Chapter 13 covered the principles
Laser Import SVG/DXF/PNG β†’ Set power and speed β†’ Generate cut/engrave path Chapter 23
CNC Import STL β†’ Set tool and toolpath β†’ Generate milling path Chapter 22

Connecting to the Machine

Once your manufacturing file is ready, there are two ways to send it to the Snapmaker:

βœ…
Checkpoint 2: Is Luban installed and ready?

Install Luban 4.15.0, select Snapmaker 2.0 A350, and confirm you can access the 3D Printing / Laser / CNC modes.

Chapter Summary

  • 3D processes (printing/CNC) β†’ export STL
  • 2D processes (laser cutting) β†’ export DXF or SVG
  • When exporting, pay attention to units (millimeters) and resolution (Fine/Medium)
  • Luban is the bridge between your Onshape designs and the Snapmaker machine

In the next chapter, we'll dive into hands-on CNC milling β€” using Luban's CNC mode to machine your first part.

← Previous: Pre-Match Checklist Next: CNC Milling Hands-On β†’