thesourcerer8 / altium2kicad

Altium to KiCad converter for PCB and schematics
https://www2.futureware.at/KiCad/
GNU General Public License v2.0
853 stars 154 forks source link

PCB conversion sets location of pts at 0, 0 #117

Open yorickdowne opened 3 years ago

yorickdowne commented 3 years ago

Converting a PCBdoc from Altium, after conversion two of the pts are at 0, 0 and closing brackets for pts, polygon and zone are missing. During conversion, I see these error messages:

# X211 x/y 00000038540C874100000070F0A67641 122.7721573 -60.3312357
Use of uninitialized value in division (/) at /home/yorick/altium2kicad/convertpcb.pl line 2965.
Error: substring out of range: length:3396 pos:3404 wantedsize:8 field:Y212 (main,/home/yorick/altium2kicad/convertpcb.pl:2966 - main::msubstr)
Use of uninitialized value in unpack at /home/yorick/altium2kicad/convertpcb.pl line 2966.
Use of uninitialized value in division (/) at /home/yorick/altium2kicad/convertpcb.pl line 2966.
# X212 x/y  0 0
Error: substring out of range: length:3396 pos:3412 wantedsize:8 field:X213 (main,/home/yorick/altium2kicad/convertpcb.pl:2965 - main::msubstr)
Use of uninitialized value in unpack at /home/yorick/altium2kicad/convertpcb.pl line 2965.
Use of uninitialized value in division (/) at /home/yorick/altium2kicad/convertpcb.pl line 2965.
Error: substring out of range: length:3396 pos:3420 wantedsize:8 field:Y213 (main,/home/yorick/altium2kicad/convertpcb.pl:2966 - main::msubstr)
Use of uninitialized value in unpack at /home/yorick/altium2kicad/convertpcb.pl line 2966.
Use of uninitialized value in division (/) at /home/yorick/altium2kicad/convertpcb.pl line 2966.
substr outside of string at /home/yorick/altium2kicad/convertpcb.pl line 199.
# X213 x/y  0 0
Overflow!

There are a few other warnings about uninitialized values, but maybe those should be a different issue. One thing at a time.

Let me know the best way to troubleshoot this, please. I can share the Altium files, or I can run some diagnostic / debug runs for you, if you guide me on how.

thesourcerer8 commented 1 year ago

I just tried the new Altium Importer that has been integrated into Kicad itself (one in PcbNew and on in EESchema, to be found in "File -> Import -> Non-KiCad Files", and the results are much better than altium2kicad, so I would suggest to you use the KiCad integrated importer yourself instead of altium2kicad. If it works for you, please close this issue. If it doesn't work for you, please let me know.

yorickdowne commented 1 year ago

Thank you! I'll give it a whirl