Exporting sketch as DXF for Kicad import

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
Post Reply
rex
Posts: 1
Joined: Sat Jul 18, 2020 6:17 pm

Exporting sketch as DXF for Kicad import

Post by rex »

I'm trying to import a relatively simple sketch into KiCad, but I get the following error:
No graphic items found in file to import.

Steps to reproduce:
1. Select Sketch in model tree under outlier>Body>Pad.
2. File>Export to outline.dxf
3. In KiCad PCB Layout Editor, select File>Import>Import Graphics...
4. Select outline.dxf and click OK.

Things I tried:
- Changed to the legacy python import module as recommended here: https://forum.freecadweb.org/viewtopic.php?p=360672.
- Selected the Body item in the model tree instead of sketch.

I'm using FreeCAD-0.18-16146 and KiCad Version (5.1.5-0-10_14) on macOS Catalina 10.15.5.

Thanks in advance!
Attachments
outline.FCStd
(22.32 KiB) Downloaded 54 times
User avatar
Roy_043
Veteran
Posts: 8547
Joined: Thu Dec 27, 2018 12:28 pm

Re: Exporting sketch as DXF for Kicad import

Post by Roy_043 »

  1. Switch to Std ViewFront.
  2. In the DXF Import Export Preferences check the 'Project exported objects along current view direction' option.
  3. Select the sketch.
  4. Invoke Std Export.
jmaustpc
Veteran
Posts: 11207
Joined: Tue Jul 26, 2011 6:28 am
Location: Australia

Re: Exporting sketch as DXF for Kicad import

Post by jmaustpc »

on top of what Roy said, I also needed to select the legacy Python DXF Export. Also rear view and front view worked for me, both looked the same of course except for their orientation.


OS: Ubuntu 18.04.4 LTS (KDE/plasma)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.
Build type: Release
Branch: unknown
Hash: 71e1f7c331fcd97c74b4a159bb6a8c90df903e6e
Python version: 3.6.9
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/Australia (en_AU)
User avatar
easyw-fc
Veteran
Posts: 3633
Joined: Thu Jul 09, 2015 9:34 am

Re: Exporting sketch as DXF for Kicad import

Post by easyw-fc »

rex wrote: Sat Jul 18, 2020 7:32 pm I'm trying to import a relatively simple sketch into KiCad, but I get the following error:
No graphic items found in file to import.

Steps to reproduce:
1. Select Sketch in model tree under outlier>Body>Pad.
2. File>Export to outline.dxf
3. In KiCad PCB Layout Editor, select File>Import>Import Graphics...
4. Select outline.dxf and click OK.
Why not just pushing the sketch direct from FC to KC usjng kicad SteUp WB?
User avatar
Roy_043
Veteran
Posts: 8547
Joined: Thu Dec 27, 2018 12:28 pm

Re: Exporting sketch as DXF for Kicad import

Post by Roy_043 »

jmaustpc wrote: Sun Jul 19, 2020 3:10 pm I also needed to select the legacy Python DXF Export.
The OP is using V0.18 where only the legacy exporter is available.
User avatar
easyw-fc
Veteran
Posts: 3633
Joined: Thu Jul 09, 2015 9:34 am

Re: Exporting sketch as DXF for Kicad import

Post by easyw-fc »

kicad StepUp: the Sketcher for Getting to Blinky
-
phpBB [video]
Post Reply