When there is a polygon in the Eagle project withput any pad connected
netCode was not incremented and so the wrong nets were assigned to the
following elements.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21243
(cherry picked from commit 57ad779797)
Grouped pads by pin number in the IPC-2581 exporter so only one pin node
is created per number. Still output multiple pad shapes with the same
number.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18688
(cherry picked from commit c1cd4dd157)
Because some readers maintain global namespace per the standard, we make
sure that we don't overlap names between namespaces but keep the minimum
viable name for each element
Fixes https://gitlab.com/kicad/code/kicad/-/issues/19914
(cherry picked from commit 8f625086b1)
e.g. "FFFF8007" does not fit into signed "long" type (4 bytes on MSVC),
so strtoul returns 0x7FFFFFFF and sets errno to EINVAL.
(cherry picked from commit 39978ab2e2)
Co-authored-by: Alex Shvartzkop <dudesuchamazing@gmail.com>
This still leaves a few things out in the cold,
such as hit-testing and polygon generation.
But at least it allows us to plot with a default
font.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/19031
(cherry picked from commit e230d5164d)
We implemented the intermediate temporary file in order to avoid issues
during save. Unfortunately, this is heavily system-dependent and seems
to cause problems with unusual setups. Now that we cache writing using
the prettifier, the errors during output will not affect the existing
file
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21330
(cherry picked from commit f6b599e155)
By definition the PTH will exist on all layers at the moment but some
corner case allowed the NPTH layer set to be saved in the layerset,
after which it was hard to reset
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20980
We use this as part of the standard sexpr now. But previously, if a
designer used the '|' character as part of a string with no spaces, it
would be entered unquoted into the file, which neccesitates special
handling
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21065
Handle Altium project file format
Parse individual schematic files and layout files
Create top-level schematic file
Link imported UUIDs between schematic symbol and footprints based on
refdes
Create KiCad project
Map Altium layout layers between KiCad
Fixes https://gitlab.com/kicad/code/kicad/-/issues/2117
(cherry picked from commit e81956f292)
Passing a pointer to the CTOR invokes the PCB_FIELD( BOARD_ITEM* ) ctor,
which is not what is intended. Passing just the reference is better but
still ends up creating a PCB_FIELD class with type PCB_TEXT because it
didn't correctly set the type. So we need to properly set our type and
our parent, then copy the text attributes over. We can't use the
default copy operator because this also copies the struct_id of PCB_TEXT
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20875
(cherry picked from commit 750dbe6336)
In layers block, the file type for User.n was always written as "user" type.
However this type can be set to "front" or "back" by the board settings
dialog (Off-board, front or Off-board, back) and allowed in file.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20892
(cherry picked from commit db23ee481c)