Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yorickdowne opened this issue Apr 12, 2021 · 2 comments
Open

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

yorickdowne opened this issue Apr 12, 2021 · 2 comments

Comments

@yorickdowne
Copy link

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
Copy link
Owner

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
Copy link
Author

Thank you! I'll give it a whirl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants