I’ve not been able to find much information on exporting the track information in cad format. I am aware of some software for converting gerbers to DXF, but was wondering if any work was being done to natively export the tracks as CAD.
The reason that i’m interested in doing this is that I want to investigate the possibility of using the open source ELMER finite element software [https://www.csc.fi/web/elmer] to model run simulations of pulse shape through different tracks.
The most direct way is to import PCB and track in FreeCAD.
There is already some work done. And in FreeCAD you can mesh and analyze the model.
FreeCAD has also a FEM environment and Elmer as Solver.
The excellent StepUP script (hats off to maui for his pioneering work!) for FreeCAD directly reads kicad_pcb files and imports the assorted 3D step models into FreeCAD and also can push board edges and other items directly from FreeCAD to the kicad_pcb file. It can also directly import a KiCAD footprint into FreeCAD and very easily align the VRML and STEP 3D models to it. The StepUP script essentially “marries” KiCAD to FreeCAD. BUT, does the StepUP script export the copper layers into FreeCAD? If yes, how?
StepUp doesn’t export tracks (copper layers) into FreeCAD… StepUp is aimed to mechanical integration, so tracks are just dropped for better performance.
The file size and loading time of the board would increase a lot adding those items, that are not useful for mechanical designing…
I tested the tool and it worked fine… in some case (i.e. complex pads or fill zones) you may find a stop, but this could be an occasion to fine tune it
~/.FreeCAD/fcad_pcb$ git submodule update --init --recursive
Submodule ‘kicad_parser’ (git@github.com:realthunder/kicad_parser.git) registered for path ‘kicad_parser’
Clonar en «kicad_parser»…
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Clone of ‘git@github.com:realthunder/kicad_parser.git’ into submodule path ‘kicad_parser’ failed
You can fork all these repos an try to do the process with your repos…
An other approach is to clone all the 3 repos and build the directories structure by hands…
Then you should be able to test it…
Sorry not to be more specific… I have no access to pc ATM
~\Documents\GitHub> cd fcp
~\Documents\GitHub\fcp> git clone https://github.com/realthunder/fcad_pcb.git
Cloning into ‘fcad_pcb’…
remote: Counting objects: 51, done.
remote: Total 51 (delta 0), reused 0 (delta 0), pack-reused 51
Unpacking objects: 100% (51/51), done.
~\Documents\GitHub\fcp> cd fcad_pcb
~\Documents\GitHub\fcp\fcad_pcb [master ≡]> git submodule update --init --recursive
Submodule ‘kicad_parser’ (git@github.com:realthunder/kicad_parser.git) registered for path ‘kicad_parser’
Cloning into ‘C:/Users/userC/Documents/GitHub/fcp/fcad_pcb/kicad_parser’…
Warning: Permanently added ‘github.com,192.30.253.113’ (RSA) to the list of known hosts.
Submodule path ‘kicad_parser’: checked out ‘a3335a75e1d57bd7148181a0706f7c778ca9fe08’
Submodule ‘sexp_parser’ (git@github.com:realthunder/sexp_parser.git) registered for path ‘kicad_parser/sexp_parser’
Cloning into ‘C:/Users/userC/Documents/GitHub/fcp/fcad_pcb/kicad_parser/sexp_parser’…
Warning: Permanently added ‘github.com,192.30.253.113’ (RSA) to the list of known hosts.
Submodule path ‘kicad_parser/sexp_parser’: checked out ‘9c7ee7d6910f9e7c0ec6869f7acf4e9126ec4559’
~\Documents\GitHub\fcp\fcad_pcb [master ≡]>
Thanks @maui
I had to generate my ssh key. git submodule update --init --recursive worked fine.
Now I have another issue
Python 2.7.6 (default, Oct 26 2016, 20:33:43)
[GCC 4.8.4] on linux2
Type ‘help’, ‘copyright’, ‘credits’ or ‘license’ for more information.
form fcad_pcb import kicad
File “”, line 1
form fcad_pcb import kicad
^
SyntaxError: invalid syntax