Parametric Design and Scripting: Fusion 360 for Laser Cutting
Parametric design lets you change dimensions once and update all linked geometry. Fusion 360's scripting API automates DXF export. This workflow is powerful for batch production.
December 22, 2026 · 10 min read
Parametric design stores a part as equations instead of frozen geometry: named user parameters like boxW = 120 mm, materialT = 3.0 mm, and kerf = 0.15 mm drive sketches, sketches drive features, and changing one number recomputes the whole model in seconds. Fusion 360 pairs that model with a free Python scripting API, and the combination is what turns a single laser-ready design into a batch exporter — fifty box sizes, forty enclosure variants, or a made-to-order product line, each emitted as its own DXF without a human clicking File → Export once. For anyone selling cut files or running a small laser business, this is the highest-leverage automation available in a mainstream CAD tool.
Why Does Parametric Design Beat Fixed Geometry for Made-to-Order Parts?
A parametric model captures design intent: the sketch says "slot width equals material thickness plus fit allowance", so every size the model is ever driven to keeps that relationship true. A customer orders the same organizer box at 160 x 100 mm instead of 120 x 80 mm — you edit two expressions, Fusion recomputes (typically under 5 seconds for a sheet-metal-scale part), and every tab, slot, fillet, and hole pattern moves correctly. Fixed, direct-modeled geometry has no such leverage; each variation is a redraw, which is why fixed models quietly become forty separate files that drift apart.
Fusion 360's specifics: Modify → Change Parameters opens the user parameter table; typing an expression in the sketch dimension field (the fx column) binds that dimension to a parameter; and parameters can reference each other, so boxH = boxW * 0.618 keeps a golden-ratio proportion across every regeneration. Sheet-metal bodies add bend allowance and flat-pattern development, which is the correct way to model enclosures that fold — the flat pattern, not the 3D view, is what gets exported to the laser.
How Do You Set Up User Parameters for Laser-Cut Parts?
Start every laser-oriented model with the same six-parameter skeleton. The values below suit a 60 W CO2 laser cutting 3 mm birch plywood; adjust the fit and kerf numbers per material and re-measure them per batch, because cheap plywood varies more than the machine does.
| Parameter | Example Value | Expression | Purpose |
|---|---|---|---|
| materialT | 2.85 mm | measured, not nominal | Actual thickness by caliper at three points; "3 mm" ply is usually 2.6-2.9 mm |
| kerf | 0.15 mm | measured from test cut | Beam width; CO2 at 3 mm ply runs 0.1-0.3 mm depending on focus and speed |
| fit | 0.00 mm | - | Joint allowance: 0.00 press-fit for compressible ply, +0.10 mm slide-fit for acrylic |
| slotW | 2.85 mm | materialT + fit | Slot width in the sketch, before kerf compensation |
| filletR | 1.5 mm | - | Inside-corner relief so square tabs seat fully; lasers cannot cut a zero-radius internal corner |
| nestGap | 4 mm | - | Spacing between parts on the sheet for heat management and part drop-out |
Measure kerf once and trust it for the material: cut a 20.00 mm square, caliper the result, and the difference is your kerf (a 19.84 mm square means 0.16 mm kerf). Bake that number into a parameter rather than a memory — when the batch exporter in the next section drives the model, kerf compensation has to ride along automatically, because nobody re-checks 50 generated files by hand.
How Do You Automate DXF Export with the Fusion 360 API?
Fusion 360 ships a Python 3 API (C++ also supported) included with every license tier, including free personal use. Scripts run from Utilities → Add-Ins → Scripts, import the adsk.core and adsk.fusion modules, and can read/write user parameters, traverse components and sketches, and export geometry. The batch pattern below drives a size matrix, waits for each recompute, and writes one DXF per variant using createDXF2DExportOptions, which accepts a sketch (or a sheet-metal flat pattern) as its source:
import adsk.core, adsk.fusion, osdef run(context):app = adsk.core.Application.get()design = app.activeProductparams = design.userParameterssizes = [(120, 80), (160, 100), (200, 120)]outDir = os.path.expanduser('~/Desktop/dxf-batch/')os.makedirs(outDir, exist_ok=True)for w, h in sizes:params.itemByName('boxW').expression = str(w)params.itemByName('boxH').expression = str(h)adsk.doEvents() # let the recompute finishsketch = design.rootComponent.sketches.itemByName('SidePanel')path = outDir + 'box_' + str(w) + 'x' + str(h) + '_side.dxf'opts = design.exportManager.createDXF2DExportOptions(sketch, path)design.exportManager.execute(opts)
Hardening the Batch Script for Unattended Runs
Three production hardenings. Wrap the loop body in try/except and log failures with app.log(message) — one broken variant should not kill the batch. Read the size matrix from a CSV instead of hard-coding it, so non-programmers can queue orders. And keep Fusion in the foreground: the API requires the running GUI application (there is no headless Fusion), so overnight batches mean an awake machine with modal dialogs suppressed. adsk.doEvents() after each parameter change is what makes the recompute land before the export reads the sketch; without it you can capture stale geometry from the previous size.
How Does a Batch Production Run Work End-to-End?
- Model once. One sketch per panel, joints driven by
materialT,fit, andkerf; profile sketches separated from construction geometry so the DXF export contains cut lines only. - Validate the first size physically. Export, import into LightBurn, cut the test part in scrap, and caliper the tabs: a correct press-fit assembles with hand pressure and light mallet taps (0.1-0.3 mm of interference); adjust
fitand re-run until it does. - Run the batch script across the size matrix; collect the DXF set into a dated folder.
- Nest. LightBurn's auto-nest or manual placement with
nestGaprespected — 3-5 mm between parts prevents heat bleed-through and lets small pieces drop free without tipping. - Cut. Reference settings for 3 mm birch ply on a 60 W CO2: roughly 20-30 mm/s at 45-55% power, single pass; a 5 W diode needs 2-3 passes at ~300 mm/min full power for the same material.
- Verify one part per size against the drawing before running the rest — the failure mode of automation is 50 identical mistakes.
Throughput math keeps expectations honest: a six-panel box in 3 mm ply is roughly 0.8-1.5 m of total cut path, which at 25 mm/s is 35-60 seconds of beam time plus pierce and travel overhead. Twenty boxes fit in a 30-45 minute session on one 300 x 200 mm sheet area — the scripting saves the design hours, not the laser hours. Inspect exported DXFs visually before cutting by round-tripping one through a DXF to SVG converter; anything that survived the trip intact will import cleanly into LightBurn, and the SVG view exposes stray construction lines the CAM preview hides. Designs that originate as vectors rather than models go the other way through an SVG to DXF converter, and G-code generation for routers is covered by the image to G-code tool.
Which Pitfalls Break Parametric Laser Files?
Kerf is the big one, and it cuts both ways on the same joint. The beam vaporizes a 0.1-0.3 mm slot centered on the path, so external profiles finish smaller than drawn (a tab loses kerf/2 per side) while internal features finish larger (a slot gains kerf/2 per side). Uncompensated, a 2.85 mm tab and a 2.85 mm slot end up ~0.15 mm undersized and ~0.15 mm oversized respectively — a 0.3 mm total error, which is precisely the difference between a glue-ready snap fit and a wobbly joint. Compensate in the sketch expressions (outside features offset outward by kerf/2, internal features inward), or use Fusion CAM's kerf compensation on profile cuts — but do it in exactly one place, or you pay for it twice.
Inside Corners, Recompute Fragility, and DXF Details
A laser cannot cut a sharp internal corner — the beam has a radius, so every inside corner arrives with a kerf-width round, and a square tab hits that round and stops 0.2 mm short of home. The fixes are a 1-1.5 mm fillet on internal corners (the filletR parameter), or dog-bone/T-bone relief cuts that over-run the corner. Fillets must be parametric too: a hard-coded 1.5 mm fillet breaks when a resize drives the adjacent edge shorter than the radius.
Recompute fragility is the second trap. Driving parameters to extremes breaks sketch references — constraints turn yellow, dimensions red — and the script exports whatever survived. Guard against it with parameter limits (Fusion user parameters accept min/max expressions), a post-change validity check, and a size matrix that stays inside tested bounds; a box whose wall is shorter than filletR + slotW was never going to resolve cleanly. Chained tangent relations are the usual culprit at extremes — replace long tangent chains with explicit dimensions between stable geometry.
Finally, DXF hygiene. Fusion's DXF2D export writes profiles as curves and polylines that LightBurn imports cleanly, but spline-heavy geometry upsets older CAM packages like RDWorks — convert splines to arcs, or route the file through SVG as an intermediary. Verify units are millimeters end-to-end (an imperial-template document exports inches-scaled DXF that cuts at 25.4x size), and confirm the export selected the profile sketch only: construction lines, dimension annotations, and the origin cross all cut if they ride along.
Frequently asked questions
Is the Fusion 360 scripting API free?
Yes. The Python and C++ API ships with every Fusion 360 license, including the free personal-use tier and the paid subscription — there is no separate developer fee. Scripts run from Utilities, Add-Ins, Scripts inside the application. The one constraint is that the API requires the Fusion GUI to be running: there is no headless mode, so unattended batch jobs need an awake machine with the app open and modal dialogs suppressed.
Can Fusion 360 export DXF from a sketch via script?
Yes. The export manager's createDXF2DExportOptions accepts a sketch object (or a sheet-metal flat pattern) and an output path, and exportManager.execute writes the DXF. A batch script can change user parameters, wait for recompute with adsk.doEvents(), then export one DXF per configuration in a loop. Export only the profile sketch so construction geometry, dimensions, and the origin cross stay out of the cut file.
What kerf value should I use for 3 mm plywood?
Measure it rather than trust a default: CO2 lasers cutting 3 mm plywood typically produce 0.1-0.3 mm kerf depending on focus, power, and speed. Cut a 20.00 mm calibration square at your production settings, measure it with calipers, and the shortfall is your kerf — a 19.84 mm result means 0.16 mm. Store it as a user parameter so press-fit joints re-compensate automatically on every resize.
Can Fusion 360 run headless for overnight batch exports?
No. The Fusion 360 API operates inside the running desktop application; there is no headless or server mode, and Autodesk's cloud API covers data management (files, projects), not geometry regeneration or DXF export. For unattended batches, keep Fusion open on a machine that will not sleep, disable notifications and modal dialogs, and add logging (app.log) to the script so failures are discoverable in the morning.
Why are my press-fit joints loose after parametric resizing?
Almost always one of three causes: nominal thickness instead of measured ("3 mm" ply is usually 2.6-2.9 mm, and cheap sheets vary within a batch), missing kerf compensation (the laser removes 0.1-0.3 mm, shrinking tabs and widening slots in the same joint), or a stale recompute the script exported before it finished. Caliper the material per batch, drive slot and tab dimensions from measured parameters plus kerf/2, and call adsk.doEvents() after every parameter change before exporting.
Sources
Convert files for this workflow
Try it on your own file
Drop in an image or an SVG and see the result before you pay. No signup is required to preview.