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

Invalid Coordinate exception in opening some footprints #31

Open
masterfoxxhu opened this issue Nov 12, 2024 · 0 comments
Open

Invalid Coordinate exception in opening some footprints #31

masterfoxxhu opened this issue Nov 12, 2024 · 0 comments

Comments

@masterfoxxhu
Copy link

Hello,

For starter I want to thank for the effort that was put in this library, it's very awesome.

I think I've found an issue with the AltiumSharp library.
After building and running the LibraryViewer and opening one of the following footprint libraryes:
/issus/altium-library/tree/master/footprints/Diodes/PCB - DIODES - LUMINUS MP-3030-220.PCBLIB
/issus/altium-library/tree/master/footprints/Diodes/PCB - DIODES - LED RGB 0606_1616 0.9MM.PcbLib
/issus/altium-library/tree/master/footprints/Connector - GCT/PCB - CONNECTOR - GCT - GCT SIM8060-6-0-14-00-A.PcbLib
/issus/altium-library/tree/master/footprints/Connector%20-%20Molex/PCB - CONNECTOR - MOLEX - MOLEX 0530470510.PcbLib

I've get an error in Unit.cs with "Invalid Coordinate", and fails to render the footprint's preview/open the library.
bug1

I tried to quickly delete the exception throwing part of the mentioned line and now it opens the symbol without any problem (and of course there is no exception, but this is not a good solution.)

If I look at a mentioned problematic footprint in Altium it can be seen that some elements have a very long fraction part of some of it's dimension.
If I just round of all the numbers manually like 3.937000000000000003mil to -> 3.937 and save the library, the ALtiumSharp library opens it without any problem.

bug2

Is there a fix to this problem?

Interestingly the image preview of the mentioned footprints exist in /issus/altium-library/tree/master/images/footprints/Diodes folder.

Is there any newer not published version of this library?
Thanks in advance!

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

1 participant