I’ve added a bunch of plugins to the repo in my github. The code for these was mentioned in a previous post, but I spent some time to “productize” them. Not fully polished, but can be run without writing code.
I plan on doing a more detailed walkthrough of the code behind it all.

Some kicad plugins for importing Fusion360 DXFs

11 thoughts on “Some kicad plugins for importing Fusion360 DXFs

  • June 29, 2018 at 7:53 am

    Good morning, Miles. Great work, my congratulations!
    I have some questions about the usability of your plugins in Windows:
    1- Your DXF file has been created using Autodesk Fusion 360; in case I should export it from another drawing software, the DXF file has to be saved in the older “DXF r12 file format” (according to the Pcbnew online support), or this limitation is no longer present?
    2- In my stable 4.0.7 KiCad release, I cannot find the “Tools->External Plugins” button (it seems it has been introduced just in the nightly releases); could you please tell me which KiCad release was used for your development? (also consider that I am working in Windows, while it seems that your OS is Linux Ubuntu). Do you think I could launch your scripts in KiCad 4.0.7 directly from the Python console, (even without the “External Plugins” button), or will I probably face problems?
    Thank you very much in advance.

    • September 7, 2018 at 8:26 am

      Hello Stefan and sorry for taking so long to reply.
      Generally speaking, I recommend to ignore the official Kicad releases. They are so far between and things are moving so fast…
      I just use the nightly builds.
      Also note the the other comments to this post that getting the needed libraries installed and visible to pcbnew’s python can be tricky or impossible. I wish I knew a good answer to that.
      As for the DXF versions, my stuff is independent of the DXF stuff built into pcbnew. If you have a DXF you can share, I’d be happy to try it.
      Hope that’s not too discouraging.

  • July 4, 2018 at 11:06 am

    Hi Miles. How could I contact you about this topic?
    Thanks. Stefan

  • July 15, 2018 at 2:33 pm

    Excellent demonstration of an excellent set of tools! Very clear and concise using a realistic application to demonstrate. Well done!
    As you mention in the video, Windows poses a bit of a problem and I’ve managed to get some of the tools running, but not dfxgrabber or all of utils (via fill) due to the way python is incorporated into the Kicad install. Since it has its own python installation with a not-so-quite standard implementation of pip, I haven’t found a way to install numpy into that instance.
    I did get the tools working on my ubuntu 16.04 system, however, ironically, the recent nightly builds for ubuntu have disabled the Scripting Console due to a version conflict with wxPython (GTK3) on ubuntu 18.
    Thank you again for both the tools and the demo video!

    • August 2, 2018 at 4:30 pm

      What directory did you install the scripts into? I can’t seem to get kicad 5.0 on Windows to see the scripts in the first place.

      • September 7, 2018 at 8:09 am

        Kicad 5.0 has issues with the python interface. You might try one of the nightlies. The team is really good at keeping things functional from day to day. The releases are so far between, I think the only reason to use them is if your work’s policy required official releases only.
        The closest to a Windows answer I know of is here: http://docs.kicad-pcb.org/master/en/plugins.html but it doesn’t actually give a direct answer.
        Personally, I only run the linux version. If you’re feeling adventurous, you might try virtualbox to get a linux window.

    • September 7, 2018 at 8:12 am

      Thank you for the compliments. 😉
      I believe the nightlies work again (python-wise). Be sure to stay on ubuntu 16.

  • August 15, 2018 at 3:25 pm

    I’m very impressed with what you’ve done by making them into plugins/extensions.
    I’ve been experimenting with the scripting interface with the skidl automatic netlist generator and some scripts for placing components automatically along a circle. It’s interesting to see that this is relatively new for KiCAD.
    Since I’m just a beginner, I’ll have to watch the rest of your videos and read the rest of your posts, with a mind to your method of laying out layers in Fusion 360.
    Are you running Fusion 360 in Linux via Wine?

    • September 7, 2018 at 8:01 am

      I don’t believe Fusion 360 works on wine or Linux. ;-( I use a virtual box. It’s pretty much my only reason for a virtual windows. (though MS makes is easy with their MS Edge releases)
      Since you mention circles, see here: https://forum.kicad.info/t/python-scripting-example-studio-clock/5387/16.
      I plan on adding DXF to route feature as I want to do something similar to the link above.
      I’ll love to see what you come up with.


Leave a Reply to Michael Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.