← Back to team overview

kicad-developers team mailing list archive

Re: [PATCH] If a footprint appears in multiple module libraries, load only the first

 

On 3/9/2013 6:38 AM, Thiadmer Riemersma wrote:
Hello everyone,

This is a patch for a minor annoyance that we have with cvpcb.

If multiple modules have a footprint called "SOT23", cvpcb will list
both. However, if you click on the "view selected footprint" button
for the both of them (to check the differences), you will find that
you will be looking at the same footprint twice. The pcbnew program
will also pick the footprint from the first module library that it
finds it in (which is why the library order is important).

This patch does two things: 1) it simply does not add duplicate
footprints in the list, and 2) it adds an extra field in the status
bar of cvpcb that tells you which library the footprint comes from.

Regards,
Thiadmer Riemersma

Thiadmer,

If you would have submitted this patch a year ago, it's likely it would have been accepted. I am currently in the process of implementing the footprint library table which will make this problem go away. In the new design, footprint definitions will include the library name (not not the library file name) which is defined in a footprint library table. The currently library ordering scheme goes away so duplicate names will be allowed as long as they are in different libraries. Since the footprint name is associated with the library name, the correct footprint will always be selected. This will require some significant changes to CvPcb which will replace the code in the patch you sent. Thank you for your interest in helping to improve KiCad.

Best Regards,

Wayne



References