Mailing list archives : pcb-rnd

ID:4729
From:smilie <sm...@posteo.de>
Date:Sun, 31 Jan 2021 02:39:10 +0100
Subject:[pcb-rnd] upconvert
Hello,
 
I have downloaded the package upconvert (python) and fixed the obvious errors.
So it can be run with the modification if you also have freetype installed.
 
Then i converted with upconvert the file StereoPi_Main.sch from kicad to geda.
 
gschem gives up because the file is too complex.
 
now I stand before the complexen file and do not know, ahead I should recognize the error.
 
Does anyone have some idea how to debug such a file?
 
 
Or is anyone interesting in help with upconvert?
 
 
 
The 2 diffs for upconvert:
 
diff schematic-file-converter-viewdraw/upconvert/parser/kicad.py viewdraw/upconvert/parser/kicad.py
172c172
<         parts = line.rsplit('"', 1)
---
>         parts = line.split('" ', 1)
175d174
< 
561c560,562
<             align = {'C': 'center', 'L': 'left', 'R': 'right'}.get(parts[11])
---
>             plaenge=len(parts)-2
>             #align = {'C': 'center', 'L': 'left', 'R': 'right'}.get(parts[11])
>             align = {'C': 'center', 'L': 'left', 'R': 'right'}[parts[plaenge]]
564d564
< 
 
 
diff schematic-file-converter-viewdraw/upconvert/writer/geda.py viewdraw/upconvert/writer/geda.py
222c222
<                 instance.library_id.replace('_MIRRORED', ''),
---
>                 instance.library_id.replace('_MIRRORED', '').replace(':','_'),
640d639
< 
648c647
<                 angle=pin.label._rotation
---
>                 angle=pin.label.rotation
797c796
<             angle=label._rotation,
---
>             angle=label.rotation,
 
 
 

Reply subtree:
4729 [pcb-rnd] upconvert from smilie <sm...@posteo.de>