On Tue, 2008-09-30 at 09:05 -0700, Endre Bak wrote:

> So how to determine that which layer/board side the pad is on?

grepping in find.c suggests:

TEST_FLAG (ONSOLDERFLAG, pad) ? SOLDER_LAYER : COMPONENT_LAYER

For other element types, there is:

int layer = GetLayerNumber (PCB->Data, (LayerTypePtr) ptr1);

Hope that helps.

Peter, (not a PCB data-structures GURU).

-- 
Peter Clifton

Electrical Engineering Division,
Engineering Department,
University of Cambridge,
9, JJ Thomson Avenue,
Cambridge
CB3 0FA

Tel: +44 (0)7729 980173 - (No signal in the lab!)



_______________________________________________
geda-dev mailing list
[email protected]
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev

Reply via email to