thesourcerer8 / altium2kicad

Altium to KiCad converter for PCB and schematics
https://www2.futureware.at/KiCad/
GNU General Public License v2.0
837 stars 153 forks source link

the description of the footprint should not be printed on the silkscreen layer #63

Open cdwijs opened 5 years ago

cdwijs commented 5 years ago

I've imported a pcb with a transistor. This PcbDoc has a schematic coupled to it. After converting I see the text "NPN General Purpose Amplifier" on the silkscreen. This text is coming from the field "Description" from the section "Schematic Reference information" of the footprint.

cdwijs commented 5 years ago

it turns out unpack.pl does not see the designator. When i look at Root Entry/Components6/Data.dat.bin I can't find the designator that Altium shows on the silkscreen.

cdwijs commented 5 years ago

This patch takes the field "Designator" from the section "Schematic Reference information" instead of the field "Description" from the section "Schematic Reference information". This patch also sets this string hidden, as it's now placed at the center of the footprint, instead of the correct place. The result is that the imported PCB now looks a lot more correct, but only the pads of the footprint are part of the footprint, all the other elements are not coupled to the footprint, and are referenced from the 0,0 point of the PCB.

convertpcb.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/convertpcb.pl b/convertpcb.pl index 49fcf00..c2a0c97 100755 --- a/convertpcb.pl +++ b/convertpcb.pl @@ -2603,18 +2603,19 @@ EOF my $PATTERN=$d{'PATTERN'}; my $SOURCEDESCRIPTION=$d{'SOURCEDESCRIPTION'}||""; $SOURCEDESCRIPTION=~s/"/\"/g; my $FOOTPRINTDESCRIPTION=$d{'FOOTPRINTDESCRIPTION'}||""; $FOOTPRINTDESCRIPTION=~s/"/\"/g;

Cheers, Cedric