It should work.  Are you looking at 
project->file[index]->image->netlist?  You may want to make sure you are 
pointing to the correct file first (maybe there's a blank one open 
already?).  The project->last_loaded value will tell you how many files 
there are.  If you just called gerbv_open_layer_from_filename, then you 
want to point to the last index in the file array.

Other than that, I can't think of any other reasons for what you're 
seeing.  Feel free to snoop in gerbv.c for all the relevant calls.  Both 
of these functions are used there, so maybe that will shed some light on 
your problem.

Cheers--
Julian

On 04/02/2011 11:22 PM, Curtis C. Pope wrote:
> Hey guys,
>
> I am still working on my imaging utility.  I am trying to cycle through
> the netlist to find the border.
>
> When I open my file with  gerbv_open_layer_from_filename and try to
> access the netlist start_x and start_y values through the following path:
>
> Project->file->image->netlist
>
> I get all zeros returned.
>
> BUT when I open with gerbv_create_rs274x_image_from_filename
>
> I access through:
>
> image->netlist
>
> I get proper values.
>
> My question is...does gerbv_open_layer_from_filename populate the same
> data structures as gerbv_create_rs274x_image_from_filename?  Am I
> missing something?  At first I thought it was improper use of pointers,
> etc on my part, but that doesn't seem to be the case.
>
> I could open the file in question twice, once with each method, but that
> seems to be a waste.  I'm gonna dig into the gerbv code, but figured I
> would ask the question to see if I am missing something obvious.
>
> Thanks,
> Curtis
>
> ------------------------------------------------------------------------------
> Create and publish websites with WebMatrix
> Use the most popular FREE web apps or write code yourself;
> WebMatrix provides all the features you need to develop and
> publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
> _______________________________________________
> Gerbv-devel mailing list
> Gerbv-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gerbv-devel

------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
Gerbv-devel mailing list
Gerbv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gerbv-devel

Reply via email to