Thanks Peter!

In the meanwhile I also found the ONSOLDERFLAG.
(I used to work with Java in the last 3 years, so parsing such C data models is 
bit strange for me currently :) )

Cheers,
Endre

--- On Tue, 9/30/08, Peter Clifton <[EMAIL PROTECTED]> wrote:

> From: Peter Clifton <[EMAIL PROTECTED]>
> Subject: Re: gEDA-dev: conceptional PCB data structure question
> To: [EMAIL PROTECTED], "gEDA developer mailing list" <[email protected]>
> Date: Tuesday, September 30, 2008, 7:08 PM
> 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