Documentation

DXF and STEP exports for CAD & CNC routing

If you’re routing stringers on a CNC, modelling the stair in CAD, or generating cut paths in VCarve — Magic Stairs gives you geometry your tools can use directly. No conversion, no surface clean-up. The DXF bundle is your 2D path; STEP is your 3D path.

DXF — 2D vector geometry for CNC & CAM

The DXF export is a ZIP archive containing one DXF file per sheet — mirroring the structure of the construction PDF. Plan view, elevation(s), and a separate workshop DXF for every cuttable part (stringers, treads, risers, newels, balusters, handrail). Each DXF is a flat 2D drawing using the standard ASCII DXF format (R2007 / AC1021), which every CAD and CAM tool on the market reads natively.

Multiple DXF sheets from a Magic Stairs export opened side-by-side in a CAD viewer, showing plan view and elevation views of a staircase as blue vector lines on a grid background
Magic Stairs DXF sheets open in any CAD viewer (QCAD, LibreCAD, AutoCAD, DraftSight). Each sheet is a separate DXF inside the export ZIP.

Layer structure

Every DXF is layered so you can isolate exactly what you need in your CAM tool. The layer names are stable across all calculator types (straight, L-shaped, ladder, porch):

  • TREADS — tread board outlines (one polyline per tread, including any corner notches)
  • RISERS — riser board outlines (only present when withRisers = true)
  • STRINGER — stringer profile (saw-tooth for open, rectangular slab with dado pockets for closed)
  • BALUSTERS — baluster outlines in elevation view
  • HANDRAIL — upper handrail, lower rail, and any intermediate rails as separate polylines
  • NEWELS — newel post outlines + mortise pockets
  • DIM — all dimension lines, leaders, and text labels (turn this layer off for a clean fabrication file)
  • FRAME — sheet border, title block, scale label (turn off to extract raw geometry)

CNC & CAM workflow

The typical workflow for routing stair parts on a CNC:

  1. Open the workshop DXF of the part you want to route (e.g. stringer-inner.dxf) in your CAM tool — VCarve Pro, Fusion 360 Manufacturing, Vectric Aspire, Carbide Create, or your machine’s native CAM.
  2. Hide the DIM and FRAME layers — you only need geometry, not annotation.
  3. Select the stringer outline polyline. Assign a profile toolpath (outside cut) with your endmill diameter and material thickness.
  4. For closed stringers: select the dado-pocket polylines and assign a pocket toolpath at the dado depth specified in the calculator.
  5. Post-process to your machine’s G-code dialect and run.

Because every part is on its own layer, you can also load the whole sheet into nesting software (SheetCAM, MyNesting, Fusion 360 Nesting) and let it lay out the most efficient material yield across treads, risers, and stringer slabs.

Units & scale

DXF units follow the unit you selected in the calculator — millimetres or inches — and are tagged in the file’s $INSUNITS header variable. The drawings are at 1:1 scale; no unit conversion is needed in CAM. If your CAM tool defaults to a different unit, set the import unit once and it’ll line up.

STEP — 3D solid geometry for CAD

The STEP export (.step / .stp, AP214 BREP) is a single file containing the entire staircase as a 3D solid assembly. Unlike a triangulated mesh (STL), STEP carries true B-Rep solids — every face is a real surface with curvature and edges you can dimension, fillet, modify, and reference in your CAD sketch. It’s the format you want any time you need to integrate the staircase into a larger CAD model.

3D rendering of an L-shaped staircase with railing and balusters, rendered in light grey from a CAD viewer after importing a Magic Stairs STEP file
A Magic Stairs L-shaped staircase imported as STEP into a 3D CAD viewer. Every visible part — stringer, treads, balusters, handrail, newel posts — is a separate named component in the assembly tree.

Component hierarchy & naming

STEP files contain an assembly hierarchy. Magic Stairs uses a flat, prefix-based naming scheme so every part is independently selectable in your CAD tool’s browser tree:

  • stringer-inner / stringer-outer / stringer-mid-N — one component per stringer slab
  • tread-01, tread-02, … — one component per tread, indexed from bottom to top
  • riser-01, riser-02, … — only present when withRisers = true
  • newel-foot, newel-head, newel-mid-N — one component per newel post
  • baluster-01, baluster-02, … — every individual baluster as its own component
  • handrail-upper-N, handrail-lower-N, handrail-mid-N — every rail piece (upper, lower, intermediate) prefixed handrail- so they group cleanly in the CAD tree

Components are positioned in world coordinates with the foot of the staircase at the origin and Y as the up-axis. No rotation or translation is needed on import — drop the STEP into your CAD and it sits where you’d expect.

Closed stringers carry their dado pockets pre-cut

For closed-stringer designs (where the treads sit in pockets routed into the inside face of the stringer slab), each pocket is already cut into the stringer solid using a boolean subtraction — no manual modelling. Pockets are sized to the tread thickness plus a small clearance and are positioned so the treads insert directly into them when you drag them home in your CAD tool.

Single stair stringer component shown in isolation in a 3D viewer, with the characteristic saw-tooth profile of an open stringer clearly visible against a light background
A single stringer extracted from the STEP assembly. Each stringer slab is its own selectable solid — open stringers show the saw-tooth profile, closed stringers ship as a full slab with dado pockets cut into the inside face.

CAD modelling workflow

Typical workflow for working with the STEP in CAD:

  1. In your CAD tool (Fusion 360, FreeCAD, Onshape, Solidworks, Inventor, Solid Edge), use File → Import and choose the .step file from the Magic Stairs export.
  2. The staircase appears as an assembly in your browser tree — every part already named and positioned.
  3. To reference a specific part in a sketch (e.g. project the stringer outline onto a new sketch plane), expand the component and select it directly from the tree.
  4. To modify a part, right-click the component → Edit, or convert it to a parametric body and edit its features. For larger changes, prefer adjusting parameters in the Magic Stairs calculator and re-exporting — that keeps every part in sync.
  5. To add Magic-Stairs-generated geometry into a larger building model, insert the STEP as a sub-assembly of your project model and constrain its origin to your floor plan.

Compatibility notes

AP214 (Automotive Design) is the most broadly-supported STEP application protocol. Tested compatible:

  • Autodesk Fusion 360 / Inventor / AutoCAD
  • Dassault Solidworks / Catia / 3DEXPERIENCE
  • PTC Creo / Onshape
  • Siemens NX / Solid Edge
  • FreeCAD (open-source) — full assembly tree preserved
  • Any free STEP viewer (KiCAD 3D-Viewer, eDrawings, etc.)

Related exports

  • PDF — every dimension, fully annotated, ready to print. See Construction PDF.
  • SVG + STL — editable vectors for presentations + a 3D-printable mesh. See SVG & STL exports.