[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA: PCB pin polarity



Hello

I would like to cut out pins from silkscreen in PCB and I am unable
to do it.

I have made a patch that cuts out a rectangle or circle for each pin
whose size is equal to the size of soldermask opening. I took this routing from
sildermask printing routine. It worked fine.

However, then I realized this cuts out too much of silkscreen and that
cutting out the pins itself only would be better.

But I am unable to do it. I have taken the portion of group printing routine:

      Device->Polarity (0);
      SetPrintColor (PCB->PinColor);
      ALLPAD_LOOP (PCB->Data,
                   if ((TEST_FLAG (ONSOLDERFLAG, pad) == 0) == (i == 0))
                   Device->Pad (pad, 0););
      ALLPIN_LOOP (PCB->Data, Device->PinOrVia (pin, 0););

However, no matter what polarity (0,1,2,3) I put there, what I get
is either that the pins are positive on the silkscreen, or that the pins
are positive and the holes inside of them are negative.

How do I make the pins negative in this piece of code?

Thanks,

Cl<