Go Down

Topic: Eagle .brd to Kicad (Read 5991 times) previous topic - next topic

Trump211

Jan 04, 2012, 03:33 pm Last Edit: Jan 10, 2012, 03:44 pm by Trump211 Reason: 1
Hey guys, though this would be the best place for this announcement,

I've written a python script which is able to convert entire eagle .brd's into kicad's native file format

It currently is able to transfer everything except zones,
It has some small issues, so If people could test it out and report back that would be awesome

link: https://github.com/Trump211/Eagle2Kicad

westfw

Is that for v6 or v5 eagle?

Trump211

Good Question, I forgot to mention it only works for V6 eagle ".brd" files. 
It converts them into whatever Kicad version is described in the file format documentation included with the latest windows install.
The documentation seems a bit old (2009), but as of the latest bzr revision, kicad still opens and saves the file just fine. 

jrevilla00

Good job.
I have tried it and I got and error with one board,Arduino_Eth08d_MU.brd, the others were good. I send you the traceback.
>>> ================================ RESTART ================================
>>>
Input Filename: Arduino Nano2.brd
Output Filename: Arduino Nano2_.brd
DONE!
>>> ================================ RESTART ================================
>>>
Input Filename: Arduino_Eth08d_MU.brd
Output Filename: Arduino_Eth08d_MU_.brd
Traceback (most recent call last):
  File "z:\Documents and Settings\jrevilla\Mis documentos\Electronics\Design\Converters\Eagle2Kicad\Board\Board.py", line 193, in <module>
    brd=Board(node)
  File "z:\Documents and Settings\jrevilla\Mis documentos\Electronics\Design\Converters\Eagle2Kicad\Board\Board.py", line 40, in __init__
    self.getTracks(signals,converter)
  File "z:\Documents and Settings\jrevilla\Mis documentos\Electronics\Design\Converters\Eagle2Kicad\Board\Board.py", line 117, in getTracks
    self.polygon.append(Zone(_zone,converter,signal.get("name"),netCode))
  File "..\Common\Shapes.py", line 193, in __init__
    self.isolate = converter.convertUnit(node.get('isolate'))
  File "..\Common\Converter.py", line 69, in convertUnit
    return int(float(unit)*self.factor)
TypeError: float() argument must be a string or a number
>>> ================================ RESTART ================================
>>>
Input Filename: Arduino-Pro-Mini-v10.brd
Output Filename: Arduino-Pro-Mini-v10_.brd
DONE!
>>> ================================ RESTART ================================
>>>
Input Filename: Arduino-Pro-v12.brd
Output Filename: Arduino-Pro-v12_.brd
DONE!
>>>

Cheers.
Jesus

Trump211

Hi Jesus,

I found a couple of bugs in the script while trying to convert the same board.
I fixed and commited to git hub, try again with the latest revision

thanks again,
Dan C

Go Up