Skip to content

Invalid Coordinate exception in opening some footprints #31

@masterfoxxhu

Description

@masterfoxxhu

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions