September 4, 2026
Designing Custom PCB Outlines: Fixing DXF and SVG Import Failures
A non-rectangular board almost always starts outside the PCB editor: a mechanical engineer hands over a DXF file, or a designer exports an SVG, and the shape needs to become the board's edge cuts layer.
The handoff breaks often: a vague error appears, the shape loads at the wrong scale, or nothing appears at all. An import DXF board outline error rarely means the file is corrupt; it usually means the file was built for CAD software, which tolerates geometry a PCB editor's import engine rejects. This guide covers the common failure modes and how to fix them.
PCB editors reject non-rectangular outlines for specific, diagnosable reasons. Whatever the error message says, an import DXF board outline error usually reduces to one of five causes:

A "path not continuous" error means the outline has at least one endpoint that never connects to another segment, even if the contour looks closed on screen.
What typically creates the gap:
| CAD Tool | How to Close the Path |
|---|---|
| Fusion 360 | Check the Sketch Palette for an "open profile" warning, then Trim/Extend. |
| SolidWorks | Run Check Sketch for Feature Use before export. |
| FreeCAD | Select all Sketcher elements and apply a coincident constraint. |
PCB editors typically set a small tolerance for path closure, so gaps under that threshold snap shut and gaps beyond it fail. When a CAD tool keeps producing open contours, convert the outline to one closed polyline before exporting.
SVG files fail on a different set of issues than DXF, mostly because SVG was built for screens rather than fabrication. A few export practices resolve the common SVG import problems:
Flux imports DXF and SVG files directly into the PCB editor's layout shape tool, and the same path-continuity rules apply. A DXF file for a Flux board outline can contain lines, splines, arcs, circles, and ellipses; polylines are excluded, and the geometry must form a single closed polygon. A file exported with polylines needs those exploded into simple lines and arcs first, the same step KiCad requires for its own DXF import.
Preview the imported shape before assigning the geometry to the board outline. Flux snaps closed geometry within its coordinate tolerance and flags shapes it can't resolve into a clean loop. Set the import origin to match the existing board coordinate system, or the new outline will land offset from components already placed on the board.
Preventing an import error costs less time than fixing one after the mechanical engineer has moved to the next revision. A few agreements upfront remove most of the failure modes above:
This same outline becomes the board-outline layer in your final Gerber export. Correct geometry at the import stage prevents another cleanup pass before fabrication. See our guide to JLCPCB Gerber file requirements for what that layer needs to look like on the way out.
Custom board shapes only need one clean import to reach the board outline layer. Flux validates path closure and layer mapping when a DXF or SVG comes into the layout shape tool, and catches an import DXF board outline error before it costs a revision. Bring in your next custom outline using Flux's DXF and SVG import documentation.

A complete 555 timer guide covering pinout, internal operation, monostable and astable modes, timing calculations, and practical circuit examples. It also explains component selection and PCB layout tips for reliable designs.

A visual guide to capacitor schematic symbols, polarity markings, and specialized capacitor types. It explains how to choose the correct symbol and footprint to prevent assembly and design errors.

A practical guide to potentiometer wiring, including pin identification, voltage-divider and rheostat configurations, Arduino examples, and PCB footprint considerations. It helps designers avoid common wiring and layout mistakes.

A practical guide to inverting op-amp circuits, covering how negative feedback creates inversion, how to calculate gain with Rin and Rf, and how real-world limits affect design. It also explains component selection and PCB layout practices for reliable amplifier performance.

A troubleshooting guide for common JLCPCB Gerber upload errors, including unreadable files, missing board outlines, drill-file issues, and Gerber X2 compatibility problems. It explains how to export and verify clean Gerbers before ordering.

A practical guide to designing PCB enclosures around board geometry, clearances, mounting, assembly, and 3D-printed prototyping. It also explains how Flux can generate prototype enclosures directly from a PCB project.

Strategies for sourcing electronic components, managing BOMs, navigating lead times, and planning for component lifecycles to build a resilient hardware supply chain.

A practical guide to Design for Manufacturing (DFM) that helps hardware teams transition from validated prototypes to scalable, production-ready products.