← Back to team overview

kicad-developers team mailing list archive

Re: SetPosition to SetPos0

 

Jesus!,

   I see it now.

   So Pos0 is relative to module origin, Position is PCB position, and it
makes sense as the file format only
stores module position + relative positions, and at load time it rebuilds
"position". oooook :)


2012/5/10 Dick Hollenbeck <dick@xxxxxxxxxxx>

> On 05/10/2012 12:35 PM, Miguel Angel Ajo Pelayo wrote:
> >
> >   I have an issue, and yet couldn't understand the real difference.
> >
> >  a)  If I set a pad (in module, in board) "position",and save it to disk
> (brd or .mod),
> > then the pad position won't get saved.
> >
> >  b)  If I set a pad (in module, in board) "pos0", and save it to disk,
> the pad will get
> > saved.
> >
> > Ok :-)
> >
> > then if I do the same, but instead if saving, I try to visualize it in
> the board, I get
> > the opposite:
> >
> >   a) I get all pads at (0,0) for the "pos0" case, and
> >
> >   b) well positioned for "position" case.
> >
> >
> > What's the exact idea of those 2 positions?
>
>
> See lines starting at 215, of pcbnew/move-drag-pads.cpp
>
>
>
> Thanks in advance for adding my web-pages.  :)
>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
>



-- 

Miguel Angel Ajo Pelayo
http://www.nbee.es
+34 636 52 25 69
skype: ajoajoajo

References