LibrePCB / librepcb-parts-generator

A collection of scripts to generate parts for the LibrePCB default library
MIT License
7 stars 14 forks source link

axial_tht: Also generate THT resistor packages #119

Closed ubruhin closed 11 months ago

ubruhin commented 11 months ago

There are currently three THT resistor packages in the base library which were originally imported from Eagle, cause several library editor warnings and do not have 3D models although for (THT-)hobbyists these are probably the most used packages.

Since these packages are similar to the already generated THT diodes, I extended the script to also generate these three resistor packages, including 3D models:

image

(I think the models would look better once we implement shadow effects in the viewer).

The footprints now look pretty different to the old ones: image image

The pad shape is now square resp. circular instead of octagon, identical to the THT diodes. Actually the silkscreen drawing was pretty nice before, but I'm not sure if it is worth the effort to make the generator conditionally creating different silkscreen for resistors. In other EDA libraries, resistors are just a rectangle as well...

The packages still have several footprints for different pitches, even a few more than before.

ubruhin commented 11 months ago

Should be ready now, base library PR opened: https://github.com/LibrePCB-Libraries/LibrePCB_Base.lplib/pull/125