STEP file to SVG

Many vendors of enclosure publish STEP files and often they include the PCB (max recomended size) as a part. I have tried to import them into FreeCAD and convert to SVG (KiCAD imports SVG) but with no luck. Does anyone have an idea how to go about this?

// GH

Hi,
STEP is a 3D model format. SVG is a 2d vector format.
You can probably export a sketch created in FreeCAD to SVG, but can’t export a STEP file imported to FreeCAD (not natively created in FreeCAD).
So the solution would be to to set the view in FreeCAD as you want it in KiCAD, “copy” the STEP 2D view to your own sketch, then export that to SVG or DXF and import that to KiCAD.
Most enclosures are simple enough to copy it in FreeCAD pretty quickly.

Hi!
I found a workaround.

  1. Import the inclosure to FreeCAD (as STEP file),
  2. Remove everyting but the PCB part.
  3. Rotate (transform) the PCB part to XY-plane
  4. Make the part transparent. And select to display only the wireframe of the
    part.
  5. Export the part as SVG.
  6. Then it is possible to import this SVG into FreeCAD…

// GH

1 Like

You can follow segments of this, my Tutorial on using a Hammond Box Step file, in FreeCAD and using it, tweaking it, exporting it and using it in Kicad for a footprint. First five, or so minutes is all you need to see…

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.